Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CommandGroup & OptionGroup Method Setup
Message
 
 
To
07/03/1999 11:24:53
Jocylyn Sy
Freelance Programmer
Cebu, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00195004
Message ID:
00195034
Views:
19
Jocylyn,

You can't visually subclass those items. I think I'd put the code within a method of the OptionGroup class itself that way it doesn't matter how many buttons you add. If you turn on EventLogging you should be able to find the right set of methods to hook into to accomplish this.

Another possible solution is to use a PRG to DEFINE CLASS an optionbutton subclass. Then in the opg.Init() method you RemoveObject() the default class object and AddObject() in your subclass. You can use an intermediate temp object to hold the properties like Caption, FontName etc of the designed object and then copy them to the object you add back into the group.

>I am making a program for laptop users. To make it
>easy for them to know which option is the current one,
>I've changed the forecolor of the presently active
>option/command button and then change it back when it
>loses focus.
>
>I was wondering if there's a way to do it so that every
>time a new option or command button is added. It already
>has the lostfocus and gotfocus method containing the
>codes that changes the color.
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