Re: Frame shadow types
- From: Glus Xof <gtglus gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Frame shadow types
- Date: Sat, 10 Sep 2011 11:43:51 +0200
I just see... sorry... this comes -I think- from gtk+-3.0...
2011/9/9 Glus Xof <gtglus gmail com>:
> Hi Guys,
>
> The attached sample programm left all four frames with the same type
> as "Shadow In"... What's wrong ?
>
> (Gtkmm release 3.1.18)
>
> #include <gtkmm.h>
>
> int main (int argc, char *argv[])
> {
> Gtk::Main FramesApp (argc, argv);
>
> Gtk::Window FramesWindow;
> FramesWindow.set_title ("Frames Window");
> FramesWindow.set_position (Gtk::WIN_POS_CENTER);
> FramesWindow.set_default_size (250, 250);
> FramesWindow.set_border_width (10);
>
> Gtk::Table fr_table (2, 2, true);
> fr_table.set_col_spacings (10);
> fr_table.set_row_spacings (10);
>
> Gtk::Frame frame1 ("Shadow In");
> Gtk::Frame frame2 ("Shadow Out");
> Gtk::Frame frame3 ("Shadow Etched In");
> Gtk::Frame frame4 ("Shadow Etched Out");
>
> frame1.set_shadow_type (Gtk::SHADOW_IN);
> frame2.set_shadow_type (Gtk::SHADOW_OUT);
> frame3.set_shadow_type (Gtk::SHADOW_ETCHED_IN);
> frame4.set_shadow_type (Gtk::SHADOW_ETCHED_OUT);
>
> fr_table.attach (frame1, 0, 1, 0, 1);
> fr_table.attach (frame2, 0, 1, 1, 2);
> fr_table.attach (frame3, 1, 2, 0, 1);
> fr_table.attach (frame4, 1, 2, 1, 2);
>
> FramesWindow.add (fr_table);
>
> FramesWindow.show_all_children();
>
> FramesApp.run (FramesWindow);
>
> return 0;
> }
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]