Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbclick in grid is not working
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00319588
Message ID:
00319958
Views:
21
Ed,

>> I didn't say it's hard, I said it's not easy :) It requeres at least to have this class... BTW, in my Input classes I created Inp_Grid with ability to change standard TextBox class to be my class in Run time. I have a question:
>> After RemoveObject('text1')
>> NewObject('text1', CustomClass, ClassLib)
>> text1.visible=.t.
>> Do I need to add also
>> CurrentControl='text1'
>> or I don't?
>
>I normally do, but that's because I add the new control with a new name and

So, it's not necessary if I add new control under Text1 name, right?

assign it to the CurrentControl before deleting out the default textbox. Doing this makes it easy to grab any properties that were inherited when the initial textbox was added by default that I might want in the new grid object.

It's a little unclear for me... Do you mean, you want your new Text object (or it may be editbox, whatever) uses the same Font, Alignment, etc., as Standard Text1 in the Grid? Or what properties?

>
>I'd also advise wraping the whole thing with a form reference.lockscreen = .T. for the entirety of adding columns, so that the grid doesn't visibly alter its appearance until all the modifications are complete.

Thanks for these advices. I'll change my class this way.
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