gettingstarted
[Top] [All Lists]

Re: Resizing several fields?

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: Resizing several fields?
From: GAmoore at aol dot com
Date: Thu, 28 Oct 2004 11:30:31 EDT
Delivered-to: gettingstarted at lists dot realsoftware dot com
I don't this is an approved use, but you can put some editfields in a group 
edit box. lock left and right for the edit fields. Then when you change the 
size of the group edit box, it changes the size of the edit fields, keeping 
them 
the same width, although the control over their width is not very fine - the 
space between the edit fields changes. 

Its not that hard to do it in code. If you have n editfields of width w, in a 
window of width W, and you want the space between them to remain proportional 
at m = .2w then
W = nw + (n+1)(.2w) = w(1.2n + .2)
So w = W/(1.2n + .2)
for i = 0 to n-1
   editfield(i).left = .2*w + i*w
next
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>