Re: Why Gtk::Entry don't fill cells in tables?
- From: "Alexander Gehlert" <mail gehli com>
- To: smart_n netman ru, gtkmm-list gnome org
- Cc:
- Subject: Re: Why Gtk::Entry don't fill cells in tables?
- Date: Tue, 23 May 2006 19:21:48 +0200 (CEST)
probaly the entry has a default size of the used font or something like that...
add this to your code and all will work fine:
entry.set_size_request(-1, 50);
Regards!
Alex
----- Original Message -----
From: smart_n netman ru <SMART_n>
To: gtkmm-list gnome org
Date: 22.05.2006 11:53:29
Subject: Why Gtk::Entry don't fill cells in tables?
> Hello.
> The problem is that Gtk::Entry widget don't increase its height to fill
> a table cell. Example source:
>
> class ExampleWindow: public Gtk::Window
> {
> private:
> Gtk::Table table;
> Gtk::Entry entry;
> Gtk::Button button;
> public:
> ExampleWindow()
> {
> add(table);
> button.set_size_request(50, 50);
> table.resize(1, 2);
> table.attach(entry, 0, 1, 0, 1, Gtk::FILL | Gtk::EXPAND, Gtk::FILL);
> table.attach(button, 1, 2, 0, 1, Gtk::SHRINK, Gtk::SHRINK);
>
> show_all();
> }
> };
>
> int main(int argc, char *argv[])
> {
> Gtk::Main Application(argc, argv);
>
> ExampleWindow window;
> Gtk::Main::run(window);
> }
>
> In this example the height of the entry widget is less than 50. Why?
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]