[gtkada] Update CTree contents and horizontal scrollbars

Marc A. Criley mcq95 at earthlink.net
Mon Jul 22 16:35:16 CEST 2002


Yes, actually everything correctly behaved exactly as I programmed it to
behave :-)  And did so in full agreement with the documentation that was
provided, it was just my personal lack of awareness of this facet of putting
self-scrolling controls into windows that caused a problem.

I'd used Viewports when adding other controls to a window, so it didn't
occur to me that wasn't necessary for all controls.  Lesson learned:  Always
read the intro documentation when using a widget I've not used before--not
just the subprogram descriptions.

Marc

> -----Original Message-----
> From: gtkada-admin at lists.act-europe.fr
> [mailto:gtkada-admin at lists.act-europe.fr]On Behalf Of Emmanuel Briot
> Sent: Monday, July 22, 2002 8:22 AM
> To: gtkada at lists.act-europe.fr
> Subject: Re: [gtkada] Update CTree contents and horizontal scrollbars
>
>
> "Marc A. Criley" <mcq95 at earthlink.net> writes:
>
> > The problem didn't have anything to do with scrollbars, adjustments, or
> > changing the node text.  What I had been doing was adding the
> CTree control
> > to a Viewport, then adding that to the Scrolled_Window.  I
> happened to spot
> > a comment in the Scrolled_Window docs that said that you didn't
> need to use
> > a Viewport when adding a control that managed its own scrolling, like a
> > CList, to a Scrolled_Window.  Well, CTree is derived from
> CList, so I dumped
> > the Viewport and added the CTree directly into the window.
>
> It is actually surprising that you didn't get any warning from gtk+ when
> running your program, but I guess these warning only happen when
> you do not use
> a Viewport and you should, not when you use an extra one.
>
> Thanks for the report, I'll update the documentation accordingly.
>
> Emmanuel
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.act-europe.fr
> http://lists.act-europe.fr/mailman/listinfo/gtkada
>






More information about the gtkada mailing list