Yeah, the splitters are buggy to say the least.  The behaviour you described
looks like the minSize setting.  Try setting this value to 0 to see if this
will fix the problem.  But don't leave it at 0 for production code because
there is another bug where if you have more than one splitter on a form and
if one panel get sized to zero, it can be impossible to get it back.

----- Original Message -----
From: "Paul Lyons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 31, 2004 5:51 PM
Subject: [DUG] tSplitter problem


Hi

I have a problem with tSplitters.


My application uses a class called tjaBrowserPanel (derived from
tCustomPanel).

An object of type tjaBrowserPanel contains browsers, an object of type
tjaBrowserList (derived from tList)

The entries in browsers point to objects of type tjaBrowser, (derived from
tTabControl), each of which contains an object called browserWindow, of type
tjaBrowser and an object called splitter of type  tjaBrowserSplitter.



The idea is that a browserPanel should contain an arbitrary number of
dynamically-created browsers separated by splitters whcih can be used to
change the amount of space available for each browser.  There's a routine
tjaBrowserSplitter.recordMovement that manages the space allocated to the
entire set of browsers when one of the splitters is moved

The problem is that as soon as the user executes a mouedown on one of the
splitters, it jumps about 30 pixels up the screen. It isn't my code that's
doing it; I put in a mousedown handler that displays a message when the
mousedown occurs. It generates its message, and then the recordMovement
routine executes. So something else is moving the splitter as soon as the
mousedown occurs. Does anyone have any ideas?
_________

Paul Lyons
_________


----------------------------------------------------------------------------
----


> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to