FXTextField setLayoutHints
"John Selverian" <[email protected]>
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | JAHM Software |
| Message-ID | <[email protected]> |
I want to switch some text fields back and forth between
TEXTFIELD_REAL and TEXTFIELD_INTEGER.
I first set them up like this:
for (int i = 0; i < NUM_ALLOY_ELEMENTS; i++)
{
_minConc_TF[i] = new
FXTextField(_alloyingElms_GB[i], 12, this,
ID_MIN_MAX_TEXT_FIELDS, TEXTFIELD_REAL | TEXTFIELD_LIMITED |
FRAME_THICK | LAYOUT_CENTER_X);
}
Then depending on some other input I try and switch them like
this:
_minConc_TF[i]->setLayoutHints(TEXTFIELD_INTEGER |
TEXTFIELD_LIMITED | FRAME_THICK | LAYOUT_CENTER_X);
But it does not work. They are still TEXTFIELD_REAL.
Can I change this on the fly or do I have to delete them and
recreate them to switch this?
Kind regards,
js
_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
image001.gif
(image/gif, 70 B) - not displayed