Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Looking for a graphics trick...

Looking for a graphics trick... 4 months 4 weeks ago #10647

  • AutoMate
  • AutoMate's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 121
  • Karma: 0
Hi,
I am looking for suggestions on how a graphic height may be adjusted in run-time. An example is given, below:

A custom class object has an associated subgraph. The custom class object contains an integer with a valid value of 1 to 20.

Graphic01.png


With an integer value = 20, the subgraph looks like this:

Graphic02.png


With an integer value = 4, the subgraph looks like this:

Graphic03.png



Question: Is there a way to dynamically adjust the height of this subgraph in run-time to minimize the unused part at the bottom when Integer is less than 20?

Regards,
/Ron
The administrator has disabled public write access.

Looking for a graphics trick... 4 months 3 weeks ago #10655

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2799
  • Karma: 0
Hi Ron,

No, there is no function to change the size.

There is though a function used for Aggregates where there are entirely different graphs for different configurations. These objects contains an attribute named GraphConfiguration of type pwr_tEnum. If the value is 0 the ordinary class graph esh_grp.pwg is used. If the value is 1, esh_grp1.pwg is opened, if 2 esh_grp2.pwg is opened etc. So by drawing 20 different graphs with different size you can actually achieve this.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: AutoMate

Looking for a graphics trick... 4 months 2 weeks ago #10673

  • AutoMate
  • AutoMate's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 121
  • Karma: 0
Hi Claes,

Thanks for suggesting a work-around. I will explore your solution in detail.

/Ron
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 2.187 seconds