Aligning widgets on text baseline
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Aligning widgets on text baseline

From: Dan <danielk1977@gmail.com>
Date: Sun Feb 19 2006 - 19:20:03 CET

Tkhtml acts as a geometry manager for other Tk widgets used as html
form controls. To set the position of a mapped widget it uses
Tk_MoveResizeWindow(). This positions the south-west corner of the
window to the specified coordinates.

My question is, how can I map the widget relative to the baseline of
the widget text. For example, if the html is {Enter name: <input
type="text">} and an [entry] widget is used to replace the <input> tag,
how can I arrange to have the text "Enter name" lined up vertically
with the text the user will type in the [entry] widget?

Enter name: [...entry widget...]

Any and all suggestions welcome. I'm most interested in the [button],
[entry] and [menubutton] widgets.
Received on Sun Apr 30 02:09:14 2006