Information générale
Catégorie:
Codage, syntaxe et commandes
>>Hi
>>
>>I'm using VFP7
>>
>>I've got on optiongroup in a container with a buttoncount of 1 .
>>
>>I add the container to my page no problem in the page init.
>>
>>If I then change the buttoncount the first button remains 3d but the new button is 2d. Iv'e tried setting specialEffect for the new button but that doesn't seem to work.
>
>Create a subclass of the radiobutton which looks the way you want it. Then when adding more buttons, don't set the button count; do .newobject("nextbuttonname","yourradiobuttonclass", "classlib"). When you increase .buttoncount, the new buttons added are just plain old base-class radiobuttons, they inherit nothing from the existing buttons.
Thanks Dragan but
Still doesn't give me the correct look.
Also if I drop a standard optiongroup on the page then change the fontsize to 11 the button reverts to 2d and only changes back when I revert the fontsize to 9.
Nick Mason
I think I'll go another way with this as its taking too much time.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement