Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically changing icon

Former Member
0 Likes
357

hi all,

anyone know how to change button's icon dynamically ?

regards

Jose

2 REPLIES 2
Read only

Former Member
0 Likes
335

Hi,

if that button is in Selection screen do like below...

SELECTION-SCREEN PUSHBUTTON 10(10) but1 USER-COMMAND com.
DATA flag.

INITIALIZATION.
  MOVE '@08@ Go' TO but1.

AT SELECTION-SCREEN.
  CASE flag.
    WHEN 'X'.
      MOVE '@08@ Go' TO but1.
      MOVE ' ' TO flag.
    WHEN ' '.
      MOVE '@0A@ Stop' TO but1.
      MOVE 'X' TO flag.
  ENDCASE.

Cheers,

jose.