Additional parameter for SetActiveGadget()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7583
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Additional parameter for SetActiveGadget()

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Additional parameter for SetActiveGadget()

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply