Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Colors
Message
 
To
02/12/2008 08:48:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows '98
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003494
Message ID:
01365211
Views:
29
>>Ok, so I can't affect an already existing combo on a form.
I have to define it in code?

No and Yes.
1. Combo is created on a form.
2. In init of the form put this code for adjustment of this combo
DEFINE POPUP pList
iii = 0
SCAN
       iii = m.iii + 1
      lcColor = IIF(MOD(crsTest.ID,2) = 0, "RGB(255,255,255,192,0,0)","RGB(255,255,255,192,255,0)")
      DEFINE BAR m.iii OF pList PROMPT crsTest.FirstName FONT "Tahoma",14 style "BI" COLOR , &lcColor
 ENDSCAN

WITH ThisForm.Combo1 AS ComboBox
         .RowSourceType = 9
         .RowSource     = "pList"
         .Style = 2
 ENDWITH     
HTH
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform