Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I make a single Listbox Item Bold?
Message
From
01/05/2001 18:05:02
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501997
Message ID:
00502287
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform