Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Action
  Target
  Pre-defined Actions
  OnExecute
  Execute
  Post
Pre-defined Actions [[zAction.predefined]] 
NOTE: This Design document is subject to change at any time.
zApp contains a large number of pre-defined actions for a variety of purposes. Using these actions can significantly decrease the amount of code you need to perform various tasks. Each pre-defined action starts with a _ character to distinguish it from a normal user-defined action.

All Edit Controls

The following actions can be used with most all edit controls
_EditCut
Cut the text from the current edit control to the clipboard.
_EditCopy
Copy the text from the current edit control to the clipboard.
_EditPaste
Paste the text from the clipboard into the current edit control.
_EditSelectAll
Select all of the text in the current edit control.
_EditUndo
Undo the last change to the current edit control.
_EditDelete
Clear all of the text from the current edit control.

Help Actions

The following actions work with the help system
_HelpContents
Display the Contents page of the help file for the application
_HelpTopicSearch
Display the Topic Search page of the help file for the application
_HelpOnHelp
Display the Help for the Help system itself
_HelpContextAction
Display the help page for the current component based upon the components HelpContext property

File dialogs

The following actions display various file operation dialogs

_WindowClose
Close the current window
_FileExit
Exit the current application
_FileOpen
display the dialog for selecting a file to open
_FileSaveAs
display the dialog for saving a file to a new name
_FilePrintSetup
display the dialog for setting up the current printer
_FilePageSetup
display the dialog for setting various page printing options

zMemo actions

There are many pre-defined actions for working interactively with a memo component in zApp. Most of these are demonstrated in the Editor demo app.

_MemoBold
Bold the currently selected text in a Memo component
_MemoItalic
Emphasize the currently selected text in a Memo component
_MemoUnderline
Underline the currently selected text in a Memo component
_MemoStrikeOut
Strikeout the currently selected text in a Memo component
_MemoFont
set the font of the text in a memo component
_MemoFontColor
set the color of the text in a memo component
_MemoFontBackcolor
set the background color of text in a memo component
_MemoAlignLeft
Align the paragraph in a Memo component to the left
_MemoAlignRight
Align the paragraph in a Memo component to the right
_MemoAlignCenter
Align the paragraph in a Memo component to the center
_MemoAlignJustify
Justify a paragraph in a memo component between both left and right margins
_MemoPasteSpecial
display the dialog for pasting special items into a Memo component
_MemoFind
display the dialog for searching for text in a Memo component
_MemoFindNext
perform the Find Next function in a Memo component
_MemoReplace
display the dialog for replacing text in a Memo component
_MemoCharCase
change the case of the selected text in a Memo component
_MemoUndo
Undo a complex editing operation in a Memo component
_MemoNew
create a new, blank document in a Memo component
_MemoSave
save the current memo component
_MemoSaveAs
display the SaveAs dialog to save a memo component
_MemoOpen
display the Open File dialog to load a file into a memo component
_MemoExport
display the Export dialog to export a Memo component to various formats.
_MemoPrintPreview
display the Print Preview dialog for the current Memo component
_MemoPrint
Print a memo component to the printer, displaying the Print dialog
_MemoQuickPrint
Print a memo component immediately without displaying a dialog
_MemoPageSetup
display the Page Setup dialog for a memo component
_MemoInsertHyperlink
display a dialog for inserting a hyperlink into a memo component
_MemoInsertFile
display a dialog to insert a file into a memo component
_MemoInsertPicture
display a dialog to insert a picture into a memo component
_MemoInsertHRule
insert a horizontal rule into a memo component
_MemoInsertSymbol
display a dialog to insert a special symbol into a memo component
_MemoBulletList
Make a bullet list in a Memo component
_MemoList
Make a list in a memo component
_MemoNumberList
Make a numbered list in a memo component
_MemoShowSpecial
cause special characters in a memo component to be shown
_MemoInsertPagebreak
insert a page break into a memo component
_MemoRemovePagebreak
remove a page break from a memo component
_MemoProperties
display the properties dialog for a memo component
_MemoBackground
set the background color for a memo component
_MemoColor
set the text color for a memo component
_MemoFillColor
set the fill color for a memo component
_MemoParagraph
display the paragraph options dialog for a memo component
_MemoBorder
display the border options dialog for a paragraph in a memo component
_MemoWordWrap
toggle word wrapping in a memo component
_MemoIndent
indent a paragraph in a memo component
_MemoUnindent
Unindent a paragraph in a memo component
_MemoParagraphColor
set the color of a paragraph in a memo component
_MemoSinglespce
set the paragraph in a memo component to single spacing
_MemoDoublespace
set the paragraph in a memo component to double spacing

Table actions

Within a zMemo component, there are several actions for interactively creating and editing tables.

_MemoInsertTable
insert a table into a memo component
_TableInsertBelow
insert a new row below the current cell in a table
_TableInsertAbove
insert a new row above the current cell in a table
_TableInsertLeft
insert a new column to the left of the current cell in a table
_TableInsertRight
insert a new column to the right of the current cell in a table
_TableDeleteRow
delete the current row of a table
_TableDeleteCol
delete the current column of a table
_TableDelete
delete a table
_TableMergeCells
merge the selected cells in a table
_TableSplitCells
split the current cell of a table
_TableSelect
select the entire table
_TableSelectRow
select the entire row of a table
_TableSelectCol
select the current column of a table
_TableSelectCell
select a cell in the table
_TableCellVAlignTop
set the vertical alignment of a cell to the top
_TableCellVAlignMiddle
set the vertical alignment of a cell to the middle
_TableCellVAlignBottom
set the vertical alignment of a cell to the bottom
_TableCellVAlignDefault
set the vertical alignment of a cell to the default
_TableCellLeftBorder
set the left border of a cell in a table
_TableCellRightBorder
set the right border of a cell in a table
_TableCellTopBorder
set the top border of a cell in a table
_TableCellBottomBorder
set the bottom border of a cell in a table
_TableCellAllBorders
set all borders of a cell in a table
_TableCellNoBorders
turn off all borders of a cell in a table
_TableProperties
display the Properties dialog for a table
_TableGrid
toggle the table display grid

Spell Checking

zApp contains a built-in spell checking system. The _Edit... actions work with most any edit control. The _Memo... actions provide enhanced functionality using the zMemo component.
_EditSpellCheck
Check the spelling of the currently selected edit control
_EditAutoSpell
Control the auto-spellcheck and auto-correction options in a Memo component
_MemoSpellCheck
Enhanced spellcheck dialog for a memo component
_MemoThesaurus
display the Thesaurus dialog for a memo component
_SpellOptions
Display the configuration dialog for the spellchecker

Database Actions

The following actions work on a zDataSource object.

_DBFirst
move to the first record in a dataset
_DBPrev
move to the previous record in a dataset
_DBNext
move to the next record in a dataset
_DBLast
move to the last record in a dataset
_DBInsert
insert a new record into the dataset
_DBDelete
delete the current record in a dataset
_DBEdit
put the current record into edit mode
_DBPost
post any changes made to the current record to the dataset
_DBCancel
cancel any changes made to the current record while in edit mode
_DBRefresh
refresh the dataset and redisplay it
_DBConnect
display a dialog to connect to a database

Other Actions

_ThemeSelect
Display the dialog for changing the current application Theme.
_Submit
Submit the current zPanel as an HTML web form.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net