Re: element's width, height auto set

"Volkov, Mike" <[email protected]> Thu, 10 Apr 2003 16:24:25 +0800
Newsgroups gmane.comp.python.anygui.devel
Organization Cyberp
Message-ID <[email protected]>
Dallas Johnston wrote:

> Not exactly sure what you mean by "auto set," but there are two things in mind:
> 
> 1. Default Values: Anygui currently has default values for most attributes.
	
  I mean, in Defaults.py for Button (for example, it may be listbox, 
textarea and so) exists such struct {... 'width':80, 'height':30 ...}. 
If I have dynamic text string for such button with fixed width, some 
strings won't fit in it.

  So I must set button's width depend on string's length (string's 
length * magic number). (Like HTML tags)

  Any ideas, how I can make it with Anygui? element's autosizing...


-- 
Volkov, Mike
http://pub.kem.ru/dev




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com