GtkD button size
Mike Wey
mike-wey at example.com
Mon Feb 4 13:57:36 PST 2013
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.
--
Mike Wey
More information about the Digitalmars-d-learn
mailing list