Book a Demo

Author Topic: UI Toolboxes - toolboxItemImage  (Read 4725 times)

skelesp

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
UI Toolboxes - toolboxItemImage
« on: August 07, 2013, 11:00:37 pm »
Can anybody explain what's the use of the stereotype with ToolboxItemImage-apply type and how their name is constructed?

Eg.:
Code: [Select]
<Stereotype name="BPMN2.0P::BusinessProcess(UML::Activity)" notes="" cx="90" cy="70">
            <Icon type="bitmap" xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">...</Icon>
            <AppliesTo>
              <Apply type="ToolboxItemImage"/>
            </AppliesTo>
          </Stereotype>

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UI Toolboxes - toolboxItemImage
« Reply #1 on: August 07, 2013, 11:52:34 pm »
If you want a different icon in the toolbox than the standard one.

q.

skelesp

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: UI Toolboxes - toolboxItemImage
« Reply #2 on: August 08, 2013, 12:19:48 am »
And why is the UML::xxxxx different for the stereotype (which changes the icon) and the tag within the ToolboxPage?

Code: [Select]
<Stereotype name="BPMN2.0P::TextAnnotation(UML::Comment)" notes="" cx="90" cy="70">

<Tag name="BPMN2.0P::TextAnnotation(UML::Note)" type="" description="" unit="" values="" default="Text Annotation"/>

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UI Toolboxes - toolboxItemImage
« Reply #3 on: August 08, 2013, 12:31:46 am »
The (UML::xxx) is needed if you extend more than one metaclass with a stereotype (RTFM).

q.

[edit] Oh, I see that one time it's Comment and then it's Note.

The help page "Elements Used in Toolboxes" tells that Note is the metaclass and Comment is what appears in the toolbox. I'm not sure but in the MDG ist should always be Note, not Comment. If it works anyway it's probably because it has been coded wrong in EA and they recognize Comment as synonym.

I changed Comment to Note and the MDG works still. So I'm probably right with my assumption.

But when changing all ::Note to ::Comment it does not work. So in some context it seems to be ok. Anyway it should be Note which works.
« Last Edit: August 08, 2013, 12:45:07 am by qwerty »

snell

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: UI Toolboxes - toolboxItemImage
« Reply #4 on: August 09, 2013, 12:02:26 am »
Hi

Does anyone know how to populate or modify the Win32UI Tree Control?
I have added the tree control to my interface but can't edit the nodes (expanded/collapsed) to display the info I need.

Thanks,
EA Version 9.3.934

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UI Toolboxes - toolboxItemImage
« Reply #5 on: August 09, 2013, 05:22:26 am »
You should start a different thread.

q.