7.3. Derivatives TScrollingWinControl
DisableAutoRange ()
Disable the automatic control of the scroll bars.
void __fastcall DisableAutoRange(void);
EnableAutoRange ()
Enables automatic control of the scroll bars.
void __fastcall EnableAutoRange(void);
ScrollInView ()
When you call the method ScrollInView indicating a control on the form, move the scroll bars by setting the power in the visible area.
void __fastcall ScrollInView(Controls::TControl* AControl);
7.4. Derived from TControl
BringToFront ()
Makes the form is placed in the foreground, in front of the other application forms.
The Following code uses two forms. Form1 has a button on it. The second form is Used as a tool palette. This Makes code form the palette visible, and Ensures it is the top form by Bringing it to the front.
To run this example, you Must include Unit1 Unit2.h in the source file.
void __fastcall TForm1:: ShowPaletteButtonClick (TObject * Sender)
{
if (! Form2-> Visible)
{
Form2-> Visible = true;
Form2-> BringToFront ();
}
}