FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FlowLayout.flowReverse

 
Post new topic   Reply to topic     Forum Index -> MinWin
View previous topic :: View next topic  
Author Message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Fri Apr 08, 2005 2:12 pm    Post subject: FlowLayout.flowReverse Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
BenHinkle



Joined: 27 Mar 2004
Posts: 76

PostPosted: Thu Apr 14, 2005 1:25 pm    Post subject: Re: FlowLayout.flowReverse Reply with quote

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
View user's profile Send private message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Thu Apr 14, 2005 5:20 pm    Post subject: Reply with quote

Thanks, that worked.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
lindquist



Joined: 14 Sep 2006
Posts: 55
Location: Copenhagen, Denmark

PostPosted: Sat Dec 02, 2006 7:04 am    Post subject: Reply with quote

this fix is now in SVN
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MinWin All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group