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

Pushbutton - Screen Painter

0 Likes
1,013

Hi,

Is it possible to create a push button in a screen and change the height of the button to more than one lines using screen painter?

We have created a screen for a z program.

We want to create a big push button in that screen using graphical screen painter.

The height Property is grey with default value 1 and we can not change it.

thanks.

4 REPLIES 4
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
764

Not that I know of. Workaround is a custom container with a picture or html control and you react on the mouse click event.

Read only

0 Likes
764

I agree, you could use  cl_gui_picture in a custom container, adjust size with  set_display_mode( display_mode = cl_gui_picture=>display_mode_stretch., then put icon image into area with method  load_picture_from_sap_icons. You can then handle event picture_click to raise a function code with cl_gui_cfw=>set_new_ok_code for example.

Regards,

Raymond

Read only

0 Likes
764

I normally prefer HTML, because I can generate it mostly in ABAP. With Pictures you have the problem of transportation, that is you have to deal with the MIME repository and how to access it. Of course you can also create your own database for pictures. Before the MIME repository was invented, that was the way I've done it. How would you do it?

Read only

0 Likes
764

The reason I used 'load_picture_from_sap_icons', no transport, no worry, only code