Why is my TSplitter in the wrong place?

I have a dialog that says something like this:

---------------------------------------------
|                                           |
| CONFIG AREA                               |
| Align: alTop                              |
--------------------------------------------- <-static boundary
|                                           |
| DISPLAY AREA 1                            |
| Align: alTop                              |
============================================= <-TSplitter Align: alTop
|                                           |
| DISPLAY AREA 2                            |
| align: alClient                           |
--------------------------------------------- <-bottom of dialog

However, at run time, the separator is not displayed between the display area 1 and the display area 2, but between the configuration area and the display area 1, which leads to some unpleasant problems with the interface. In installation-related event handlers, there is nothing that modifies the Visible or Align properties for any of these components. Does anyone know why the splitter does not load in the place where it is located in the form designer?

+5
source share
3 answers

( .) - . , .

procedure Form1Show(Sender: TObject);
begin
  Splitter1.Top := DisplayArea2.Top;
end;
+11

. :

  • , .
  • .

, 1. 1, .

+7

. TSplitter TPanel, :

+---------------------------------------------+
|+-------------------------------------------+|
||                                           ||
|| CONFIG AREA                               ||
|| Align: alTop                              ||
|+-------------------------------------------+|
||                                           ||
|| DISPLAY AREA 1                            ||
|| Align: alClient                           ||
|+-------------------------------------------+|
+---------------------------------------------+
=============================================== <-TSplitter Align: alTop
|                                             |
| DISPLAY AREA 2                              |
| align: alClient                             |
----------------------------------------------- <-bottom of dialog

1 TPanel Align: = alTop, , 1 alClient.

,

+6

All Articles