View previous topic :: View next topic |
Author |
Message |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Fri Apr 08, 2005 2:12 pm Post subject: FlowLayout.flowReverse |
|
|
This program doesn't work as expected (Windows, haven't tried GTK or Motif):
Code: |
import minwin.all;
extern(C)
int MinWinMain(Application *app)
{
Window w=new Window("prueba");
w.quitOnDestroy=true;
FlowLayout fl=new FlowLayout();
fl.flowReverse=2;
w.layoutMgr=fl;
new Button(w,"foo");
new Button(w,"bar");
new Button(w,"baz");
w.visible=true;
return app.enterEventLoop();
}
|
The last button ("baz") is never showed. |
|
Back to top |
|
|
BenHinkle
Joined: 27 Mar 2004 Posts: 76
|
Posted: Thu Apr 14, 2005 1:25 pm Post subject: Re: FlowLayout.flowReverse |
|
|
Carlos wrote: | This program doesn't work as expected (Windows, haven't tried GTK or Motif). The last button ("baz") is never showed. |
Sorry for the delay in my replies. Life got busy. The bug is in layout.d in the FlowLayout.layout code. It should look like
Code: |
if (dir == Dir.Vertical)
y = top + height - actEndGap;
else
x = left + width - actEndGap;
|
instead of having r.top and r.left. I'll include that fix with my next MinWin update (which has been temporarily put on the back burner until I hear back from Walter on some stuff). |
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Thu Apr 14, 2005 5:20 pm Post subject: |
|
|
Thanks, that worked. |
|
Back to top |
|
|
lindquist
Joined: 14 Sep 2006 Posts: 55 Location: Copenhagen, Denmark
|
Posted: Sat Dec 02, 2006 7:04 am Post subject: |
|
|
this fix is now in SVN |
|
Back to top |
|
|
|