Older Newer
Sat, 04 Aug 2018 09:36:49 . . . . SyneRyder [Comment on what the example code does]


Changes by last author:

Added:
= setDialogMinMax =

== Syntax ==

:setDialogMinMax(int minX, int minY, int maxX, int maxY)

== Arguments ==

:minX

::The minimum width (in DBUs) the filter dialog can be resized to

:minY

::The minimum height (in DBUs) the filter dialog can be resized to

:maxX

::The maximum width (in DBUs) the filter dialog can be resized to

:maxY

::The maximum height (in DBUs) the filter dialog can be resized to

== Description ==

:Sets the minimum and maximum width/height that the filter dialog can be resized to.

== Example ==

<code>

// Prevent dialog resizing by setting both minimum & maximum to the current dialog size

setDialogMinMax( getDialogWidth(), getDialogHeight(), getDialogWidth(), getDialogHeight() );

</code>

== Also see ==

:getDialogWidth, getDialogHeight

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.