Book a Demo

Author Topic: GUI Table Element  (Read 4055 times)

mylesJ

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
GUI Table Element
« on: February 14, 2006, 09:30:00 am »
I am using the screen designer features but cannot see a table GUI element. Is there one? If not, what's a good approximation?

thomaskilian

  • Guest
Re: GUI Table Element
« Reply #1 on: February 15, 2006, 02:42:36 am »
You can design own stereotypes using own graphics or EA's shape scripting language.

mylesJ

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: GUI Table Element
« Reply #2 on: February 15, 2006, 03:13:46 am »
Cool! EA architect is turning out to be a very pleasant experience (currently evaluating it).

Can you give me a head start with this shape scripting language (ie. a pointer to some examples)? I want a table column GUI element which I can give a title to and variable number of values to (where the column header is in bold). E.g.

Fist Name
John
Fred
Joe

By creating several of these side by side I end up with a table. Its how the Visio column control works.






First NameLast Name
JohnSmith
FredBloggs
JoeCitizen

thomaskilian

  • Guest
Re: GUI Table Element
« Reply #3 on: February 15, 2006, 03:29:32 am »
There are some examples posted here in this forum (search for "shape scripting"). You'll find more info in the help. Invoke it via Settings/UML/Stereotypes and toggle Shape Script

mylesJ

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: GUI Table Element
« Reply #4 on: February 15, 2006, 04:28:00 am »
Thanks for the info.

Is it possible to create a shape with two text areas, one above the other (to represent the column header and column values) which the user can edit the text themselves when they drag it on to a diagram?

thomaskilian

  • Guest
Re: GUI Table Element
« Reply #5 on: February 15, 2006, 05:16:25 am »
No. The shape is fixed except for Tagged Values which can be evaluated. But you can't drag text on a shape dynamically.

mylesJ

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: GUI Table Element
« Reply #6 on: February 15, 2006, 05:27:36 am »
I think I have found a suitable workaround without using custom shapes. I use a GUI panel then add text elements on to it. It kind of gives the effect I am after.

If we need to do anything more sophisticated than this then we will have to revert to Visio

thomaskilian

  • Guest
Re: GUI Table Element
« Reply #7 on: February 15, 2006, 05:32:00 am »
Probably a good idea since EA is not really the ideal tool for GUI prototyping. It works for some rough sketches, but as you go into details you will likely use specialised tools.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: GUI Table Element
« Reply #8 on: February 23, 2006, 03:36:00 pm »
Quote
Can you give me a head start with this shape scripting language (ie. a pointer to some examples)? I want a table column GUI element which I can give a title to and variable number of values to (where the column header is in bold). E.g.

Fist Name
John
Fred
Joe

By creating several of these side by side I end up with a table. Its how the Visio column control works.

First NameLast Name
JohnSmith
FredBloggs
JoeCitizen


I don't think this is possible at the moment...

First minor point is that there's no way yet to change font, so you can't show anything in bold. Logged as feature request.

Second point is where would you keep the information? Presumably, you'd need a number of tagged values (you can have a memo type tagged value). However it isn't possible yet to display tagged values in shape script Print() commands. Logged as feature request.

Sorry I couldn't be more helpful,

Neil
The Sparx Team
[email protected]