Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container class with checkbox
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00149721
Message ID:
00149868
Views:
15
>I'm building a checkbox class with one checkbox in a container for use in a grid column. My idea was to build a class that would enable the user to click on the grid column and with the left mouse held down, the user could drag up or down the columns to either select or deselect the checkbox. I've created this class with the mouseover event and a timer and it works okay only when the mouse button is held down *before* entering the control (I can only get this to work in a form with the checkbox class since there is enough space to click on the form outside of the checkbox and then start dragging across the checkbox controls). If I click on the checkbox first and then drag the mouse up or down, it appears that my focus isn't leaving the first checkbox that I've clicked. Since this was built to use in a grid, it doesn't work at all since there won't be and area around the checkbox control in the column. I'm sure I'm missing something simple...I just don't know what it is.
>
>I hope this message makes some since. It was hard for me to explain exactly what I'm trying to do here.
>
>If you have any ideas for me I would appreciate hearing from you!
>

At least 2 of us here have tried this. I do have a checkbox in a container that I use for grids mainly so I can center the checkbox in the grid column. THe problem I had once I got the *concept* to work was that I could not control the final value of the checkbox. Using the MouseOver event was the correct way, but the checkbox value continued to switch back-and-forth while the mouse was over the control. So, the user would have to move the mouse fast enough over the box to fire the code exactly one time. This was all so unstable, I gave up and just told the user to use the check box for its intended use -- click it to change the value.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform