Page 1 of 1

Additional parameter for SetActiveGadget()

Posted: Sun May 03, 2009 10:40 am
by infratec
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 :lol: )


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

Re: Additional parameter for SetActiveGadget()

Posted: Sun May 03, 2009 11:55 am
by PB
As an option, yes. But don't select all by default. That's annoying sometimes,
for example when clicking the address bar of a web browser. Very annoying.