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

Get chart' size at runtime and set particular scroll position

alexandreourth
Active Participant
0 Likes
962

Hello,

Another thread without response on the subject : Size of Charts

Context : In a program, we have a GL_GUI_BARCHART object with 3 charts created with the method CREATE_CHART.

  1. I have to set the size (Height) of the previous graphs modified by the user when he starts again the program.
  2. I have to set the scroll at a certain position for 2 Graphs.

Problem :

  1. I can't find a way in the CL_GUI_BARCHART class to get the references of the 3 graphs and so i can't read their size at runtime in a OO way...I know it's inherited from CL_GUI_CONTROL but the method GET_HEIGHT returns nothing...
  2. Is it even possible?

Thanks for your time

Regards,

Alexandre

Hello,

Another thread without response on the subject : Size of Charts

Context : In a program, we have a GL_GUI_BARCHART object with 3 charts created with the method CREATE_CHART.

  1. I have to set the size (Height) of the previous graphs modified by the user when he starts again the program.
  2. I have to set the scroll at a certain position for 2 Graphs.

Problem :

  1. I can't find a way in the CL_GUI_BARCHART class to get the references of the 3 graphs and so i can't read their size at runtime in a OO way...I know it's inherited from CL_GUI_CONTROL but the method GET_HEIGHT returns nothing...
  2. Is it even possible?

Thanks for your time

Regards,

Alexandre

3 REPLIES 3
Read only

DoanManhQuynh
Active Contributor
0 Likes
896

maybe you can try function module: BARC_SET_ROW_HEIGHT. look at demo: BARCBO03 if it could help you.

Read only

0 Likes
896

Hello Quynh,

Thanks for your time and your answer. I think I've found how to set the size of the Chart with the function module ''BARC_SET_CHART_ATTRIB".

I think yours is for setting the height of a "Row" in the chart.

But my need is to get the size of my charts at runtime (and set the scroll position in the charts)

Read only

0 Likes
896

So how did you save the previous setting of that barchart?