[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Proper grid item action management (RISC client), hotkey  XML
Forum Index -> Development
Author Message
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

Hello,

Happy New Year to all forum members.

What is the right way for a proper grid item action management (RISC client?

I want to use hotkeys for the selected grid item.
When using .{onPlus}, .{onMinus} etc. I get the action only on the first grid item.



Kind regards,
Joachim
[Thumb - gridaction.png]
 Filename gridaction.png [Disk] Download
 Description
 Filesize 14 Kbytes
 Downloaded:  516 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Joachim,

all wishes for a perrrfect 2018 to you as well!

CaptainCasa has two levels of HOTKEY definitions.

1. directly on the component, here ICON - then the HOTKEY is valid for the whole screen area. - You have to make sure that there is only one component on the screen to grab the HOTKEY. - Well, in your case, there is one icon per line, so this is not the right way.

2. via POPUPMENU, then the hotkey is valid for a defined zone of the screen. Which is the better approach here.

I would define a POPUPMENU with corresponding MENUITEMs, assign the POPUPMENU to the whole grid area (or the whole page ROWBODYPANE). And then apply the processing to the selected item of the grid. (grid.getSelectedItem()).

Regards, Björn

Björn Müller, CaptainCasa GmbH
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

Hi Björn,

thank You.

I placed the action method outside of the GridItem class. Then I call getSelectedItem() for the operation. Everything works as expected.

Kind regards,
Joachim
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...thanks for the feedback... - Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team