Date: Fri, 13 Oct 2000 21:09:51 +0200 From: alex@big.endian.de (Alexander Langer) To: libh@freebsd.org Subject: bug-finding-help requested Message-ID: <20001013210951.A42997@cichlids.cichlids.com> In-Reply-To: <200010131856.NAA54461@usw4.freebsd.org>; from alex@usw4.freebsd.org on Fri, Oct 13, 2000 at 01:56:29PM -0500 References: <200010131856.NAA54461@usw4.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Alexander Langer (alex@usw4.freebsd.org): > Add arrangement stuff to GroupWidgets. I have a VERY odd bug here. I REALLY don't know where it comes from and why it happens. Someone please try it out and tell me. Just run the simple-button example and look at the source: The buttons are added in order 1,2,3,4. Usually, thy should be ordered like this: [ button 1 ] [ button 2 ] [ button 3 ] [ button 4 ] But instead, the two lines are revererted: [ button 2 ] [ button 3 ] [ button 4 ] [ button 1 ] This is because of the list that contains the subwidgets for each group-widget. It adds new items with push_back(), which correctly works for the lower part. However, if I change that to push_front(), I get: [ button 1 ] [ button 4 ] [ button 3 ] [ button 2 ] so, it's completely revereted, as expected. What I wonder is: class Subwidgets is used by both, ContainerWidget AND GroupWidget. The SAME class! So why does it order the widgets in the correct order for ContainerWidgets (the thing that contains the three buttons in horizontal order) and in the reverted order for GroupWidgets? I can't find the bug here. Help is appreciated. Thanks in advance Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001013210951.A42997>