Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selectively color listbox/combobox items
Message
 
To
23/12/1998 21:28:29
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00170050
Message ID:
00170954
Views:
18
In the Init of the combo/list box:


WITH This

DEFINE POPUP popTemp

.RowSourceType = 9
.RowSource = "popTemp"

ENDWITH

RETURN



Next, in the AddItem method:

LPARAMETERS cPrompt, cColor, cFontName, nFontSize, cStyle

WITH This

IF EMPTY(cColor)
cColor = ",RGB(0,0,0)"
ENDIF

IF EMPTY(cFontName)
cFontName = .FontName
ENDIF

IF EMPTY(nFontSize)
cFontSize = .FontSize
ENDIF

IF EMPTY(cStyle)
cStyle = ""
ENDIF

DEFINE BAR (This.ListCount + 1) OF popTemp;
PROMPT cPrompt;
COLOR (cColor);
FONT cFontName, nFontSize;
STYLE cStyle

ENDWITH

RETURN
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform