Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option group blues...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00410538
Message ID:
00410583
Views:
12
>I subclassed the optiongroup base class to myOptionGroup class. It contains by default two option buttons.
>
>Q1: When I drop myOptionGroup on a form, I can not change the name property of the two buttons in the class. Why is this?

>(Increasing the button count to, let's say, 4, I can change the name property of the 2 added option buttons. Setting button count to 0 in myOptionGroup class will solve the name problem, but then, I can't have any defaults at the class level for the option buttons - because there aren't any.)
>
>Q2: Can I have my own option buttons (not the VFP base class optionbutton) in myOptionGroup class?

Actually, it applies to any container object i.e. grid, and commandgroup. To me, it's not a big deal because what I am after for is the name of the parent object. In optiongroup, let's say it has 4 buttons, I normally validate what button is chosen in the parent level valid or click event ( 1,2,3,4).

>Q3: In the myOptionGroup class I set the autosize property of the buttons to TRUE. On a form, I use graphical style for the option buttons, and change the autosize to FALSE - still, running the form the buttons will not retain the size I set manually. Is this a bug?

Again, it applies to most container object and to me it's not a bug. In grid for example, if you increase the number of columns, it does not inherit the original setting of the grid, and the most obvious one is the fontsize.

Obvious reason is, you might already used the name of the child object somewhere in your source class and letting you change the name will give you further problem.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform