ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
||||
|
||||
png files on a GUI does not work
I've tried to use a PNG file on a GUI but it doesn't show. .ico and .bmp work fine so I'm simply wondering if this is a bug or by design?
|
#2
|
||||
|
||||
I just tested, and it looks like the bitmap attribute doesn't work on a static control if the bitmap is a png. It works on buttons but not on statics. To get around this, you can instead use a panel control (viewwindowtype 102). Give it the bitmap attribute with path to the png, then also give it a viewfocus attribute with the path ..>bitmap.
|
The Following 2 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
Steven Hamoen (12-14-2010) |
#3
|
||||
|
||||
Anthony, you are the best. Thanks!
If somebody else is interested, In an older project I used some bitmaps for library icons and things like that but I had some problems with color differences on different computers so the bitmaps looked strange. So now with an update of those libraries I used a free program Paint.net (the program that paint was supposed to be ) and could very simply make the background transparent and save as .png and solved all my problems! |
The Following 2 Users Say Thank You to Steven Hamoen For This Useful Post: | ||
RalfGruber (12-14-2010) |
Tags |
.ico, .png, gui |
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for online work | mrjasongill | Job Opportunities | 2 | 04-19-2014 06:18 AM |
drawtext sometimes work wrongly in 5.0 | LINWEIXU | Q&A | 2 | 04-29-2010 02:02 AM |
Shift work | m matias | Q&A | 2 | 02-21-2010 01:12 PM |
How to work with activedocumentnode | Steven Hamoen | Q&A | 3 | 09-23-2009 07:47 AM |
How does a Simulation Engine work ? | Vinay Mehendiratta | Q&A | 2 | 02-14-2008 01:01 PM |