Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Click Event wont work on grid
Message
 
 
To
23/05/2001 13:18:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510474
Message ID:
00510479
Views:
13
>I have a grid based object and when adding the object to a form based
>class and double clicking on individuals cells the code for that text box
>will not activate. I want to load a another form based on the information in that entry in the grid. Originally I just placed a grid on the form and
>it would work fine but now when using addobject() it wont work. I can just
>put a messageobox() to test and it is as if the textbox in that column
>is no longer getting the focus or something.
>
>??
>
>Ronnie

The CurrentControl for this column should be set to be this new class.

Example:
if this.lIncremental and lcFieldType='C' && We would use this feature only for char fields
               if lower(loColumn.currentcontrol)='text1' && standard text1 control
                    loColumn.removeobject('text1')
                    loColumn.newobject('text1','ingrid','wgcontrols.vcx') && Incremental search textbox
                    loColumn.text1.visible=.t.
                    *loColumn.ReadOnly=.t. && this is necessary condition     
                    loColumn.text1.cLocateExpression='upper('+lcFieldName+')'
               endif
          endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform