davidvilla
Member
I am defining a static browse, adding columns and setting the query to it dynamically based on user selection - sort of hybrid.
I can update the title of the browse dynamically, but I am not able to update the width of this static browse. I understand that once the browse is realized, I cannot update the width or size of the browse. But, is there any workaround to do that ?
I'm using 11.2, CHUI.
I can update the title of the browse dynamically, but I am not able to update the width of this static browse. I understand that once the browse is realized, I cannot update the width or size of the browse. But, is there any workaround to do that ?
Code:
define query qcust for customer scrolling.
define variable hbrowse as handle no-undo.
define browse brcust
with 6 down size 40 by 10 centered title " customer " .
define frame fcust
brcust
with side-labels overlay width 80 row 2 column 1 title " hybrid browse".
on f5 of brcust in frame fcust do:
brcust:width in frame fcust = 60. /* i also tired --> hbrowse:width = 60. */
brcust:title in frame fcust = "--customer expand--". /* i also tired --> hbrowse:title = "--customer expand--". */
end.
view frame fcust.
hbrowse = brcust:handle.
hbrowse:query = query qcust:handle.
hbrowse:add-like-column("customer.custid").
hbrowse:add-like-column("customer.custname").
hbrowse:add-like-column("customer.custtstat").
open query qcust
for each customer no-lock.
enable brcust with frame fcust.
apply "entry" to brcust in frame fcust.
wait-for close of this-procedure.
I'm using 11.2, CHUI.
Last edited: