Book a Demo

Author Topic: Display the control name in WMF or EMF files  (Read 4307 times)

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Display the control name in WMF or EMF files
« on: January 05, 2012, 09:08:59 am »
Hi,

I'm investigating using an EMF or WMF as a sustitute for shape scripts for UML types.

Does anyone know how I'd go about displaying the name of the control within the EMF?  

By default it shows under the control  :(

Thanks
Colin

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Display the control name in WMF or EMF files
« Reply #1 on: January 05, 2012, 09:21:12 am »
Shape scripts, I'm afraid:

Code: [Select]
shape main
{
    v_align="center";
    h_align="center";
    image("my_picture.emf",0,0,100,100);
    printwrapped("#name#");
}
The Sparx Team
[email protected]

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Display the control name in WMF or EMF files
« Reply #2 on: January 05, 2012, 09:58:37 am »
and can you path the file name or does it have to live somewhere specific?

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Display the control name in WMF or EMF files
« Reply #3 on: January 05, 2012, 10:34:33 am »
Never mind - found it in the doco - needs to be in the image manager!

Many thanks

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Display the control name in WMF or EMF files
« Reply #4 on: January 05, 2012, 10:35:17 am »
Quote
and can you path the file name or does it have to live somewhere specific?
It has to live in the EA model: Settings > Images  (or in an MDG Technology, I think)
« Last Edit: January 05, 2012, 10:36:38 am by KP »
The Sparx Team
[email protected]