browsecol optimal width

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

browsecol optimal width

#1 Post by c-tec »

Hello,
how can set the correct width of a browsecol when browsing an multidimensional array ? For now I check the array elements for the biggest value and set the size of the column, but this does not work in all cases.
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: browsecol optimal width

#2 Post by rdonnay »

Use the OPTIMIZE clause of @ .. DCBROWSE.

This will optimize a column when double-clicked in the header.

To force a column to optimize on startup:

DCBROWSECOL EVAL {|o|PostAppEvent(xbeM_DblClick,{0,0},,o:heading)}
The eXpress train is coming - and it has more cars.

Post Reply