Andreschrosa Posted December 5, 2008 Share Posted December 5, 2008 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. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 5, 2008 Share Posted December 5, 2008 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) PositionTop PositionBottom PositionLeft PositionRight 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. Link to comment Share on other sites More sharing options...
Andreschrosa Posted December 8, 2008 Author Share Posted December 8, 2008 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? Link to comment Share on other sites More sharing options...
AzeoTech Posted December 8, 2008 Share Posted December 8, 2008 Yes: system.quit() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.