Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I make a single Listbox Item Bold?
Message
De
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:
00502287
Vues:
27
>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 Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform