Author |
Message |
10/01/2018 20:38:23
|
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
|
Filename |
gridaction.png |
Download
|
Description |
|
Filesize |
14 Kbytes
|
Downloaded: |
516 time(s) |
|
|
|
11/01/2018 04:50:57
|
CaptainCasa
Power User
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 |
|
|
12/01/2018 20:06:41
|
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
|
|
|
13/01/2018 06:47:26
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5520
Offline
|
...thanks for the feedback... - Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|