GtkD button size
SaltySugar
Butkustomas777 at gmail.com
Tue Feb 5 09:33:50 PST 2013
On Monday, 4 February 2013 at 21:55:24 UTC, Mike Wey wrote:
> On 02/04/2013 03:03 PM, SaltySugar wrote:
>> On Sunday, 3 February 2013 at 16:07:06 UTC, Artur Skawina
>> wrote:
>>> On 02/03/13 16:53, SaltySugar wrote:
>>>> GTKD. Can someone explain me how to change button size in
>>>> vbox, hbox?
>>>> setSizeRequest (70, 50); doesn't work. Thanks.
>>>
>>> Try playing with an interactive gui tool, such as glade. The
>>> fill,
>>> expand and
>>> size request interactions will be immediately visible.
>>>
>>> artur
>>
>> I'm waiting other answers :)
>
> A VBox or A HBox will always expand the Widget in the direction
> opposite of the on it's managing, if it expands the Widget in
> that direction depends on the options passed to packStart. So
> get the size request to work with those containers you'll have
> to wrap a HBox in a VBoc or visa versa.
>
> A more convenient container would be the ButtonBox which
> doesn't expand the Button in the direction it's not managing.
> And thus properly handles the size request.
>
> A Grid or Table might also apply depending on the complete
> layout.
I can't find any tutorials about buttonboxes. Can you write how
to use it?
More information about the Digitalmars-d-learn
mailing list