Sign in to follow this  

Custom symbols and Panel Resizing

Recommended Posts

I'm trying to include my own symbols in the symbol factory, what color should I use to make the symbol have a transparent background?

Also about the panel component, is there any way to resize it on a sequence? I want to have a panel resized to fit a string variable length.

Share this post

Link to post
Share on other sites

If you want a transparent background you are going to have to draw the symbol in a vector drawing tool like Illustrator. You need one that will export to WMF files and I'm not even sure all versions of Illustrator support this. If you do a search for windows metafiles I believe there are a couple of very inexpensive metafile drawing programs. You cannot use Photoshop, Paint or other bitmap style drawing programs if you want transparent because DAQFactury there is no transparent. These aren't GIFs.

I should mention that if you aren't going to animate or change the image dynamically, its often easier to draw your entire schematic in photoshop and make it a static background for the entire page. You can make individual parts of the schematic clickable by putting panels behind it. The municipal water sample does this.

As for resizing, you can move and resize any component dynamically. They all have the same variables/functions for their position:

Position: (variable with 4 elements containing entire position)





MoveTo() : function that moves to a particular location, maintaining size

MoveBy() : function that offsets the position maintaining size

Note that some components, such as variable value (with Align = 0), automatically size themselves, so changing PositionBottom and PositionRight won't do anything.

Share this post

Link to post
Share on other sites

Thanks, I found it easier to make the symbols with the background color matching that of the page they are into.

Also, is there a command to close DAQFactory from code, so I can have a Exit button on the main page of my application?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this