` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Sizing a listbox
2008-01-28 -- Gustavo Pinsard
 
Is there a way to size a particular field in a listbox with the "whats left" room, like using -1 on a status bar. I have several list boxes that i was a particular field (that is not the "last" field to take up what room is left on a resizeable window. ----- What I do is to calculate the sum of all collumns tha I don't want to alter width, subtract it from the listbox width and apply the difference to the collumn I want to resize: w# = ?ListAgrupado{ PROPLIST:Width, 3 } + | ?ListAgrupado{ PROPLIST:Width, 5 } + | ?ListAgrupado{ PROPLIST:Width, 7 } ?ListAgrupado{ PROPLIST:Width, 1 } = ?ListAgrupado{ PROP:Width } - w# In this case, I'm expanding the first column. Notice that I skip every other column when summing. That's because the queue that feeds the list has style columns.


Today is April 30, 2024, 12:35 pm
This article has been viewed 35121 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: