Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassed Textbox in Grid
Message
 
 
To
27/08/1998 10:35:25
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00130514
Message ID:
00130553
Views:
12
Mark,

After setting the ColumnCount just do this:
for each loCol in this.Columns
   with loCol
      .RemoveObject( "text1" )
      .AddObject( "text1", "YourClass" )
   endwith
endfor
>I have a Grid added to a form using 'AddObject'. After setting columncount, I added a textbox object to the columns using a subclassed textbox with code in the GotFocus, & LostFocus events. When running the form, the GotFocus & LostFocus event of the custom textbox control don't fire when the object gets or loses focus. To verify that the subclassed textbox was built correctly, I added a textbox based on the custom class directly to the form and the Gotfocus & LostFocus events fire normally.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform