Enable FireTextBox

Started by Nathan Durland, January 27, 2010, 01:06:06 PM

Previous topic - Next topic

Nathan Durland

I have a couple FireTextBox controls on my form for numeric input.  At design time, I set them disabled.  When the time comes, I issue a ff_control_enable HWND_FORM1_FIRETEXTBOX1, but the control remains grayed out and disabled.

Paul Squires

An extra line needs to be added to enable the child edit control. Look for the line %WM_ENABLE and make sure the code reads as follows:

         Case %WM_ENABLE
            'If the state of the window is changing then we must repaint the
            'edit control in order for the text color to be correctly shown.
            EnableWindow @ed.hEdit, wParam
            InvalidateRect hWnd, ByVal %Null, %TRUE: UpdateWindow hWnd
            Function = 0: Exit Function

Paul Squires
PlanetSquires Software

Nathan Durland

#2
Thanks Paul.

I thought this had been discussed earlier.  I did a forum search and discovered that when the BBS search lists your "hits", clicking the links for the conversation takes you to the forum of the thread, but not the thread itself.  This is using Mozilla FireFox 3.6; I've not tried with IE or Chrome.

Edit:
Strike that.  It's all in the search parameters you choose.  Sorry.