Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class - checkbox colour/cross
Message
De
08/04/2010 07:09:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/04/2010 06:36:54
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:
01459304
Vues:
102
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform