Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click Procedure for Class
Message
 
 
To
06/01/2004 19:47:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00864447
Message ID:
00864474
Views:
13
Steven,

Can you attack this a slightly different way?

Predefine the container with all possible options and then conditionally RemoveObject() the ones the user doesn't have access to? Then you can shuffle around (adjust the .Top, .Left) the remaining ones to scrunch up the display. The options can be fully coded as the class that is dropped into the container.

Another way is to have each of your options defined as classes ahead of time and then conditionally AddObject() the right ones to the container.

>I hope I can explain what I have done and what I need to do.
>
>I have a form that uses a class I created to display a dynamic set of options based on users authority. I used a container class with code to determine how many options to display and the captions to use. Then I use an AddObject('signoff_options','OptionGroup1'). I then run a program that defines the class, this defines the Click procedure. Next the number of buttons to display, visible, color, captions is done.
>
>This all works great as long as I phyisically click on one of the options after the form starts. But there are some instances where I need to programatically click an option. How can this be done?
>
>I can get this to work: ThisForm.myOGx.signoff_options.Option1.Value = 1
>But not this: ThisForm.myOGx.signoff_options.Option1.Click
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