I’m using a StdDialogButtonSizer to position Ok and Cancel buttons in a big dialog.
The StdDialogButtonSizer sits inside a cell of a FlexGridSizer, and I want it to occupy all of that space, with lots of space around the buttons. Mockup attached.
How do I do this? I don’t see any arguments to StdDialogButtonSizer.AddButton.
Hello,
I'm using a `StdDialogButtonSizer` to position Ok and Cancel buttons in a
big dialog.
The `StdDialogButtonSizer` sits inside a cell of a `FlexGridSizer`, and I
want it to occupy *all* of that space, with lots of space around the
buttons. Mockup attached.
How do I do this? I don't see any arguments to
`StdDialogButtonSizer.AddButton`.
You don't want to use the StdDialogButtonSizer then, if your not doing
a standard button layout.
That sizer is there to automatically handle correct ordered
positioning of standard dialog buttons (i.e Ok, Cancel, Yes, No,...)
and applies platform standard spacing between them to match the native
look and feel of native dialogs.
Cody
···
On Wed, Apr 13, 2011 at 7:51 PM, cool-RR <ram.rachum@gmail.com> wrote:
Cool, so I’ll just make a plain sizer and layout the buttons myself.
What kind of work will I have to do? I mean, on Windows the Ok is on the left, and on GTK and Mac it’s on the right, right? Any other thing I need to know?
On Thu, Apr 14, 2011 at 4:23 AM, Cody Precord <codyprecord@gmail.com > <mailto:codyprecord@gmail.com>> wrote:
Hi,
On Wed, Apr 13, 2011 at 7:51 PM, cool-RR <ram.rachum@gmail.com > <mailto:ram.rachum@gmail.com>> wrote:
> Hello,
> I'm using a `StdDialogButtonSizer` to position Ok and Cancel
buttons in a
> big dialog.
> The `StdDialogButtonSizer` sits inside a cell of a
`FlexGridSizer`, and I
> want it to occupy *all* of that space, with lots of space around the
> buttons. Mockup attached.
> How do I do this? I don't see any arguments to
> `StdDialogButtonSizer.AddButton`.
>
You don't want to use the StdDialogButtonSizer then, if your not doing
a standard button layout.
That sizer is there to automatically handle correct ordered
positioning of standard dialog buttons (i.e Ok, Cancel, Yes, No,...)
and applies platform standard spacing between them to match the native
look and feel of native dialogs.
Cody
Cool, so I'll just make a plain sizer and layout the buttons myself.
What kind of work will I have to do? I mean, on Windows the Ok is on the
left, and on GTK and Mac it's on the right, right? Any other thing I
need to know?