Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class - checkbox colour/cross
Message
 
À
08/04/2010 07:09:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01459302
Message ID:
01459306
Vues:
83
>>Hi
>>
>>Has anyone developed a checkbox class that shows a red tick (or any graphic) instead of the normal black cross when the object is clicked?
>>
>>Regards
>
>It doesn't need a class. You can use picture and downpicture properties along with graphical style. ie:
>
Public oForm
>oForm = Createobject('myForm')
>oForm.Show
>Define Class myForm As Form
>  Add Object chk As Checkbox With ;
>    Style = 1, ;
>    Picture = Home(4)+'Icons\Misc\Face04.ico', ;
>    DownPicture = Home(4)+'Icons\Misc\Face02.ico', ;
>    PicturePosition = 1, ;
>    AutoSize = .T., ;
>    Caption = "Some caption"
>Enddefine
>
Cetin

Cetin,
it's amazing the things I find out here. I never knew you could do that. Thanks.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform