Author Topic: Using an image in a win32picture?  (Read 3969 times)

gtsoftware

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Using an image in a win32picture?
« on: November 15, 2011, 10:01:58 pm »
To describe a system's user interface, I would like to use camera photos to accurately show what LEDs, buttons and keys look like.

I've used a 'win32 user interface diagram' to get the layout right but is there a way to show an image (PNG, GIF etc.) for a win32picture or win32button?

I would use 'select alternate image' but it isn't available for those GUI elements.

(EA v9.1.910 Corporate)

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Using an image in a win32picture?
« Reply #1 on: November 15, 2011, 11:12:31 pm »
It is not possible.

Why don't you use the legacy "Screen" artifact instead of Win32?

gtsoftware

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Using an image in a win32picture?
« Reply #2 on: November 15, 2011, 11:57:09 pm »
I'm not sure what a legacy screen artifact is (I searched the help for those words without success) but you set me on the course to find the answer - I changed the property from 'win32button' to just 'button' and 'win32picture' to 'label' which let me assign an alternate image and I'm happy.

Thanks

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Using an image in a win32picture?
« Reply #3 on: November 16, 2011, 01:24:28 am »
I mean the "User Interface" diagram & toolbox that exists previously of the new Win32 modelling capabilities introduced in v9.0

You can see atoolbox called "User Interface", and exists an "User Interface" diagram type too that uses this toolbox.

See http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/domain_based_models/screen.html for an example.

gtsoftware

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Using an image in a win32picture?
« Reply #4 on: November 16, 2011, 03:13:36 am »
Thanks, I hadn't looked for any old toolbox as I wanted to use the new shiny win32 items. The end effect was the same - by changing the properties I was moving the GUI element to an older variety that allowed an alternate image.

JohnKhan100

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Using an image in a win32picture?
« Reply #5 on: December 24, 2024, 12:29:41 pm »
Hello, I am resurrecting this question. Currently using EA17. Would like to place Picture Control (a Win32 UI Control) into a Dialog. However, when I run a simulation (from State Machine Diagram), the Picture Image does not display. I tried numerous things (including the suggestions in this message thread) -- but nothing seems to work. I contacted Sparx Support, but they only point me back to the Sparx documentation -- not helpful. Can anyone provide required steps that I can follow? Thanks!


shimon

  • EA User
  • **
  • Posts: 125
  • Karma: +5/-0
    • View Profile
Re: Using an image in a win32picture?
« Reply #6 on: December 24, 2024, 07:22:17 pm »
Hi,
I'm no expert in this field, but these days it's a little slow here so I'll add my 2 cents.
If you use an alternate image, it will not show on all diagrams.
In order to do that, you must create a shape with shape-script and create a new profile or MDG technology that creates items based on / using these shapes.
Sincerely,
Shimon

JohnKhan100

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Using an image in a win32picture?
« Reply #7 on: December 26, 2024, 02:23:04 pm »
Thanks Shimon. Your suggestion is interesting. So, I created a custom shape but could not get it to display in the Win32 UI dialog. I think this feature is not implemented in Sparx EA (even though the online manual indicates otherwise). I left another message with Sparx Support -- I remain hopeful that they would confirm if the PictureControl feature is implemented.

Best regards,
John