Gtk::Frame not drawing any shadow
- From: Johannes Marbach <jm rapidrabbit de>
- To: gtkmm-list gnome org
- Subject: Gtk::Frame not drawing any shadow
- Date: Mon, 3 Oct 2011 16:23:56 +0200
Hi there.
#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]