Tech Tip: Tracking the movement of a Splitter
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: February 8, 2012
Each splitter used in a form has a Longint variable of the same name associated with it. The value of the variable can be used to track the position of the splitter
If the value is negative: the splitter was moved toward the top or toward the left,
If the value is positive: the splitter was moved toward the bottom or toward the right,
If the value is 0: the splitter was moved to its original position. variable of the same name associated with it. The value of the variable can be used to track the position of the splitter.
Case of : (Form event=On Clicked) SplitterPos:=SplitterPos+Splitter End case |
Where Splitter is the name of the splitter and SplitterPos is a Longint variable initialized to zero in the forms On Load