Learning Title width requirement [message #184343] |
Fri, 23 January 2004 22:07 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02593 seconds