[gtkmm] Size of a TextView window
- From: "Andreas B. Thun" <abt gmx de>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Size of a TextView window
- Date: Mon, 19 Jan 2004 14:09:44 +0100
Hi!
I wonder how I can set the size of my
TextView window within a scrolled window.
Per default six lines are displayed but I
only want one.
I´ve tried with set_border_window_size
but it has no effect...
// Scrolled Window that holds text view for description
m_scrolledDescWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
m_DescriptionBuffer = Gtk::TextBuffer::create();
m_DescriptionBuffer->set_text("This is my text");
m_textViewDesc.set_buffer(m_DescriptionBuffer);
m_textViewDesc.set_border_window_size(Gtk::TEXT_WINDOW_TOP, 2);
m_scrolledDescWindow.add(m_textViewDesc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]