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

Can't get vbox of Dialog

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



Joined: 17 Jan 2007
Posts: 9
Location: Taiwan

PostPosted: Wed Jan 31, 2007 1:38 am    Post subject: Can't get vbox of Dialog Reply with quote

In the GTK+, GtkDialog have two main part.
gtkDialog->vbox and gtkDialog->actionArea.

gtkDialog->actionArea is where the button placed, and gtkDialog->vbox is where message or other widget placed.

In GTK+, if I want put some widget into a dialog, I can just put it into gtkDialog->vbox using gtk_box_pack_start().

But the class Dialog of DUIT doesn't have member named vbox, neither have any member function to access the vbox part.

So, what should I do if I want put some widget(ex.a label) into the dialog?
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Wed Jan 31, 2007 9:02 am    Post subject: Re: Can't get vbox of Dialog Reply with quote

brianhsu wrote:
In the GTK+, GtkDialog have two main part.
gtkDialog->vbox and gtkDialog->actionArea.

gtkDialog->actionArea is where the button placed, and gtkDialog->vbox is where message or other widget placed.

In GTK+, if I want put some widget into a dialog, I can just put it into gtkDialog->vbox using gtk_box_pack_start().

But the class Dialog of DUIT doesn't have member named vbox, neither have any member function to access the vbox part.

So, what should I do if I want put some widget(ex.a label) into the dialog?

There are a some cases where direct access to the data struct is necessary.
(Sounds to me the Gtk+ API should be extended to avoid that)
Duit should wrap the common ones.
This one should definitively be added - I'll do it.
thank you for pointing this out.

Ant
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