Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create COMBO where each value its a different col
Message
De
07/05/1998 10:29:15
 
 
À
07/05/1998 09:26:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00097641
Message ID:
00097662
Vues:
17
>Hi:
>
> I need to put a combo-box in a form where users can to choice a color using this combo, it's like menu Tools/Options/Syntax Colors.
>
> Can you help me?
>
> Thanks

This is not exactly the way that the Syntax Colors are but it should get you started.
<b>define popup lcPop

**-- Black
*
define bar 1 of lcPop prompt "       " ;
 color rgb(0,0,0,0,0,0),rgb(255,0,0,255,0,0)

**-- Red
*
define bar 2 of lcPop prompt "       " ;
 color rgb(255,0,0,255,0,0),rgb(255,0,0,255,0,0)

**-- Cyan
*
define bar 3 of lcPop prompt "       " ;
 color rgb(0,255,255,0,255,255),rgb(0,255,255,0,255,255)

**-- Magenta
*
define bar 4 of lcPop prompt "       " ;
 color rgb(128,0,128,128,0,128),rgb(128,0,128,128,0,128)


_screen.AddObject("cboColor","combobox")
_screen.cboColor.RowSourceType = 9       && Popup
_screen.cboColor.RowSource = "lcPop"
_screen.cboColor.Visible = .T.</b>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform