Additional parameter for SetActiveGadget()
Posted: Sun May 03, 2009 10:40 am
Hi PureBASIC Team,
I found a different behaviour of SetActiveGadget() in Windows and Linux:
In Windows a StringGadget gets only the focus.
In Linux a StringGadget gets the focus and the text is selected.
(Since I can not decide in which OS it is a bug, I placed it here
)
For me the last case was good.
But in general the behaviour should be the same in all OSs.
And I think it is a good idea to have an additional parameter at SetActiveGadget() to have the possibility if the text inside the gadget should be selected or not.
Best regards,
Bernd
I found a different behaviour of SetActiveGadget() in Windows and Linux:
In Windows a StringGadget gets only the focus.
In Linux a StringGadget gets the focus and the text is selected.
(Since I can not decide in which OS it is a bug, I placed it here

For me the last case was good.

But in general the behaviour should be the same in all OSs.
And I think it is a good idea to have an additional parameter at SetActiveGadget() to have the possibility if the text inside the gadget should be selected or not.
Best regards,
Bernd