Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class - checkbox colour/cross
Message
From
08/04/2010 07:09:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/04/2010 06:36:54
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:
01459304
Views:
101
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform