Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Problem
Message
From
02/04/1999 05:29:20
 
 
To
31/03/1999 23:32:21
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00202932
Message ID:
00204579
Views:
21
Nishit,

I think I know what's wrong. When you do an AddObject(), the obejct's Visible default to .F. You have to explicitly set it to .T. Here's the sample I used :-

* Class Definition myTextBox OF Test.VCX:-
* myTextBox.KeyPress() :-
MESSAGEBOX('KeyPress EVent')
* myTextBox.DblClick() :-
MESSAGEBOX('DblClick Event')


* Form MyForm1.cmdReplControl :-
SET CLASSLIB TO Test.VCX
WITH THISFORM.Grid1.Column1
.RemoveObject('Text1')
.AddObject('Text1','myTextBox')
.Text1.Visible = .T.
ENDWITH


Kenneth.

>Hi Kenneth,
>
> Thanks for reply. I tried that also, but not working. Can u know how to add/write event at runtime. Or specify event at runtime? May be this will work. I am using that textbox for other controls and it works fine. but not with grid.
>
>regards
>amit
Kenneth.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform