- Greg Bergbower
- PowerBuilder
- Wednesday, 26 August 2020 07:47 PM UTC
I have a base window object w_parent that includes datawindow control dw_1. I create a new window w_child that inherits from w_parent. On w_child I assign datawindow object d_customer to datawindow control dw_1. Also on w_child I insert a new datawindow control dw_2 and hook up the same datawindow object d_customer to it.
DataWindow Control dw_1 on w_child has a height of 400.
DataWindow Control dw_2 on w_child has a height of 400
DataWindow Object detail band has a height of 1000
When running the application from PB, dw_1 and dw_2 are different heights even though they are tied to the same datawindow object. dw_1 reflects 1000 while dw_2 reflects 400. The properties of the 2 datawindow controls are identical. dw_1 has a tab order of 10 on both w_parent and w_child. Autosize Height is turned off on d_customer.
I would expect the functionality of both datawindow controls to be the same but it appears the datawindow object that includes inheritance is pulling the height from the datawindow object assigned to it where as the datawindow object not from inheritance is pulling the height from the datawindow control.
Is this by design or a bug? Or am I missing a setting somewhere?
thanks,
greg
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.