Positioning of 'apply' button

Hi,

Typically when adding apply/ok buttons they are positioned in the bottom area of the dialog box, on the right hand side

Does anyone know if it is possible to add an apply/ok button so that it is attached to the left hand side of the dialog box, rather then the right, and if so how this can be done.

As an example, if you display the 'Object Properties' dialog box, you can see that the 'Previous' and 'Next' buttons are positioned on the left hand side of the dialog box lower button area, and when the dialog box is resized they are clearly attached to the left hand side.


sphillman - Tue Aug 30 10:47:50 EDT 2016

Re: Positioning of 'apply' button
sphillman - Tue Aug 30 11:06:29 EDT 2016

Have just worked it out for myself.

Use a 'button' rather than apply/ok button, then position it so that it's top is aligned with an apply/ok button, and it's bottom and left are attached to the form.

e.g.

DBE apply1DBE = apply(mainDB, "Apply1", apply1Callback)

DBE apply2DBE = button(mainDB, "Apply2", apply2Callback)

    apply2DBE -> "top" -> "aligned" -> apply1DBE
    apply2DBE -> "bottom" -> "form"
    apply2DBE -> "left" -> "form"
    apply2DBE -> "right" -> "unattached"