Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I make a single Listbox Item Bold?
Message
De
02/05/2001 01:56:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/05/2001 18:05:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00501997
Message ID:
00502348
Vues:
15
>>I have not been able to find a way to make a single Listbox Item bold. Does anyone know if this is possible. I don't see a way at the moment.
>>
>>TIA
>
>Hello.
>
>You can use the native listbox, but not so easy. Let's try:
>
>
>DEFINE POPUP FillList SCROLL
>FOR lnI = 1 TO lnNoValues
>   IF lnI = the_condition_for_bold
>      DEFINE BAR lnI OF FillList PROMPT your_value ;
>         FONT 'Tahoma' STYLE 'B'
>   ELSE
>      DEFINE BAR lnI OF FillList PROMPT your_value ;
>         FONT 'Tahoma'
>   ENDIF
>ENDFOR
>ThisForm.List.RowSource = 'FillList'
>ThisForm.List.RowSourceType = 9
>ThisForm.List.Requery
>
>
>I'm pretty sure that the primary key in DE is made bold using the same technique.
>
>You can specify not the bold style, but the font dimension, using clause
>FONT 'Tahoma',8
>
>or the colour, using the clause
>COLOR ,RGB(0,0,0,255,255,255),,,,RGB(0,0,0,230,230,230)
>
>I've used this approach to highlight the differences between two lists.
>
>Hope this helps.

Grigore,
Excellent :) I almost forgot those old goodies.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform