2008 Apr 26 7:38 AM
Hello Gurus ,
hw to change the Icon of a button in run time (module pool program ) .
regards .
Joy .
Hello Gurus ,
hw to change the Icon of a button in run time (module pool program ) .
regards .
Joy .
2008 Apr 29 12:37 AM
Hello Joy,
You can use this simple code:
include <icon>.
data: wa_icon(8).
parameters: in.
start-of-selection.
case in.
when 'A'.
wa_icon = '@1A@'.
when 'B'.
wa_icon = '@1B'.
when 'C'.
wa_icon = ICON_MESSAGE_CRITICAL. "'@1D@'.
when others.
wa_icon = 'invalid'.
endcase.
write: / in, 'leads to', wa_icon.Try it.
The include <icon> represents all available icons (in Netweaver: 1140!). This technique works also in Dialog programs and has to be implemented in PBO or PAI depending on how you want to use it.
Have success,
Heinz
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |