StringGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

I know this was mentioned before but I don't think it was ever resolved.

It would be nice to detect a RETURN or ENTER when entering data into a StringGadget.

Or when you set a ButtonGadget to active, ENTER will also trigger it (not everyone thinks of pressing the SPACEBAR)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

What do you mean?
Something like 'SetFocus(Gadget#)'? Well we have ActivateGadget(#Gadget).
(Maybe you are asking for something different...)

What is then with a command 'result=GetActivGadget()'
If you have a bunch of Gadgets then is 'Result = GetGadgetState(#Gadget)' not real funny...


Have a nice day...
Franco

Edited by - Franco on 14 December 2001 16:17:42
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

No, what I mean is if you have a ButtonGadget and you use ActivateGadget to set the focus to it... I want to be able to press ENTER to use that button instead of having to use SPACEBAR or a mouse click.

I would also like to be able to detect ENTER key being pressed when typing data into a StringGadget. Right now you have to TAB out or set focus on a new gadget with the mouse.

It would be nice to be able to set a button as a default and then if you pressed enter while focused on a StringGadget, it would use the button you assigned as the default.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Paul, you are soooo right!!!

I miss this function too!!!



Tranquilizer/ Secretly!
Post Reply