Re: Resizing MessageDialog


On Sat, Apr 02, 2005 at 10:33:23AM +0200, A. Pagaltzis wrote:
* Stephan Martin <sm sm-zone net> [2005-04-02 09:00]:
I create a Dialog with a warning, and if i have some additional
info (output of the command) i add a second button to toggle a
textfield with this extended information.

Instead of rolling your own solution using a button, you should
use the appropriate widget, in this case an expander.

Thank you very much, this is really fine and looks much better than my
selfmade construct :-)

Nevertheless i encounter my resizing problem with that also.

The command output is sometimes quite much, so the window will grow too
big if i add the text without Gtk2::ScrolledWindow.

I i use a scrolled window, the dialog box becomes very small and i'm not
able to resize the dialog box at all. I can circumvent this to a little
part with not adding a horizontal scollbar, but vertically i only see 3 of
about 100 lines.

Following the c documentation, i thought, i should be able to call
$dialog->set_resizeable(1), but that spits out an error so it looks like i
missed something here.


   /V\           [  sm sm-zone net     GnuPG: 0x7E30CD6D  ]
 /(   )\
  ^ ~ ^  {\$_=\$i++%2?hex:oct;\$_=chr(\$_%(2**2*22));\$_=\$i?lc:{};print;
}';s/\( +\)|[.\/V~^\\\]+| {2,}|\\[\s+.+\s+\\]//g;eval \$_;"&&echo $t|perl

Attachment: pgpXSOeGQjLKz.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]