GIRD Control need KEYPRESS Event.

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

GIRD Control need KEYPRESS Event.

Post by shridhar »

GIRD Control need KEYPRESS Event.

When USER press any key (range A-Z,0-9) on GRID a KEYPRESS event should fire carring with Key pressed value.

Hi Rathi,

Please let me know if already exists this event.

Thanks in Advance.
Shridhar
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: GIRD Control need KEYPRESS Event.

Post by Roberto Lopez »

shridhar wrote:GIRD Control need KEYPRESS Event.

When USER press any key (range A-Z,0-9) on GRID a KEYPRESS event should fire carring with Key pressed value.

Hi Rathi,

Please let me know if already exists this event.

Thanks in Advance.
Shridhar
It's a good idea.

Anyway, please consider that you alway could use ON KEY command.

In the ON KEY procedure you've defined, you could ask for 'FocusedControl' property, to know if (ie) a grid is focused in the current window and code it as you need.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: GIRD Control need KEYPRESS Event.

Post by Rathinagiri »

Thanks for the info Roberto.

Same way, can we capture mouse clicks also in a global way?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: GIRD Control need KEYPRESS Event.

Post by Roberto Lopez »

rathinagiri wrote:Thanks for the info Roberto.

Same way, can we capture mouse clicks also in a global way?
OnMouseClick window event works only over windows 'surface'.

Controls capture mouse, so this event do not work inside controls.

Anyway, usually you don't need to capture mouse in controls, since the default action is the one desired (ie: button click).

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: GIRD Control need KEYPRESS Event.

Post by Rathinagiri »

Thanks Roberto. In that case, can the mouse click event outside a modal window (ie., trying to go out from Modal window) be captured?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: GIRD Control need KEYPRESS Event.

Post by Roberto Lopez »

rathinagiri wrote:Thanks Roberto. In that case, can the mouse click event outside a modal window (ie., trying to go out from Modal window) be captured?
I'm not sure... I'll should research it to give a right answer...


Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

Re: GIRD Control need KEYPRESS Event.

Post by shridhar »

Thanks Master..

Shridhar
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

Re: GIRD Control need KEYPRESS Event.

Post by shridhar »

Hi Master,

Could you please inculde this KEYPRESS event in the 2.9.6 release ?

Thanks in Advance...!
Shridhar
Post Reply