Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class - checkbox colour/cross
Message
 
To
08/04/2010 07:09:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01459302
Message ID:
01459306
Views:
82
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform