Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set DoubleClick event for Text Boxes in Grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00398429
Message ID:
00400303
Views:
23
Barbara,

Well I thought I was able to add a textbox class to my grids by selecting the column I wanted then dragging it onto the column from the class list. I get "cannot add this object to a grid." What's the proper way to add a textbox class to a grid column in the form designer? Or even class designer? Do I have to use the AddOBject method?

Thanks
Elgin

>Elgin,
>Jess is correct in his directions for removing a textbox from an existing grid. However you can simply leave the textbox there and set the CurrentControl property to the correct textbox (or checkbox, combo etc.). This is how you handle the situation if you have a subclassed grid, as you cannot remove any items initiated in the original class. You can design a textbox with all of the controls you want on the grid (including calls to the Grid DblClick() code), drop it onto each column and then use SetAll() to update the CurrentControl value.
>
>HTH
>Barbara
>
>>Barbara,
>>
>>Is there not a way to programmatically set the dblclick() event for each of those text boxes in my grid? Jess had said something about making my own text box class to place in the grid. That would be really handy. I know how to make the textbox class, and drag it on the each of the columns in the grid. But how do I remove the native "textbox" that is based on the VFP class that is put in the grid when I create it?
>>
>>For that matter, how do I remove an entire column from a grid I created by dragging a view onto a form without having to change the view then "re-drag" it onto the form (or pageframe in my case).
>>
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform