cancel
Showing results for 
Search instead for 
Did you mean: 

Power builder 11.5 Object's shape

Former Member
0 Kudos

Hello,

I am wondering how to get a datawindow's Object's Shape property. I am trying to pass this information on to a web-service to redraw shapes and managed to grab all info i need except for which shape is currently displayed. I know there is a datawindow lable. shape but i don't think that is it and it didn't work. Looking at the Datawindow source I can see that the different objects starts with their respective Shape naming I.e. rectangle, ellipse.

This might be a very simple question but I couldn't find an answer as of yet.

Thanks in advance,

Shai

ls_describe="DataWindow.objects"

ls_objects = idw_location.describe(ls_describe)

from the debugger:

valuer_7r_30r_23r_21r_4r_f7r_f6r_f5r_19r_8r_6r_12r_9r_33r_5r_1r_3r_2r_29r_f1l_2t_3t_1t_7t_32l_1t_2t_4t_5t_6t_10t_11t_8t_18r_f2t_19r_f3t_20r_f4t_21r_13t_12r_16t_15r_26t_25r_14t_13r_15t_14r_17t_16r_10t_33r_28t_28r_34t_35r_35t_30r_37t_36r_27t_26r_31t_27r_32t_31r_11t_9r_18t_17t_29t_34r_22t_39t_24t_23t_22t_40t_38r_25t_42r_36t_43r_20t_37r_38t_44r_24t_41r_39t_45

.

.

.

          ls_width =  ls_objectname + ".width"

          ls_width = idw_location.describe(ls_width)

 

          ls_height =  ls_objectname + ".height"

          ls_height = idw_location.describe(ls_height)

??????

ls_shape =  ls_objectname + ".shape"

          ls_shape = idw_location.describe(ls_shape)

Accepted Solutions (1)

Accepted Solutions (1)

former_member190719
Active Contributor
0 Kudos

There is no "shape" attribute.  You might look at the "type" attribute, which would return one of the following:

datawindow

bitmap (for Picture)

button

column

compute (for Computed Field)

graph

groupbox

line

ole

ellipse (for Oval)

rectangle

report

roundrectangle

tableblob

text


Former Member
0 Kudos

Thanks Bruce! I searched high and low for this one...

Answers (0)