- David Peace (Powersoft)
- PowerBuilder
- Monday, 8 November 2021 02:51 PM UTC
Hi Guys
I just spotted an anomaly with the Window width & height values stored in the exported SRW compared to the property values shown in the IDE.
I have a window that shows width 2706 and height 996 in the IDE properties, if I open edit source if has the following
global type w_m_corp_act_list from awm_list_noam_sel
integer width = 2743
integer height = 1176
I have another window showing width 2816 height 1548 in the IDE properties and edit source shows:
global type w_m_sse_settle_perform_status_details from awm_details_nosel
integer width = 2853
integer height = 1652
It's not as if the difference is a fixed number. Can anyone shed some light on how to calculate the values in the IDE from the source?
I’m writing some global scrips editing the source of an application and I need to identify objects that have been moved off the window (i.e. outside of the height or width) so in the example of the second window above I have objects with a Y coordinate of 1624 and are not visible to the user as a result, I need to identify these and set the visible property to false. When I read the source the height is 1652 and so the Y coordinate looks like its within the window.
What is the algorithm for calculating height & width in the SRW?
Cheers
David
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.