Drawing complex surface objects

Interactive surface objects

Since the last update of the Canvas object it is possible to draw simple geometric shapes like lines, circles or rectangles. These objects can be created during runtime. Attributes like frame color, fill color or line width can be changed. Complex processes can also be displayed more clearly by means of such diagrams or graphics. Up to now, these graphic objects lacked interaction possibilities. To fill this gap, it is now possible to place surface objects in the canvas object. These include various forms of buttons, labels, edits and lists. Like the Geometric objects, the available surface objects are created dynamically during runtime. New conzept 16-commands are available for converting the pixel coordinates commonly used for surface objects into logical coordinates. Besides that, the available properties and functionalities are congruent with those available in the conzept 16-Designer.

MouseMove addition

The Canvas object now offers silmultaneous integration of selected surface objects and application of the EvtMouseMove event. This can now be used in combination with a HitTest method to display information about window objects when the mouse pointer hovers over an object.

Available objects

Since not every object from the concept 16-designer offers a useful application within the canvas object, the choice of drawable objects is limited. Below is the complete list of usable objects.

Animation
BigIntEdit
Button
Checkbox
ColorButton
ColorEdit
DateEdit
DataList
DecimalEdit
Edit
FloatEdit
FontNameEdit
FontSizeEdit
GroupBox
HyperLink
Icon
IntEdit
Label
MenuButton
MetaPicture
Picture
Radiobutton
RecList
RtfEdit
TextEdit
TimeEdit

Example of application

As usual, objects can be created during runtime by WinCreate():

tObject # WinCreate(_WinTypeButton, 'MyButton');
//Set StyleTheme
tObject->wpStyleTheme # _WinStyleThemeSystem;
//Add object to Canvas
MyCanvas->WinAdd(tObject);

 

For converting pixel coordinates into logical units to display the position of surface objects:

// Pixel coordinate of the upper left corner of the surface object 'WinObject'.
tPoint # PointMake(WinObject->wpAreaLeft, WinObject->wpAreaTop);
// Convert to logical units.
tPoint # MyCanvas->WinCanvasLogUnit(tPoint);
// Convert logical units to millimeters (e.g. for display).
tLogPosX # PrtUnit(tPoint1:x, _PrtUnitMillimetres);
tLogPosY # PrtUnit(tPoint1:y, _PrtUnitMillimetres);

 

Summary

The Canvas object can now provide interaction in addition to displaying graphs and charts. Furthermore, diagrams can use the added surface objects to display applications. All in all, thanks to the new features, the Canvas object offers a broader range of applications and thus increases its value as a building block for professional process visualization.

Klicken Sie hier, um die Nutzungsbedingungen für unseren Blog zu lesen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave the field below empty!

Requests, questions or feedback are welcome:

Terms of use of the comment function in the blog

1. General information

Vectorsoft AG (‘Provider’) provides a public blog for Internet users (‘Users’) on the vectorsoft.de website. The public blog is intended for the exchange of information and ideas. Users who participate with contributions and comments undertake to comply with the blog terms of use and are responsible for the accuracy, appropriateness and freedom from legal infringements of their contributions. By using the comment function in our blog, you accept these terms of use.

2. Netiquette

We ask you to refrain from personal attacks and provocations based on other opinions. Please argue objectively and maintain a constructive discussion culture. Your comment should always be related to the topic in question in order to avoid digressions into other topics. Posting the same comment or several similar comments more than once is not permitted.

3. Prohibition of illegal content

By submitting your comment, you confirm that you are not violating any copyrights or other rights of third parties. Inciting, racist statements, instructions for criminal offences and their glorification, depictions of violence, pornographic content and statements that violate personal rights are prohibited.

4. No advertising

The use of the comment function is not permitted for commercial or party-political purposes. Advertising contributions of any kind will be deleted immediately.

5. Details of the name

When entering your name, pay attention to the principles mentioned above.

6. Source references

If you intend to publish quotes or contributions from third parties, please indicate the respective sources and explain how they relate to the blog post.

7. Violation of the terms of use

Posts that violate this policy will be deleted immediately. If you notice any violations yourself, please send us the link to the comment in question by e-mail to . We expressly point out that we will exclude individual users in the event of repeated or serious violations of these terms of use.

As of: Sept. 2024

Get your Trial Version now!

Test yeet free of charge

IHRE EVALUIERUNGSLIZENZ - JETZT ANFORDERN!

TESTEN SIE DIE CONZEPT 16 VOLLVERSION - UNVERBINDLICH und KOSTENFREI

Subscribe to our newsletter

[cleverreach_signup]
WordPress Cookie Notice by Real Cookie Banner