Re: [gtk-list] Re: VAdjustment ...
- From: David Whitehurst <david whitehurst att net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: VAdjustment ...
- Date: Tue, 21 Dec 1999 19:31:46 -0500
"Arjan J. Molenaar" wrote:
> Hi,
>
> You should place the text widget in a GtkScrollWindow using
> gtk_container_add (I'm not common with the C++ API ;-) That should do
> the trick.
>
> David Whitehurst wrote:
> >
> > Folks:
> >
> > I have a GTK-- Application and I am trying to model the app for GTK-- in
> > a C++ fashion. I can't seem to get a scrollbar on the text widget. It
> > is a little different than the GTK+ ("C") way of doing things. Anyhow
> > here is the application constructor with the text widget. Anyone who
> > can help with the vertical scrollbar? The file is attached.
> >
> > Thanks,
> >
> > David
> > david.whitehurst@att.net
> >
> > ------------------------------------------------------------------------
> >
> > gApplication::gApplication():
> > label("Select File to Begin ..."),
> > textbox(new Gtk_Text)
> > {
> >
> > gMenuItemFactory *itemfactory;
> > main_vbox = new Gtk_VBox(FALSE,1);
> > itemfactory = new gMenuItemFactory;
> > // vadj = new Gtk_Adjustment;
> > // vscrollbar = new Gtk_VScrollbar(&vadj);
> > add(main_vbox);
> > main_vbox->pack_start(itemfactory->menubar,false,false,false);
> > main_vbox->pack_start(label);
> > main_vbox->pack_start(*textbox);
> > // main_vbox->pack_start(*vscrollbar);
> > main_vbox->show();
> > itemfactory->menubar->show();
> > label.show();
> > textbox->show();
> > }
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
Thanks, Arjan. That's what I'll be trying tonight.
Thanks again,
David
david.whitehurst@att.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]