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?
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?