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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Upon placing control elements on the<br />

form, one needs to define processing<br />

of the event of clicking the control<br />

element – the button. To do this,<br />

select that element on the form,<br />

switch to the «Properties» window<br />

and set the latter window into the<br />

event mode .<br />

In the right hand side column of the<br />

«Click» event, press , which will<br />

create the procedure<br />

«button1_Click». The same result<br />

could be achieved by double-clicking<br />

the control element – the button.<br />

In the coming up form code window, one needs to write the procedure «button1_Click».<br />

Macros<br />

The figure below depicts the form code window containing the function «button1_Click», in which the<br />

variables «X1», «Y1», «X2» and «Y2» are assigned values from control elements – the textBox1, textBox2,<br />

textBox3 and textBox4 input boxes, and «CreateLine» function (macro) is called.<br />

753

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

Saved successfully!

Ooh no, something went wrong!