I’m not sure if this is the right group to ask, but here goes…
I’m working on a UI in PhAB, with user-editable text boxes. I want to
restrict the text to numbers via an edit mask, which works fine. But
when I run the program and click on the text box, the cursor
automatically goes to the end and won’t let me input anything until I
arrow back to the beginning. I’ve tried playing with
Pt_ARG_CURSOR_POSITION, but that doesn’t seem to make a difference. It
also doesn’t care whether I initially have a text string or not.
thanks,
Meredith Dill
Try to enable Pt_TEXT_AUTO_HIGHLIGHT in the Pt_ARG_TEXT_FLAGS - or do s.th.
at the “Got_Focus” callback.
/martin
Meredith Dill <mdill@aseco.com> schrieb in im Newsbeitrag:
39EE1378.9F3C367B@aseco.com…
I’m not sure if this is the right group to ask, but here goes…
I’m working on a UI in PhAB, with user-editable text boxes. I want to
restrict the text to numbers via an edit mask, which works fine. But
when I run the program and click on the text box, the cursor
automatically goes to the end and won’t let me input anything until I
arrow back to the beginning. I’ve tried playing with
Pt_ARG_CURSOR_POSITION, but that doesn’t seem to make a difference. It
also doesn’t care whether I initially have a text string or not.
thanks,
Meredith Dill