question

Marco Baccalaro avatar image
1 Like"
Marco Baccalaro asked Marco Baccalaro commented

How to pre-load module's images?

I'm developing a module where I've created also some dashboard and process flow with some module's image (saved in the a module's sub-folder).

How can I make those images to be shown also on the Main Panel?

The screenshot explains my problem: I see the images on the Toolbox view but not on the Main Panel.

I tried to understand it from other modules but without success.

FlexSim 17.2.4
modulesimagesbitmapspreload
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

Please post the image files you are trying to use so we can duplicate the issue and determine what you can do to fix it.

0 Likes 0 ·
Marco Baccalaro avatar image Marco Baccalaro Phil BoBo ♦♦ commented ·

I'm trying to understand the method to show this images in the main panel.

In example, I have the pie1.png in the "modules\ExampleModule\bitmaps" folder. I see the image in the Toolbox but I can't see it on the Main Panel of the Process Flows list.

Thanks.

0 Likes 0 ·
examplemodel.fsm (14.2 KiB)
pie1.png (761 B)
toolbox.png (8.1 KiB)
mainpanel.png (8.4 KiB)

1 Answer

·
Phil BoBo avatar image
2 Likes"
Phil BoBo answered Marco Baccalaro commented

It looks like the toolbar control only works with bmp or ico files. Save your image as a bmp or an ico format in addition to png.

For example, ProcessFlow has flowchart.bmp, flowchart.ico, and flowchart.png that are all used in different places in the UI depending on what type of image the control can render.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Marco Baccalaro avatar image Marco Baccalaro commented ·

Thank you Phil! It was so simple! :)

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.