Older Newer
Fri, 26 Apr 2013 19:49:05 . . . . SyneRyder [Adding HSCROLL & VSCROLL properties]


Changes by last author:

Added:
= EDIT =

== Syntax ==

:ctl[n]: EDIT(Class Specific Properties), Other Properties

== Description ==

:The EDIT class creates a text edit control on the filter dialog window.

== Class Specific Properties ==

:AUTOHSCROLL

::Allows the text entered to extend longer than the width of the control.

:AUTOVSCROLL

:: Allows the text entered to extend longer than the height of the control.

:CENTER

::Centers the text in the edit control

:HSCROLL

:: Adds a horizontal scrollbar to the control.

:LEFT

::Aligns the text to the left of the control

:LOWERCASE

::Converts any text typed into the control into lowercase.

:MULTILINE

::Extends the text control to multiple lines and allows newline characters to be entered.

:NOHIDESEL

::Doesn't hide the selected text when the control loses focus.

:NUMBER

::Restricts the text that can be entered into the control to numbers only.

:PASSWORD

::Masks the text typed into the control, displaying them as asterisks.

:READONLY

::Prevents the text in the control from being edited.

:RIGHT

::Aligns the text to the right of the control

:UPPERCASE

::Converts any text typed into the control into uppercase.

:VSCROLL

:: Adds a vertical scrollbar to the control.

== Example ==

<code>

ctl[0]: EDIT(RIGHT,UPPERCASE), Pos=(50,100)

ctl[1]: EDIT(RIGHT,NUMBER), Pos=(50,120), size=(15,10), "0"

OnCtl(n): {

int r;

if (n==1) {

r = (int)strtod(getCtlText(1), 0);

}

}

</code>

== Notes ==

:This control is only available as of FilterMeister 1.0 Beta 8.5.

:Note that the Lowercase, Uppercase and Number modifiers do not prevent excluded characters from being pasted into the control.

:When using the Multiline property, remember that native Windows controls use \r\n as a line ending, not just \n on its own.