• Welcome to PlanetSquires Forums.
 

?Setting Foreground & Background color of a TextBox

Started by Martin Francom, January 14, 2011, 01:31:41 AM

Previous topic - Next topic

Martin Francom

I found how to set the foreground color of a TextBox control
ie:
  FF_Control_SetColor (HWND_Form1_Text2, %RGB_Black, -1)

But how do I set the Background color ?
I hope the solution is as simple as:  FF_Control_SetColorBG (....

If not, is that something that can be added to the wish list for the next version of FF?
 

Cho Sing Kum

I understand that the same sets both forecolor and backcolor:

FF_Control_SetColor( ByVal hWndControl As Dword, _
                         ByVal ForeColor As Long, _
                         ByVal BackColor As Long)

From Functions Library:

hWndControl: Handle of Control or Form (e.g.  HWND_FORM1_COMMAND1)
ForeColor:   RGB color value, or -1 to not set.
BackColor:   RGB color value, or -1 to not set.

Martin Francom

Well, duh.... my bad...  I couldn't see what was clearly in front of my eyes.  Do you think new glasses will help? :)
Thanks