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

HButtonBox.createActionBox return type - bug or feature?

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
maksim



Joined: 03 Feb 2011
Posts: 4
Location: Russia

PostPosted: Fri Feb 18, 2011 5:44 pm    Post subject: HButtonBox.createActionBox return type - bug or feature? Reply with quote

Hello!

HButtonBox.createActionBox method creates HButtonBox object
but returns ButtonBox object:
Code:
static ButtonBox createActionBox()
{
   ButtonBox bBox = new HButtonBox();
   bBox.setLayout(ButtonBoxStyle.END);
   bBox.setBorderWidth(5);
   bBox.setSpacing(7);
   return bBox;
}

For VButtonBox it is the same.
Because of this I have to make a type cast. Sad
Is it needed for some purpose?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Mar 06, 2011 9:19 am    Post subject: Reply with quote

I don't know why is't like this, it should probably be changed.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Mar 12, 2011 9:53 am    Post subject: Reply with quote

Changed in svn r806
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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