1
OZ Application Designer User's Guide 2
3
OZ Application Designer User's Guide 4
5
OZ Application Designer User's Guide Application 'OZ Application Designer', 'OZ Application Designer' 'OZ Application Designer', OZC, OZS, OZF.. OZ Application Designer OZ Application Designer. OZ Application Designer,,, OZ Application Designer. OZ Application Designer Document, Board OZ Application Designer. 6
OZ Application Designer,, OZC, EventHook.,,,. OZ Application Designer. OZ Function Editor OZF, OZ Function Editor, OZF. OZ Style Editor OZS, OZ Style Editor, OZS. OZ Application Designer. 7
OZ Application Designer User's Guide OZ Application Designer. Manual OZ Application Getting Started OZ Application Designer User's Guide Description OZ Application OZ Application Designer. 'OZ Application Designer' 'OZ Application Designer', OZC, OZS, OZF. OZ Application Viewer User's Guide OZ Query Designer User's Guide OZ Enterprise Server Administrator's Guide (). OZ Query Designer. OZ Enterprise Server OZ Enterprise Server,,, OZ Enterprise Server. 8
9
OZ Application Designer User's Guide OZ Application Designer. OS Windows NT 4.0, Windows XP, Windows 2000, Windows 2003 JRE 1.3 Windows 95/98/ME Unicode. CPU Pentium 500MHz Main Memory 256MB (512MB ) HDD 100MB XGA (1024 x 768 ) 10
OZ Application Designer. Folder File Name Description %OZA_HOME% Console.txt OZ Application Designer OZApplicationDesigner.exe OZ Application Designer OZApplicationFunctionEditor.exe Function Edtior OZApplicationStyleEditor.ex e Style Editor OZAViewer.exe OZ Application Viewer OZAViewerDll.dll OZ Application Viewer OZAViewerOCX.ocx OZ Application Viewer ActiveX United Control ozatransparent.dll Board %OZA_HOME% ozimgdecoder.dll bin ozexcel.dll Excel Export OZLabelPtnWiz_vc71.dll OZOptWiz_vc71.dll OZ Report Viewer OZRepositoryManager.ini OZUSLClientDes128.dll OZUSLClientSession.dll USL ScriptDebugger.dll unicows.dll Microsoft Layer of Unicode user.cif %OZA_HOME% OZ Application Designer ad.dll bin/res ) ad_ko_kr.dll OZ Application Designer ad_error_msg.xml ) ad_error_msg_ko_kr.xml af.dll Function Editor ) af_ko_kr.dll Function Editor af_error_msg.xml ) af_error_msg_ko_kr.xml 11
OZ Application Designer User's Guide %OZA_HOME% config %OZA_HOME% doc %OZA_HOME% images %OZA_HOME% lib %OZA_HOME% license as.dll Style Editor ) as_ko_kr.dll Style Editor as_error_msg.xml ) as_error_msg_ko_kr.xml OZ Application Viewer av_error_msg.xml ) av_error_msg_ko_kr.xml chartres.xml label_pattern.xml Label ) label_pattern_ko_kr.xml MultiLanguageList.xml rm.dll ) rm_ko_kr.dll rm_error_msg.xml ) rm_error_msg_ko_kr.xml sd.dll ex)sd_ko_kr.dll server_error_msg.xml ) server_error_msg_ko_kr.xml viewer_parameter.xml OZ Report Viewer ) viewer_parameter_ko_kr.xml launch.cfg OZ Application Designer CFFunc_3.5.xml codehelp_3.5.xml OZAPPAPI.chm OZ Application Designer API OZ Application Designer crimson.jar XML dtdparser120.jar DTD jcert.jar jnet.jar jsee.jar J2EE (HTTPS/SSL ) JRE 1.3.X log4j.jar Log ozsfw35.jar parser.jar xerces.jar XML ozlicense.xml 12
%OZA_HOME% UniversalDriver classes12.jar classes12.zip db2java.jar db2java.zip db2jcc.jar db2jcc_license_cisuz.jar db2jcc_license_cu.jar ifxjdbc.jar ijava.jar jconn2.jar jkjdbc.jar jt400.jar msbase.jar mssqlserver.jar msutil.jar mysql.jar sapjco.jar sapjcorfc.dll unisqljdbc10.jar unsqljdbc205.zip Oracle 8i, 9i JDBC Driver IBM DB2 JDBC IBM DB2 JDBC Type 8 (DB2 8 ) Infomix JDBC Oracle 7i JDBC Sybase ASE JDBC MSSQL 97 JDBC IBM JT400 JDBC MSSQL 2000 JDBC Mysql JDBC SAP UniSQL JDBC : 'UniversalDriver' JDBC, RDB JDBC. RDB JDBC. 13
OZ Application Designer User's Guide OZ Application Designer. [] -> [OZ XStudio] -> [OZ Application Designer 3.5] 'OZ Application Designer 3.5'. OZ Application Designer. 14
15
OZ Application Designer User's Guide,,, OZ Application Designer. OZ Application Designer,. / Board 16
Window / Board Description OZ Application Designer (pull down),,,,,,,. OZ Application Designer,,,,., ' ',,, ' ', Button, Label, Table ' ', ' ',, ' '. OZ Application Designer, ODI, OZF, OZS. Document, Board, Board,, - ' ', ODI,,, ' ', Invisibles, OZF, OZS, EventHook 'Invisibles ', ''.. '', ''. Board. Board Board,. Document, Board,.. 17
OZ Application Designer User's Guide OZ Application Designer (pull down),,,,,,,. (File) [File]. Create New Project (Ctrl+N). Board. Open Project (Ctrl+O). Close Project. Save Project (Ctrl+S). OZ Application Designer 18
oza. Save Project As. Add New Board Board. Remove Board Board. Board Board. Insert New ODI ODI. ODI. Insert New Style OZ Style (OZS). OZS Invisibles. Insert New Function OZ Function (OZF). OZF Invisibles. Preview (Ctrl+P).. : SDM "SDM " SDM. - <Shift> <Ctrl + Shift> [Preview] "SDM ". 19
OZ Application Designer User's Guide - <Shift> ODI SDM. SDM ODI SDM. - <Ctrl + Shift> ODI SDM. : SDM - "SDM " ODI. - SDM SDM. - SDM ODI FetchUnit DM_PER_DATAMODULE. - SDM SDM SDM ODI. "A.odi B.odi C.odi", SDM "C.sdm B.sdm A.sdm". Start Debug (Ctrl+F5). [Start Debug], ". OZ Application Designer ". Recent Project (OZA). OZA 4. Exit OZ Application Designer. 20
(Edit) [Edit]. Undo (Ctrl+Z). Board [Undo] Board, [Undo]. 256. Redo (Ctrl+Y),. Cut (Ctrl+X) Board. Board Board Board, ' '. Copy (Ctrl+C). Board 21
OZ Application Designer User's Guide Board Board. Paste (Ctrl+V). Delete (Delete). [Undo]. Copy Property. Paste Property.,. Select All (Ctrl+A) Board Board,. Find (Ctrl+F). Board, ODI, OZS, ODI, OZS ' ', ' '. - 22
'Find What', 'Find Form'. [Find Next]... 'Find From',. (,)., "Type" "Name" "Text" 'Button' [Find Next]. 23
OZ Application Designer User's Guide. Option Find From Script Match Case Match Whole Word Search Up Show All Include All Groups Description. /...., ODI, OZS.. Set Search Group Control Invisibles Controls, Container Controls, Complex Controls, Drawings Invisibles DataAccesses ODI Styles OZS - [Find Next].. Option Match Whole World Only Match Case Description.. 24
Direction,. Relpace (Ctrl+H). Board, ODI, OZS ' ', ' '. - 'Find What' 'Replace To', 'Find Form'. [Find Next], [Replace] [Replace All]. - [Find Next], [Replace] [Replace All]. Go To (Ctrl+G). 25
OZ Application Designer User's Guide. [Ok]. Export Script. Import Script. Preview Script. [Preview Script] ' ', ' ',,. ' ' [File] [Edit]. - File 26
Menu Save Script Export Script Import Script Exit Description.... - Edit Menu Undo (Ctrl+Z) Redo (Ctrl+Y) Cut (Ctrl+X) Copy (Ctrl+C) Paste (Ctrl+V) Delete (Del) Select All (Ctrl+A) Description...... 27
OZ Application Designer User's Guide Find (Ctrl+F) Replace (Ctrl+H) Go to.. [Go to Line] [Go to Event]. [Go to] [Go to Line].. [Ok]. [Go to] [Go to Event] ' '. 'Board1' [Go to Event]. 28
' '., 'Board1' Board, Board 'Button1', 'Button2' Button 'TextBox1', 'TextBox2' TextBox [Go to Event] ' '. 'Button1' 'OnClick', 'Button1' ' '. 29
OZ Application Designer User's Guide 'OnClick' ( ),. 'OnClick' [OK] 'Button1' 'OnClick'. (Insert) [Insert]. Controls Controls Button 25. 30
Controls. Component Button CheckBox RadioButton ReportButton ComboBox ListBox CheckListBox TreeView ListView TextBox NumericUpDown MaskTextBox RichTextBox Label PictureBox ProgressBar HTML View ActiveX Control Custom Control Description,,, OZ Report Designer Export, [ ] DropDown TextBox Up/Down, Up/Down Bar ActiveX Custom 31
OZ Application Designer User's Guide Report Control DateTimePicker MonthCalendar Splitter Horizontal Navigator Vertical Navigator OZ Report Designer Table Table Row, /// Button TextBox Table Table Row, /// Button / VScrollBar Invisibles Invisibles Timer 5. Invisibles. Component Timer Context Menu Main Menu Tooltip Image List Description Context Menu, MainMenu, TreeView 32
Container Controls Container Controls Panel 3. Container Controls. Panel GroupBox TabControl BoardView Description, TabPanel, Board Complex Controls Complex Controls Table 4. Complex Controls. Table Description 33
OZ Application Designer User's Guide Grid CrossTab Chart 2 3 Drawings Drawings Line 4. Drawings. Line ArrowLine Ellipse Rectangle Description,, (View) [View],,,. 34
Component Explorer Board, Controls, Container Controls, Complex Controls, Drawings,, - OZ Application Designer. Invisible Explorer Invisibles OZFunction, OZStyle, EventHook Invisibles OZ Application Designer. DataInfo Explorer ODI,,, OZ Application Designer. Repository Explorer OZ Application Designer. Property Grid OZ Application Designer. Event Grid OZ Application Designer. 35
OZ Application Designer User's Guide Script Editor OZ Application Designer. (Layout) [Layout]. Style [Style] 4. [Style]. Menu Bold Italic Underline StrikeOut Description.... Align [Align] 4 36
, 2. [Align]. Menu Lefts Rights Tops Bottoms Description.... Make Size Equal [Make Size Equal] 2, 2. [Make Size Equal]. Menu Width Description. 37
OZ Application Designer User's Guide Height. [Distribute Spacing Evenly] [Distribute Spacing Evenly] 2, 3. [Distribute Spacing Evenly]. Menu Horizontal Vertical Description.. Order [Order] 4. [Order]. Menu Bring to Front Description,. 38
Send to Back Bring Up Send Down,., '1'., '1'. (Tools) [Tools]. Default Value Editor ' '. Board [Default Value Editor]. 39
OZ Application Designer User's Guide ' '., Board, Button, Table, TextBox [Default Value Editor] ' '. 40
[Ok].. [Ok], [Apply to create new file]. OZ Application Designer [Restore] [Ok] [Apply to create new file]. Options,,,, OZ Application Designer,. 41
OZ Application Designer User's Guide [Ok] OZ Application Designer [Restore]. - Option General,,. Show Tooltip(Component) OZ Application Designer Board. Apply style in design time OZ Style OZS 42
. Docking Help OZ Application Designer. When select the component, the ScriptEditor synchronize,. Layout OZ Application Designer. Save layout when exit OZ Application Designer,,,,,, OZ Application Designer. OZ Application Designer [Reset window layout] [Save current layout]. International Setting. 43
OZ Application Designer User's Guide Save. Encrypt the file while saving. Verify form when saving.. Document ODI ODIKey, DataSet, Field, ValueField ODI Document Style OZS 44
Document ContextMenu, MainMenu, ToolTip, ImageList ContextMenu, MainMenu, ToolTip, ImageList Document Navigator LinkComponentName Document - Editor Environment : Script Editor / Preview Script / Calculated Field Editor,,,,. : OZ Application Designer... : [Edit] [Preview Script],. [Edit]. : [Insert New CalculatedField]... 45
OZ Application Designer User's Guide Font and Color : Script Editor / Preview Script / Calculated Field Editor,,,,,. External Tools [External Tools] 2. [External Tools]. Menu Style Editor Description OZS OZ Style Editor. OZS OZ Style Editor.. Function Editor OZF OZ Function Editor. OZF OZ Function Editor.. 46
(Help) [Help]. Help OZ Application Designer,, General Script,.. Drag & Drop. - (Script Help ) Drag & Drop. 47
OZ Application Designer User's Guide -.. 48
[Index].. [Search]. [List Topics] [Enter]. [Display]. 49
OZ Application Designer User's Guide About OZ Application OZ Application Designer. 50
OZ Application Designer,,,,,. (Standard),. Icon Description,,,,,, OZ Application Designer (Format),,,,. Icon Description 51
OZ Application Designer User's Guide,,,,,,,,, (Component) Controls, Invisibles, Container Controls, Complex Controls, Drawings. Icon Description Button, CheckBox, RadioButton, ReportButton ComboBox, ListBox, CheckListBox TreeView, ListView TextBox, NumericUpDown, MaskTextBox, RichText Box Label, Picture, ProgressBar HTMLView, ActiveXControl, CustomControl, Report Control DateTimePicker, MonthCalendar Splitter, HorizontalNavigator, VerticalNavigator Timer, ContextMenu, MainMenu, Tooltip, ImageList Panel, GroupBox, TabControl, BoardView Table, Grid, CrossTab, Chart 52
Line, ArrowLine, Ellipse, Rectangle (Layout),,,. Icon Description,,,,,,,, (View),. Icon Description Invisibles 53
OZ Application Designer User's Guide, ODI, Invisibles,,,, Invisibles,.,, -.. Board, Board Button, CheckBox, RadioButton, TextBox, Label, ComboBox. Button1, CheckBox1, RadioButton1, TextBox1, Label1, ComboBox1, Button1 TextBox1. 54
ODI,,,. ODI Sample.odi. ODI "Sample", "Customer", "customer_id", "lname",..., "birthdate", "MemberCard", "Gender". ODI.. Delete ODI Edit ODI Save As SDM ODI. ODI. [Edit ODI] ODI. ODI SDM. 55
OZ Application Designer User's Guide Show Property Refresh Explorer ODI., ODI. Invisibles Invisibles OZF, OZS, EventHook. Invisibles ContextMenu1, MainMenu1, ToolTip1, ImageList1, Timer1, OZ Style Sample.ozs, OZ Function Main.ozf. EventHook Document,. EventHook.. 56
,., Invisibles. ( ). 57
OZ Application Designer User's Guide, Invisibles OnClick. ( ). 58
,, OZ Application Designer. Board Drag & Drop. ( ) [Tools] -> [Options] [Reset Window Layout]. 59
OZ Application Designer User's Guide Board Board Board, Board,. Document, Board,... 60
61
OZ Application Designer User's Guide Document, Board OZ Application Designer. Document Document, ODI, OZF, OZS OZ Application Designer, Document. OZ Application Designer Timer, Context Menu, Main Menu, Tooptip, Image List Invisibles Board Document. Board Board User Interface, Button, TextBox, Table OZ Application Designer OZC OZC Document. OZ Application Designer Controls, Container Controls, Complex Controls, Drawings Board. 62
ODI, OZC, OZF, OZS. ODI, OZC, OZF, OZS.. OZ Application Designer OZ Application Designer Repository. Repository OZ Application Designer., OZ Application Designer, C:\Program Files\FORCS\OZ Product\ApplicationDesigner. C:\Program Files\FORCS\OZ Product\Repository. 'C:\Repository'.. 63
OZ Application Designer User's Guide [Set Working Folder]. 64
Board Board, Board. Board Board Board [Set As Startup Board] Board Board. Document Board Document StartupBoard Board Board. 65
OZ Application Designer User's Guide Document Board. Document Board Invisibles Document. Board [File] [Add New Board] Document Board. Board Board. 66
Invisibles [Insert] [Invisibles] Document Invisibles. 'Invisibles ' 'Invisibles' Invisibles. 67
OZ Application Designer User's Guide Board Controls, Container Controls, Complex Controls, Drawings Board. [Insert] Board Drag & Drop. TextBox. TextBox TextBox Board OZ Application Designer Board [Insert] -> [Controls] -> [TextBox] TextBox ( ) TextBox. Board Drag & Drop. 68
' ' 'Board1' 'TextBox1'. 69
OZ Application Designer User's Guide,.. 'OZ Application Designer',,.. 'FrameLineSize'. OZURL HTTP. : OZURL OZURL, OZ Application. 70
ozp:/// ozp:/// ex) ozp:///main.jpg ex) ozp://images/main.jpg file:/// ex) file://c:/title.gif. 'BackgroundImageAlign'. ( ). Alignment, 'TextAlign', 'CheckAlign'. 71
OZ Application Designer User's Guide,. - Label TextAlign 'MiddleLeft' () TextAlign = TopLeft () TextAlign = MiddleLeft Anchor,,,, 'Anchor'. Top, Bottom, Left, Right 4,. 'Anchor' Anchor. - Panel Button Anchor 'Top, Left' (Panel ) (Panel ) 72
- Panel Button Anchor 'Bottom, Right' (Panel ) (Panel ) Color,,, 'TextColor', 'BackColor', 'LineColor'. [Define Custom Colors]. [Add to Custom Colors]. Date MonthCalendar, DateTimePicker 'TodayDate', 'MinDate', 'MaxDate'. 73
OZ Application Designer User's Guide. Dock Docking, 'Dock'. Docking [NONE], Docking,,,,. File 'BackgroundImage', 'ImageListUrl'. [OK]. Font,,.,, [OK]. 74
Pattern, 'Pattern'. 'Category' [OK] 'Pattern'. Shortcut, 'Shortcut'. - ' '. 'Ctrl + C' [Ctrl]. 'None' 'Ctrl + ', [C] 'Ctrl + C'. 75
OZ Application Designer User's Guide [OK] 'Ctrl + C'. - ' ' [Delete]. Text. 'Multiline' 'True'. TextDirection, 'TextDirection'. (LeftToRight, RightToLeft) 76
(TopToBottom, BottomToTop). 'LeftToRight, TopToBottom', [OK]. 'RightToLeft, BottomToTop'. TextStretch, 'TextStretch'.. No Option Description Horizontal CountClockWise Vertical Vertical2 1Byte ClockWise Horizontal2 2Byte 77
OZ Application Designer User's Guide,,,,,. Board. Board, - Board Board 'Ctrl' 'Shift'. 78
- 'Ctrl' 'Shift'. Board Board. Drag & Drop. 'SnapToGrid' 'True', 'GridSize'. ( ). 'SnapToGrid' 'True', 'GridSize'. 79
OZ Application Designer User's Guide Drag. 'SnapToGrid' 'True', 'GridSize'. 'Shift'. 'SnapToGrid' 'True', 'GridSize'. Key Description Shift + Shift + Shift + Shift +.... 'Ctrl + C'. 'Ctrl + X'. 'Ctrl + V'. 80
'Delete'. 'Ctrl + Z'. 'Ctrl + Y'. [Layout] [Align],,,. - ( ). 'Button1'. ( ) ( ) - ( ). 'Button1'. 81
OZ Application Designer User's Guide ( ) ( ) - ( ). 'Button1'. ( ) ( ) - ( ). 'Button1'. ( ) ( ) 82
. - ( ). 'Button1'. ( ) ( ) - ( ). 'Button1'. ( ) ( ) [Layout] [Distribute Spacing Evenly],. - ( ).. 83
OZ Application Designer User's Guide ( ) ( ) - ( ). ( ) ( ) 84
.,. 'Board1' 'Button1', 'Button1' 'OnClick'.. - (Button1) 'Board1' 'Button1'. - (OnClick) 'Button1' 'OnClick'. 85
OZ Application Designer User's Guide Invisibles. - (Button1) 'Board1' 'Button1'. - (OnClick) 'Button1' 'OnClick' 86
( ) 'Button1' 'OnClick'.. Button... 87
OZ Application Designer User's Guide - '//', '//'. - '/*' '*/'. 'Ctrl + K + C', 'Ctrl + K + U'. [Ctrl +K + C] [Ctrl +K + U] 88
OZ Application Designer,,,,. 'Ctrl + Space'. OZ Application Designer,,,.,,,, 'Tab'... Icon Description 89
OZ Application Designer User's Guide Document Board, '.',. '.'. 90
.. Menu Undo(Ctrl+Z) Redo(Ctrl+Y) Cut(Ctrl+X) Copy(Ctrl+C) Paste(Ctrl+V) Delete(Delete) Select All(Ctrl+A) Description....... 91
OZ Application Designer User's Guide. OZ Application,,., "OnClick". BreakPoint, OZ Application BreakPoint.,,, OZ Application,. 92
OZ Application Break. OZ Application. OZ Application, Out. 93
OZ Application Designer User's Guide OZA [File] [Start Debug] (. ). Auto Watch Out Icon Menu Description Continue,. 94
Stop Debugging Step Into Step Over Step Out Auto Watch Out.... "Step Over".... :.. Auto. Auto. Watch. Watch. Out. Out Trace. Trace, Out. - Watch 95
OZ Application Designer User's Guide.,., OZ Application Designer. Document._SetGlobal("", ); //Document Document. _SetGlobal("", ); var myvar = _GetGlobal("");,., 'Document' 'GlobalFunction'. 96
function (Argument1, Argument2,... ) { //Script...... // return ; }. // (Argument1, Argument2,... ); // var result = (Argument1, Argument2,... ); Example. 97
OZ Application Designer User's Guide [Change Backcolor] Label. RadioButton. [Change Backcolor].. 98
Step 1, Board Label, RadioButton, Button,. Step 2 Label., RGB. 'Document' 'GlobalFunction'. function changebackcolor(compname) { var Comp = _GetCurrentBoard().GetChild(CompName); Comp.BackColor = _GetGlobal("Color"); } 'RadioButton1', RGB '255, 0, 0'. 'RadioButton1' 'OnClick'. _SetGlobal("Color", "255, 0, 0"); 'RadioButton1' 'RadioButton2', ''RadioButton3', 'RadioButton4' 'OnClick',, RGB. 99
OZ Application Designer User's Guide RadioButton2 OnClick _SetGlobal("Color", "0, 255, 0"); RadioButton3 OnClick _SetGlobal("Color", "0, 0, 255"); RadioButton4 OnClick _SetGlobal("Color", "0, 0, 0"); 'Button1', Label. 'Button1' 'OnClick'. changebackcolor("label1"); Step 3 [File] [Preview] (. ) 100
101
OZ Application Designer User's Guide OZ Application Designer,, OZC, EventHook. Button,. Property Button. Property Text FlatStyle Description Button Button Standard : 3 Flat : Example - 3 [OK]. - Board Button. Property Value Property Value Text OK FlatStyle Standard - 102
Label. Property Label. Property FrameLineSize WordWrap InternalMargin Description,,,,,, Example - Label. - Board Label. Property Value Property Value Text Hello World FrameLineSiz e 0, 0, 0, 0 WordWrap True InternalMargi n 4, 4, 4, 4 103
OZ Application Designer User's Guide - TextBox. Property TextBox. Property BorderStyle ScrollBars Multiline Description Fixed3D : 3 FixedSingle : None : Horizontal :, 'Multiline' 'True' 'WordWrap' 'False'. Vertical : 'Multiline' 'True' 'WordWrap' 'False'. Both :,, 'Multiline' 'True' 'WordWrap' 'False'. None : 104
PasswordChar WordWrap, '*' TextBox 'AAA' '***' Example -, TextBox. - Board TextBox. Property Value Property Value ScrollBars Both Multiline True WordWrap False - - - CheckBox. Property CheckBox. 105
OZ Application Designer User's Guide Property Checked CheckState Appearance ThreeState Description True :, CheckState 'Checked' False :, CheckState 'Unchecked' CheckBox Checked : Appearance 'Normal', 'Button', Checked 'True' Unchecked : Appearance 'Normal', 'Button', Checked 'False' Indeterminate : Appearance 'Normal', 'Button' CheckBox Normal : Button : CheckState Check, Uncheck, Indeterminate Example - CheckBox Checked, Check, Uncheck CheckBox CheckBox Indeterminate, Check, Uncheck, Indeterminate CheckBox. - Board CheckBox. Property Value Property Value Checked True CheckState Checked ThreeState False - - 106
Board CheckBox. Property Value Property Value Checked True CheckState Indeterminate ThreeState True - - - RadioButton. Property RadioButton. Property Description Checked Example - Board RadioButton 2 RadioButton. - Board RadioButton. 107
OZ Application Designer User's Guide - ComboBox,. ComboBox, ComboBoxItem,. Property ComboBox. Property DropDownStyle AutoSelect SelectedIndex SelectedText Description DropDown DropDown : TextBox DropDownList : ComboBox. DropDownStyle 'DropDown'. 0. DropDownStyle DropDownList Method ComboBox. 108
- AddItem ComboBox,. Format object AddItem(string ItemText); ItemText : Example var objitem = ComboBox1.AddItem("a new item label"); - InsertItem ComboBox,. Format object InsertItem(integer ItemIndex, string ItemText); ItemIndex : ItemText : Example var objitem = ComboBox1.InsertItem(5, "a new item label"); - RemoveItem. Format void RemoveItem(integer ItemIndex); ItemIndex : Example ComboBox1.RemoveItem(5); - GetItemObject ComboBox. Format object GetItemObject(integer ItemIndex); ItemIndex : 109
OZ Application Designer User's Guide Example var objitem = ComboBox1.GetItemObject(5); objitem.itemvalue = "CODE0123"; Example - ComboBox. - Board ComboBox. Property Value Property Value DropDownSty le DropDown AutoSelect True ComboBox(Name=ComboBox1) 'OnInitialize'. var objitem; objitem = ComboBox1.AddItem("Golden"); objitem.itemvalue = 1; objitem = ComboBox1.AddItem("Silver"); objitem.itemvalue = 2; objitem = ComboBox1.AddItem("Bronze"); objitem.itemvalue = 3; ComboBox1.SelectedIndex = 0; Button 'Text' 'Get ComboBoxItem' Button 'OnClick'. var objitem = ComboBox1.GetItemObject(ComboBox1.SelectedIndex); _MessageBox(objItem.Text + " " + objitem.itemvalue); - ComboBox [Get ComboBoxItem] (Text) (ItemValue). 110
ListBox. ListBox, ListBoxItem,. Property ListBox. Property ItemSelectionMode FocusedIndex FocusedText Description One : MultiSimple : MultiExtended : Shift, Ctrl None: Method ListBox. - AddItem ListBox,. 111
OZ Application Designer User's Guide Format object AddItem(string ItemText); ItemText : Example var objitem = ListBox1.AddItem("a new item label"); - InsertItem ListBox,. Format object InsertItem(integer ItemIndex, string ItemText); ItemIndex : ItemText : Example var objitem = ListBox1.InsertItem(5, "a new item label"); - RemoveItem. Format void RemoveItem(integer ItemIndex); ItemIndex : Example ListBox1.RemoveItem(5); - GetItemObject ListBox. Format object GetItemObject(integer ItemIndex); ItemIndex : Example var objitem = ListBox1.GetItemObject(5); objitem.itemvalue = "CODE0123"; 112
- GetSelectedIndexes ListBox. Format void GetSelectedIndexes(Array SelectedIndexArray); SelectedIndexArray : Example var SelectedIndexs = new Array(); ListBox1.GetSelectedIndexes(SelectedIndexs); Example - ListBox. - Board ListBox. Property Value Property Value ItemSelectio nmode MultiExtended - - ListBox(Name=ListBox1) 'OnInitialize'. ListBox1.AddItem("Golden"); ListBox1.AddItem("Silver"); ListBox1.AddItem("Bronze"); ListBox1.AddItem("Normal"); Button 'Text' 'Get SelectedItem' Button 'OnClick'. var SelectedIndexs = new Array(); ListBox1.GetSelectedIndexes(SelectedIndexs); for(i=0;i<selectedindexs.length;i++) { _MessageBox(ListBox1.GetItemObject(SelectedIndexs[i]).Text) ; } 113
OZ Application Designer User's Guide - ListBox Shift, Ctrl [Get SelectedItem] (Text). CheckListBox. CheckListBox, CheckListBoxItem,. Property CheckListBox. Property ItemSelectionMode FocusedIndex FocusedText Description One : MultiSimple : MultiExtended : Shift, Ctrl None: 114
Method CheckListBox. - AddItem CheckListBox,. Format object AddItem(string ItemText); ItemText : Example var objitem = CheckListBox1.AddItem("a new item label"); - InsertItem CheckListBox,. Format object InsertItem(integer ItemIndex, string ItemText); ItemIndex : ItemText : Example var objitem = CheckListBox1.InsertItem(5, "a new item label"); - GetItemObject CheckListBox. Format object GetItemObject(integer ItemIndex); ItemIndex : Example var objitem = CheckListBox1.GetItemObject(5); objitem.itemvalue = "CODE0123"; - AddCheck Checked. 115
OZ Application Designer User's Guide Format void AddCheck(integer ItemIndex); ItemIndex : Example CheckListBox1.AddCheck(5); - RemoveCheck Unchecked. Format void RemoveCheck(integer ItemIndex); ItemIndex : Example CheckListBox1.RemoveCheck(5); - GetCheckedIndexes CheckListBox Checked. Format void GetCheckedIndexes(Array CheckedIndexArray); CheckedIndexArray : Checked Example var CheckedIndexs = new Array(); CheckListBox1.GetCheckedIndexes(CheckedIndexs); Example - CheckListBox. - Board CheckListBox(Name=CheckListBox1), CheckListBox 'OnInitialize'. 116
CheckListBox1.AddItem("Golden"); CheckListBox1.AddItem("Silver"); CheckListBox1.AddItem("Bronze"); CheckListBox1.AddItem("Normal"); Button 'Text' 'Get CheckedItem' Button 'OnClick'. var CheckedIndexs = new Array(); CheckListBox1.GetCheckedIndexes(CheckedIndexs); for(i=0;i<checkedindexs.length;i++) { _MessageBox(CheckListBox1.GetItemObject(CheckedIndexs[i]).T ext); } - CheckListBox [Get CheckedItem] Checked (Text). PictureBox BMP, JPG, GIF. Property PictureBox. 117
OZ Application Designer User's Guide Property Image ImageAlign SizeToImage Description PictureBox None : Fit : PictureBox Tile : TopLeft/TopCenter/TopRight : // MiddleLeft/MiddleCenter/MiddleRight : / / BottomLeft/BottomCenter/BottomRight : // PictureBox Example PictureBox. - PictureBox 'Image1.gif'. - Board PictureBox. Property Value Property Value Image ozp:///image1.gif ImageAlign None - 118
NumericUpDown TextBox Up/Down, TextBox Up/Down. Property NumericUpDown. Property DecimalPlaces Hexadecimal Increment MaxVal MinVal ThousandsSeparator Value Description 16 Up/Down Example NumericUpDown. 119
OZ Application Designer User's Guide -,,, 5. - Board NumericUpDown. Property Value Property Value Increment 1000 MaxVal 10000000 MinVal 10000 ThousandsSe parator True Value 50000 - - - MaskTextBox. Property MaskTextBox. 120
Property CharacterCasing Mask Literal Default PromptChar Description Normal: Upper: Lower: Method MaskTextBox. - SetEditMask MaskTextBox,,. Format void SetEditMask(string Mask, string Literal, string Default); Mask :. Mask Description #, Space, +, - L?, Space A a & H X,,, Space, Space > ( ) < ( ) Literal : PromptChar Default : 121
OZ Application Designer User's Guide Example MaskTextBox1.SetEditMask("####/##/##", " / / ", "2005/01/01"); MaskTextBox1.SetEditMask(">>.##:##", ". : ", "AM.09:00"); MaskTextBox1.SetEditMask("######-#######", " - ", "800101-1234567") MaskTextBox1.SetEditMask("###)####-####", " ) - ", "010)222-3333"); Example MaskTextBox. - '--'. - Board MaskTextBox. Property Value Property Value Mask >>>-####-### Literal - - Default ABC-0504-001 PromptChar _ - 122
RichTextBox. RichTextBox,. Property RichTextBox. Property RichEditText Description,, GetSel() GetSelText(). Method RichTextBox. - GetDefCharFormat RichTextBox. Format object GetDefCharFormat(); - GetSelectCharFormat RichTextBox. Format object GetSelectCharFormat([integer StartIndex, integer EndIndex]); StartIndex : EndIndex : - SetDefCharFormat RichTextBox. Format void SetDefCharFormat(object RichCharFormat); 123
OZ Application Designer User's Guide - SetSelectCharFormat. Format void SetSelectCharFormat(object RichCharFormat, [integer StartIndex, integer EndIndex]); StartIndex : EndIndex : Example RichTextBox1 RichTextBox2. - RichTextBox1 RichTextBox2. RichTextBox1 RichTextBox1 RichTextBox2. - Board RichTextBox. Board Button, Button 'OnClick'. var SelText = RichTextBox1.GetSelText(); if(seltext == "") { RichTextBox2.RichEditText = RichTextBox1.RichEditText; } else { var Pos = RichTextBox1.GetSel(); var objcharformat = RichTextBox1.GetSelectCharFormat(Pos.x, Pos.x + SelText.length); RichTextBox2.SetDefCharFormat(objCharFormat); } 124
- RichTextBox1 "GOOD" [Ok]. TreeView. TreeView, TreeNode,. Property TreeView. Property CheckBoxes ShowPlusMinus ShowRootLines Description TreeNode PlusMinus Method TreeView, TreeNode. - AddRootString (TreeView ) RootNode RootNode. Format object AddRootString(string NodeText, [string NodeID,] [integer ImageIndex,] [integer SelectedImageIndex]); 125
OZ Application Designer User's Guide NodeText : RootNode NodeID : RootNode ID ImageIndex : RootNode TreeView ImageList. SelectedImageIndex : RootNode TreeView ImageList Example var objroot1 = TreeView1.AddRootString("Root1", "Node1", 1, 2); var objroot2 = TreeView1.AddRootString("Root2"); - AddNodeString (TreeNode ) Node Node. Node RootNode RootNode. Format object AddNodeString(string NodeText, [string NodeID,] [integer ImageIndex,] [integer SelectedImageIndex]); NodeText : Node NodeID : Node ID ImageIndex : Node TreeView ImageList. SelectedImageIndex : Node TreeView ImageList Example var objroot = TreeView1.AddRootString("Root", "Node1", 1, 2); var objnode = objroot.addnodestring("node"); - ExpandAll (TreeView, TreeNode ) Node. Format void ExpandAll(bool ExpandFlag); 126
ExpandFlag : Node Example TreeView1.ExpandAll(true); Example - TreeView. - Board TreeView(Name=TreeView1), TreeView 'OnInitialize'. var objroot; var objnode; objroot = TreeView1.AddRootString("A"); objnode = objroot.addnodestring("a01"); objnode.addnodestring("a01-001"); objnode.addnodestring("a01-002"); objnode = objroot.addnodestring("a02"); objnode.addnodestring("a02-001"); objnode.addnodestring("a02-002"); objroot = TreeView1.AddRootString("B"); objroot.addnodestring("b01"); objroot.addnodestring("b02"); TreeView1.ExpandAll(true); - 127
OZ Application Designer User's Guide ListView. ListView (ListViewItem), (ListViewColumnItem), (ListViewSubItem),. Property ListView. Property FullRowSelect AllowColumnReorder HeaderStyle Description Drag & Drop None : Clickable : Method ListView. - AddItem (ListView ). Format object AddItem(string ItemText, [integer ImageListIndex]); ItemText : ImageListIndex : - InsertItem (ListView ). Format object InsertItem(integer ItemIndex, string ItemText, [integer ImageListIndex]); ItemIndex : ItemText : ImageListIndex : 128
- InsertColumn (ListView ). Format object InsertColumn(integer ColumnIndex, [string ColumnText], [string ColumnAlignment], [integer ColumnWidth]); ColumnIndex : ColumnText : ColumnAlignment : ColumnWidth : - AddSubItem (ListViewItem ). Format object AddSubItem(string SubItemText); SubItemText : Example - ListView. - Board ListView(Name=ListView1), ListView 'OnInitialize'. var objcolumn; objcolumn = ListView1.InsertColumn(1, "Column1"); objcolumn = ListView1.InsertColumn(2, "Column2"); objcolumn = ListView1.InsertColumn(3, "Column3"); var objitem; objitem = ListView1.AddItem("Item1"); objitem.addsubitem("subitem1"); objitem.addsubitem("subitem2"); for(i=2;i<11;i++) { ListView1.InsertItem(i, "Item" + i); } 129
OZ Application Designer User's Guide - ProgressBar Bar. Property ProgressBar. Property BarColor Pos Maximum Minimum Step Text Description ProgressBar Bar Bar Bar Bar ProgressBar Method ProgressBar. - IsFullPos Bar Maximum. Format bool IsFullPos(); 130
Example if( ProgressBar1.IsFullPos() ) { return; } - OffsetPos Bar Bar. Format void OffsetPos(OffsetValue); OffsetValue : Example // Bar 50. ProgressBar1.OffsetPos(50); // Bar 20 Bar 70. - StepIt Bar Step. Format void StepIt(); Example // ProgressBar if(!progressbar1.isfullpos() ) { ProgressBar1.StepIt(); } Example ProgressBar Bar. - ProgressBar,, ProgressBar. 131
OZ Application Designer User's Guide - Board ProgressBar Property Value Property Value TextColor 255, 255, 255 Font Arial, 14pt, Bold TextAlign MiddleCenter Pos 0 Maximum 100 Minimum 0 Step 20 - - Board Button 'Text' '>>', Button 'OnClick'. if(!progressbar1.isfullpos() ) { ProgressBar1.StepIt(); } else { ProgressBar1.Pos = ProgressBar1.Minimum; } ProgressBar1.Text = ProgressBar1.Pos; - MonthCalendar. Property MonthCalendar. 132
Property SelectionStart SelectionEnd MaxSelectionCount ShowToday ShowTodayCircle ShowWeekNumbers TodayDate Description (Week) Example MonthCalendar. - MonthCalendar. - Board MonthCalendar Property Value Property Value ShowWeekNu mbers True - - MonthCalendar MonthCalendar 'OnPostInitialize'. var systime = _GetSystemTime(); var date = systime.getdate(); MonthCalendar1.TodayDate = date; MonthCalendar1.SelectionStart = date; MonthCalendar1.SelectionEnd = date; - 133
OZ Application Designer User's Guide DateTimePicker ComboBox MonthCalender,. Property DataTimePicker. Property Format Description Long : Window Long (32Bit Integer) Short : Window Short (16Bit Integer) Time : Window Time Custom : DataTimePicker 'CustomFormat' 'Format' 'Custom' CustomFormat h(12), H(24), m(), s(), t(,), y(), M(), d(), dddd(), 'hh, mm, ss' 0 'h, m, s' 0 134
ValueDate Method DataTimePicker. - GetCurDateTime DateTime. DateTime OZ Application Designer 'General Script' 'DateTime'. Format object GetCurDateTime(); Example var SelectedDateTime = DateTimePicker1.GetCurDateTime(); _MessageBox(SelectedDateTime.GetYear()); // _MessageBox(SelectedDateTime.GetMonth()); // _MessageBox(SelectedDateTime.GetDay()); // _MessageBox(SelectedDateTime.GetHour()); // _MessageBox(SelectedDateTime.GetMinute()); // _MessageBox(SelectedDateTime.GetSecond()); // Example DataTimePicker. - DataTimePicker. - Board DataTimePicker Property Value Property Value Format Custom CustomForma t yyyy'/'mm'/'dd hh':'mm tt dddd - 135
OZ Application Designer User's Guide HTML View. Property HTML View. Property URL URL Description Example HTML View. - HTML View. - Board HTML View Property Value Property Value URL http://www.forcs.com /index.asp - - 136
- Splitter. Example Splitter. - Splitter Docking Panel. - Board Panel Property Value Property Value BackColor 128, 128, 255 Dock Left 137
OZ Application Designer User's Guide Board Splitter Property Value Property Value BackColor 128, 128, 128 Cursor HSplit Dock Left - - Board Panel Property Value Property Value BackColor 128, 255, 128 Dock Fill - Splitter.. Horizontal Navigator Table Table Row, /// Button TextBox. Property 138
Horizontal Navigator. Property LinkComponentName Description Horizontal Navigato Table Example Horizontal Navigator Table. - Horizontal Navigator Table 10 Row. - 'Foodmart.odi' Board Table Table 'ODIKey' ''Foodmart' 'DataSet' 'ProductSales' Table. Board Table(Name=Table1). Property Value Property Value RowAutosize FixCount RowCount 10 Board Horizontal Navigator Property Value Property Value LinkCompone ntname Table1 - - - 139
OZ Application Designer User's Guide Vertical Navigator Table Table Row, /// Button / VScrollBar. Property Vertical Navigator. Property LinkComponentName Description Horizontal Navigato Table Example Vertical Navigator Table. - Vertical Navigator Table 10 Row. 140
- 'Foodmart.odi' Board Table Table 'ODIKey' ''Foodmart' 'DataSet' 'ProductSales' Table. Board Table(Name=Table1). Property Value Property Value RowAutosize FixCount RowCount 10 Board Vertical Navigator Property Value Property Value LinkCompone ntname Table1 - - - 141
OZ Application Designer User's Guide ActiveX Control OZ Application Designer. Board ActiveX, 'ActiveXControl'. Method ActiveX Control. - GetOCX ActiveX Control OCX. Format object GetOCX(); Example var objocx = ActiveXControl1.GetOCX(); Example ActiveX Control ActiveX. - ActiveX Control Microsoft Office Spreedsheet. - Board ActiveX Control ActiveX. 142
License Key : ActiveX, ClassID ActiveX. ActiveX 'Microsoft Office Spreedsheet 10.0', License Key [Ok]. 143
OZ Application Designer User's Guide 'ActiveXControl' 'Microsoft Office Spreedsheet 10.0'. Board Button, Button 'OnClick'. var activex_excel = ActiveXControl1.GetOCX(); activex_excel.cells(1,2).value = "1"; activex_excel.cells(2,2).value = "2"; activex_excel.cells(3,2).value = "3"; activex_excel.cells(4,1).value = "Sum"; activex_excel.cells(4,2).value = "=SUM(B1:B3)"; - 'Microsoft Office Spreedsheet',. 144
Custom Control OZ Application Designer., 'CustomDll' pdf417.dll Drawing Dll. Drawing Drawing Dll Custom Control. Custom Control CustomDll 'ozc_', Custom Control CustomDll 'API Developer's Guide'. Custom Control CustomDll OZ Application Designer. Custom Contro 'CustomControl'. Method Custom Control. - GetCustomProperty CustomDll. Format string GetCustomProperty(string PropertyName); - SetCustomProperty CustomDll. Format void SetCustomProperty(string PropertyName, string PropertyValue); Example Custom Control CustomDll. - TIFF. Custom Control TIFF (.tif ), Custom Control. 'ozc_tiff.dll' CustomDll, 'ozc_tiff.dll'. 145
OZ Application Designer User's Guide - Board Custom Control(Name=CustomControl1) CustomDll. ozc_tiff.dll [Ok], 'CustomControl'. Board Button, Text 'Select File'. Board CheckBox(Name=CheckBox1), 'Text' 'Fit To Size' Custom Control 146
CheckBox 'OnClick'. if(checkbox1.checked == true) { CustomControl1.SetCustomProperty("TIFF_FITTOSIZE", "true"); } else { CustomControl1.SetCustomProperty("TIFF_FITTOSIZE", "false"); } [Select File] TIFF Button 'OnClick'. var SelectedFile = _FileDialog(true, "", "", "","TIF Files (*.tif) *.tif"); if(checkbox1.checked == true) { CustomControl1.SetCustomProperty("TIFF_FITTOSIZE", "true"); } else { CustomControl1.SetCustomProperty("TIFF_FITTOSIZE", "false"); } CustomControl1.Value = SelectedFile; - [Select File] TIFF, 'Fit To Size'. 147
OZ Application Designer User's Guide Report Control Report Control OZ Report Designer (.ozr). 'ReportViewerOption' Report Control 'OnPreApplyReport' 'ApplyReport', 'OZ Report Viewer Guide'. Report Control, 'OZ Report Viewer Guide'. Property Property ReportViewerOption Description, Method Report Control. - AddReportParameter Report Control, Parameter. Format void AddReportParameter(string ParameterName, string ParameterValue); ParameterName : ParameterValue : Example // ReportControl1.AddReportParameter("toolbar.all","false"); // ProgressBar ReportControl1.AddReportParameter("print.mode","showprogress"); - InitUserParameter, AddReportParameter(). 148
Format void InitUserParameter(); Example ReportControl1.InitUserParameter(); - ApplyReport Report Control 'OnPreApplyReport'. Format bool ApplyReport(bool RecreateReportFlag); RecreateReportFlag :, Parameter User Interface RecreateReportFlag true. Example ReportControl1.ApplyReport(); Example Report Control. - Report Control. - Board Report Control 'OnPreApplyReport'. ReportControl1.InitUserParameter(); ReportControl1.AddReportParameter("connection.servlet", "http://211.116.251.49:8087/oz31demo/server"); ReportControl1.AddReportParameter("connection.reportname", "/ozdemo30/kr/a/08note.ozr"); Board Report Control Board 'OnAttached'. ReportControl1.ApplyReport(); 149
OZ Application Designer User's Guide - ReportButton ReportButton OZ Report Designer (.ozr) Export. 'ReportViewerOption' Export ReportButtonl 'OnPreApplyReport' 'ApplyReport', 'OZ Report Viewer Guide'. ReportButton, 'OZ Report Viewer Guide'. Property Property ReportViewerOption Description Export, Export 150
ReportViewerMode (Print) Export Method ReportButton. - AddReportParameter ReportButton, Parameter. 'OZ Report Viewer Guide'. Format void AddReportParameter(string ParameterName, string ParameterValue); ParameterName : ParameterValue : Example // ProgressBar ReportButton1.AddReportParameter("print.mode","showprogress"); - InitUserParameter, AddReportParameter(). Format void InitUserParameter(); Example ReportButton1.InitUserParameter(); - ApplyReport ReportButton 'OnPreApplyReport'. Format bool ApplyReport(); Example ReportButton1.ApplyReport(); 151
OZ Application Designer User's Guide Example ReportButton Export. - ReportButton Export. - Board ReportButton 'Text' 'Export' 'ReportViewerMode' 'Export'. ReportButton 'OnPreApplyReport'. ReportButton1.InitUserParameter(); ReportButton1.AddReportParameter("connection.servlet", "http://211.116.251.49:8087/oz31demo/server"); ReportButton1.AddReportParameter("connection.reportname", "/ozdemo30/kr/a/08note.ozr"); ReportButton 'OnClick'. ReportButton1.ApplyReport(); - Export Export Export. 152
Timer. Timer Timer 'OnTimer'. Property Timer. Property Description Enabled Interval Timer Timer (ms), 3 3000 Method Timer. - Start Timer. Timer 'Enabled' 'True'. Format void Start(); Example Timer1.Start(); - Stop Timer. Timer 'Enabled' 'False'. Format void Stop(); Example Timer1.Stop(); 153
OZ Application Designer User's Guide Example Timer ProgressBar. - Timer 0.5 ProgressBar. - Document Timer 'Interval' '500'. Board Button, 'Text' 'Start' 'OnClick'. var objtimer = _GetInvisible("Timer1"); objtimer.start(); Board Button, 'Text' 'Stop' 'OnClick'. var objtimer = _GetInvisible("Timer1"); objtimer.stop(); Board ProgressBar. Timer 'OnTimer'. var objprogressbar=_getcurrentboard().getchild("progressbar1"); if(!objprogressbar.isfullpos() ) { objprogressbar.stepit(); } else { objprogressbar.pos = objprogressbar.minimum; } - [Start], [Stop] Timer. 154
ContextMenu.,.. ContextMenu, 'ContextMenu' ContextMenu. ContextMenu 'OnCommand'. Example ContextMenu Board. - ContextMenu Board. - Document ContextMenu(Name=ContextMenu1). Board 'ContextMenu' 'ContextMenu1'. - Board. 155
OZ Application Designer User's Guide MainMenu Board.,.. MainMenu Board 'MainMenu' MainMenu. MainMenu 'OnCommand'. Example MainMenu Board. - MainMenu Board. - Document MainMenu(Name=MainMenu1). 156
Board 'MainMenu' 'MainMenu1'. - Tooltip,. 'ToolTip' Tooltip, 'ToolTipText'. 157
OZ Application Designer User's Guide Example Tooltip Button. - Tooltip Button. - Document Tooltip(Name=ToolTip1). Board Button 'ToolTip' 'ToolTip1' 'ToolTipText' '_MessageBox("Hello","Title");'. - ImageList ContextMenu, MainMenu, TreeView, CheckBox. 'ImageSize'. ImageList 'ImageList' ImageList, 'MenuIconImageIndex' 'MenuIconDisableImageIndex'. Property ImageList. 158
Property Description ImageSize ImageListUrl Example ImageList MainMenu. - ImageList MainMenu. - Document ImageList(Name=ImageList1) 'ImageSize' '20, 20', 'ImageListUrl' 'ozp:///complexcontrols.gif'. Document MainMenu(Name=MainMenu2). MainMenu2 'ImageList' 'ImageList1'. Invisibles MainMenu2 Table 'MenuIconImageIndex' '0'. 159
OZ Application Designer User's Guide Grid 'MenuIconImageIndex' '1', CrossTab 'MenuIconImageIndex' '2', Chart 'MenuIconImageIndex' '3'. Board 'MainMenu' 'MainMenu2'. - 160
Panel, GroupBox. Board Panel Panel Panel. GroupBox Panel, Panel. Method Panel. - DeleteAllChild Panel. Format void DeleteAllChild(); Example Panel1.DeleteAllChild(); - GetChild. Format object GetChild(string ComponentName); Example var objlabel = Panel1.GetChild("Label1"); - GetChildAt. Format object GetChildAt(integer ComponentIndex); Example var objcomp = Panel1.GetChildAt(5); 161
OZ Application Designer User's Guide - GetChildCount Panel. Format integer GetChildCount(); Example var ChildCount = Panel1.GetChildCount(); Example - Panel Label, CheckBox, RadioButton, Button Panel (Name) (Text).. - Board Panel, Panel Label, CheckBox, RadioButton. Board Button, 'Text' 'Get ChildComponent' 'OnClick'. var objcomp; var ChildCount = Panel1.GetChildCount(); for(i=0;i<childcount;i++) { objcomp = Panel1.GetChildAt(i); _MessageBox("Name: "+ objcomp.name + " Text: " + objcomp.text); } - 162
TabControl Panel, Panel. Board TabControl TabPanel TabControl TabPanel,. Property TabControl. Property SelectedIndex Description Tab, 0 Example - 4 TabPanel TabControl Tab. - Board TabControl(Name=TabControl1), TabControl TabPanel 4. Board 'OnPostInitialize'. TabControl1.SelectedIndex = 1; - 163
OZ Application Designer User's Guide BoardView Board. BoardView Board, BoardView Board BoardView. Property BoardView. Property Description BoardName Board Example - TextBox Board Button BoardView Board. - Board Board TextBox(Name=TextBox1), Button(Name=Button1), BoardView(Name=BoardView1). Button 'OnClick'. BoardView1.BoardName = TextBox1.Text; - 164
Table. Table.,.. Grid. Grid.. CrossTab. CrossTab.. Chart 2 3. Chart.. 165
OZ Application Designer User's Guide Line,. Property Line. Property LineDash LineGap LineType PenThickness Description 0. Horizontal : Vertical : Slash : BackSlash : Example - Line. - Board Line. Property Value Property Value LineDash 10 LineGap 5 LineType Horizontal PenThickness 2 166
- ArrowLine. Property ArrowLine. Property ArrowShape ArrowSize ArrowType Description Circle : Diamond : OpenTriangle : SemiCircle : SharpTriangle : Triangle : Normal : Reverse : Both : Example - ArrowLine. 167
OZ Application Designer User's Guide - Board ArrowLine. Property Value Property Value ArrowShape Triangle ArrowSize 10 ArrowType Normal - - - Ellipse,. Property Ellipse. Property BrushStyle Description Solid : Hatch : 168
PatternStyle PenThickness, BrushStyle Hatch Horizontal : Vertical : FDiagonal : BDiagonal : Cross : Horizontal Vertical Diacross : FDiagonal BDiagonal Example - Ellipse. - Board Ellipse. Property Value Property Value BrushStyle Hatch PatternStyle Diacross - 169
OZ Application Designer User's Guide Rectangle. Property Rectangle. Property BrushStyle PatternStyle PenThickness Description Solid : Hatch :, BrushStyle Hatch Horizontal : Vertical : FDiagonal : BDiagonal : Cross : Horizontal Vertical Diacross : FDiagonal BDiagonal Example - Rectangle. - Board Rectangle. Property Value Property Value BrushStyle Hatch PatternStyle Horizontal - 170
171
OZ Application Designer User's Guide OZC OZ Application Designer OZ Component. Label, TextBox OZ Application Designer OZC Container Controls Board OZC. OZC [Export Component], [Import Component]. Container Controls Board OZC. Container Controls Container Controls GroupBox GroupBox OZC. OZC 172
Step 1 OZC OZC OZC. Board GroupBox, RadioButton. GroupBox RadioButton 'Name' 'gbcolor', 'rbred', 'rbgreen', 'rbblue', 'rbblack', GroupBox 'Text' 'Select Color', RadioButton 4 'Text' 'Red', 'Green', 'Blue', 'Black'. OZC Board OZC, '' + ''. OZC, 'Name'. RadioButton, RadioButton1, RadioButton2,... rbred, rbgreen,.... GroupBox [Export Component]. 173
OZ Application Designer User's Guide ' ' 'OZC_GroupBox.ozc'. 'C:\Repository'. Step 2 OZC OZC., OZC Board Label, Button. Board [Import Component]. 174
[Import Component],. Menu None Auto Include Manual Include Description OZC. OZC. "SaveType" OZC OZC. 'Auto Include' OZC OZC. 'Auto Include' OZC, 'Manual Include' OZC OZC ImportNewChild() OZC. [Manual Include] OZC. [Import Component] [Manual Include] OZC Board. OZC, 'Manage Type' 175
OZ Application Designer User's Guide. 'Manage Type'. Property Type SaveType Category Item Description OZC. OZC. OZC. OZC. Step 3 'Manual Include' OZC Board Board Label. 'Manual Include' OZC Board. 'Board1' 'OnPostInitialize'. Board1.ImportNewChild("ozp:///OZC_GroupBox.ozc"); Label 176
. 'Document' GlobalFunction'. function changebackcolor(color) { var mylabel = _GetBoard("Board1").GetChild("Label1"); switch(color) { case "Red": mylabel.backcolor = "255, 0, 0"; break; case "Green": mylabel.backcolor = "0, 255, 0"; break; case "Blue": mylabel.backcolor = "0, 0, 255"; break; case "Black": mylabel.backcolor = "0, 0, 0"; break; default: break; } } [Change the Backcolor of the Label] Label. 'Button1' 'OnClick'. if(gbcolor.getcheckedradio()!= null) { var selectedcolor = gbcolor.getcheckedradio().text; changebackcolor(selectedcolor); } else { _MessageBox("Select Color", "Error"); } Step 4 [File] [Preview] (. ) [Change the Backcolor of the Label] Label. 177
OZ Application Designer User's Guide Board Board OZC. OZC 178
Step 1 OZC OZC Board OZC. Board Button, GroupBox, RadioButton. Button, GroupBox RadioButton 'Name', 'Text'. Label. 'btnchangebackcolor' 'OnClick'. if(gbcolor.getcheckedradio()!= null) { var selectedcolor = gbcolor.getcheckedradio().text; changebackcolor(selectedcolor); } else { _MessageBox("Select Color", "Error"); } Board [Export Component]. 179
OZ Application Designer User's Guide ' ' 'OZC_Board.ozc'. 'C:\Repository'. Step 2 Board Board, Board OZC Label., Board. [Show Color Dialog] Board OZC. 'Button1' 'OnClick'. 180
var objboard = _ImportNewBoard("ozp:///OZC_Board.ozc"); Board1.ShowDialog(objBoard.Name, "Change BackColor", true, 300, 0); Label. 'Document' GlobalFunction'. function changebackcolor(color) { var mylabel = _GetBoard("Board1").GetChild("Label1"); switch(color) { case "Red": mylabel.backcolor = "255, 0, 0"; break; case "Green": mylabel.backcolor = "0, 255, 0"; break; case "Blue": mylabel.backcolor = "0, 0, 255"; break; case "Black": mylabel.backcolor = "0, 0, 0"; break; default: break; } } Step 3 [File] [Preview] (. ) [Show Color Dialog] ' ' [Change the Backcolor of the Label] Label. 181
OZ Application Designer User's Guide EventHook Document, PreEventHook PostEventHook. EventHook 'EnableEventHook' 'True',., 'EnableEventHook' 'True' Button1 'OnClick'. PreEventHook 'OnClick' Button1 'OnClick' PostEventHook 'OnClick' EventHook 'EnableEventHook' (:True) 'False'. PreEventHook PostEventHook PreEventHook PostEventHook. PreEventHook 182
(OnClick ) Example EventHook Board Button Label 'EnableEventHook' PreEventHook PostEventHook. PreEventHook PostEventHook 'OnClick'. Board Button, Label 'EnableEventHook', Button Label 'OnClick' 'EnableEventHook' EventHook. - PreEventHook 'OnClick'. _MessageBox("PreEventHook_OnClick"); - PostEventHook OnClick. _MessageBox("PostEventHook_OnClick"); - Board Button(Name=Button1), 'EnableEventHook' 'True' Button 'OnClick'. _MessageBox("Button1_OnClick"); 183
OZ Application Designer User's Guide - Board Button(Name=Button2), 'EnableEventHook' 'False' Button 'OnClick'. _MessageBox("Button2_OnClick"); - Board Label(Name=Label1), 'EnableEventHook' 'True' Label 'OnClick'. _MessageBox("Label1_OnClick"); - Board Label(Name=Label2), 'EnableEventHook' 'False' Label 'OnClick'. _MessageBox("Label2_OnClick"); - [File] [Preview] ( ). - 'EnableEventHook' 'True' [Button1] PreEventHook OnClick -> Button1 OnClick -> PostEventHook OnClick. 184
- 'EnableEventHook' 'False' [Button2] PreEventHook PostEventHook Button2 OnClick. - 'EnableEventHook' 'True' [Label1] [Button1] PreEventHook OnClick -> Label1 OnClick -> PostEventHook OnClick. - 'EnableEventHook' 'False' [Label2] [Button2] PreEventHook PostEventHook Label2 OnClick 185