30.07.2013 Views

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Control Elements. Creating User Defined Dialog Boxes<br />

Finally, let's create the control elements for defining the title font size. Those will be placed in the group box<br />

“Font size”.<br />

We will pre-define three choices: small font (size=6), medium (size=8) and large (size=10). For controlling<br />

the value of the variable “size”, we will use three “Radio Button” elements: one per each value of the “size”<br />

variable.<br />

Call the option:<br />

Radio Button<br />

Specify the position and the size of the switch. In the “Insert Variable” window, select the variable “size”. In<br />

the parameters dialog box set the “On” parameter value equal to “6” and the parameter “Caption” as<br />

“Small”. Similarly, create another two “Radio Button” controls, positioning those exactly beneath the first<br />

one.<br />

Their related variable should also be ‘size”. The “On”<br />

parameter settings for these elements should be “8”<br />

and “10”, respectively.<br />

The name of the second switch is – “Medium”, the<br />

name of the third one – “Large”.<br />

One can put “Static Text”-type control elements next<br />

to the switches to provide explanation, mentioning the<br />

respective font size of the text (6,8 and 10) in the<br />

“Control Parameters” dialog box on the tab “Font”.<br />

Once all the control elements are created, make sure<br />

to check their activation order.<br />

Thus, a second dialog is created in the model – the<br />

one for controlling the title of the drawing.<br />

Next, we need to decide, how the two dialogs will<br />

interact. Since the option was used for their<br />

creation, both pages were automatically added and<br />

check marked in the page list of the command<br />

"Customize|Status" (the tab “Preferences”).<br />

Meanwhile, the parameter “Marked variable<br />

editor” switched to the mode “Pages”.<br />

In this case, the dialog pages will be automatically joined into one dialog box with tabs. The tab names will<br />

be the same as the names of the pages. The first tab will correspond to the first page, the second tab – to the<br />

second page, respectively.<br />

549

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!