Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XY Quadrant Form Splitter
Message
 
To
25/11/2006 08:52:29
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01171347
Message ID:
01174714
Views:
16
Thanks Thomas - You and Cetin opened my eyes!

>Hi Terry,
>>I needed something like the ISE GUI offers - a 4 quandrant form splitter - I couldn't find one - so I impovised one - it seems clean - an any critique appreciated:
>
>nice and short! Your original code switched the mousepointer sometimes with the normal arrow while using the splitters, so I refactored a bit. I bundled most of the duplicate assignments, as this made the code clearer (at least for me) and added more "talking" methods/methodnames - which I probably would not have done to the extend of the "In"-methods in my own code<g>. But for my taste the mousepointer-behaviour is now more intuitive and it is still even less code. I think the magic numbers between -1 and 4 should either be recoded into constants and/or made dependant on the properties of the splitter - if you change the splitter properties for height and width you get "phantom lines".
>
>UPDATE: setting "nActivePointer" in the add object is probably not as intuitive as using "proper property overides" in the class definition - here I went overboard to minimize line number <g>. Cetin's point about object names could also be handled via property... Added a "local" to mouseMove.
>
>regards
>
>thomas
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform