Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

16-32 bit colours and backcolour property

Status
Not open for further replies.

mkendi

Programmer
Oct 21, 2000
82
TR
Hi everybody


If the vga-card has an 32-bit colour resolution, the backcolour is set to the values 192,192,192; but if the resolution is 16-bit, the default value for the background is 212,208,200.
Because I cannot know the card-settings of the customer, I need a simple way to set the backcolour to a known value. One way would be: find out with CONTROLCOUNT the number of all the objects of this form and in a loop set with
m.oControlParent.CONTROLS[nIdx].BACKCOLOR there backcolour.
It works, but its ugly! Is there a simpler (and better) solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top