Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-03

TSplitter refuses to move to the left with mouse (but moves via code)

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

Hi,
 
It is caused by property TSplitter.MinSize. I just tested, when I move by mouse, I'm stopped on this value. But with code, I can go below this limit. You can modify the code:  
if Splitter1.Left>Splitter1.MinSize then
  ...
(and set MinSize to 50 in Object Inspector).
 
so the limit will be the same for both mouse and keyboard.  
V.

Reply by email

Jürgen Hestermann
to Vojtěch Čihák
Vojtěch Čihák wrote 5 lines
It is caused by property TSplitter.MinSize. I just tested, when I move by mouse, I'm stopped on this value. But with code, I can go below this limit. You can modify the code: if Splitter1.Left>Splitter1.MinSize then ... (and set MinSize to 50 in Object Inspector). so the limit will be the same for both mouse and keyboard.

TSplitter.MinSize is the (min) size of the splitter itself. It has nothing to do with the location of the splitter (just its size). Changing this value does not solve the problem.

Reply by email

Jürgen Hestermann
to Ondrej Pokorny
Ondrej Pokorny wrote 5 lines
On 23.03.2017 10:34, Jürgen Hestermann via Lazarus wrote: > TSplitter.MinSize is the (min) size of the splitter itself. > It has nothing to do with the location of the splitter (just its size). You are wrong: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ExtCtrls_TSplitter_MinSize.html The same applies for TSplitter in the LCL.

Astonishing and totaly unexpected as the help in the object inspector says:

"Minimun size for splitter - default 30 pixels"

Who decided to name this "MinSize" (Borland?).
It should have been "MinResize" or something else.

Neverthelesse, changing the value of MinSize to 3000 does not change anything with my problem.

Reply by email