Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Learning Title width requirement
Learning Title width requirement [message #184343] Fri, 23 January 2004 22:07
Eclipse UserFriend
I have a simple Dialog and wanted to set the shell size to be wide enough
for bot the Title and Text string it has been passed. So far, I've only
found how to get the Text for the title (which I already know as I set this
with shell.setText). Is there any way to accomplish the equivalent of .pack
on the title area? Imagine a dialg with a title, a text message and an Ok
button. Because the title uses a larger font the content of the shell can
display but cause the title to truncate behind the window control buttons in
the upper right. I suppose if you can give me a means to get the title bar
font I can use the string length * size of 'W' character plus some slop for
the window control buttons but there must be a better way... Any help is
appreciated.

Best Regards, Nat
Previous Topic:how can I get method or type name?
Next Topic:getting the coordinates of a selection
Goto Forum:
  


Current Time: Mon May 12 04:58:09 EDT 2025

Powered by FUDForum. Page generated in 0.02593 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top