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

TOPIC: Popup Menu

Popup Menu 12 years 6 months ago #2814

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi all

Been Scratching my head the last 24 hours trying to understand how to make a popupmenu that can be opened from a graph :S

Is this so hard to understand or am i missing a point.?

Do i need to make a class with a classdef object and as chill to that a rtmenu?

Seems to me that it should be very easy but have no clue where to start and stop.

have tried to make a class with a rtmenu and a menu button but every time i try to connect it in the GE everything crashes and im back to the directory configurator :S

Could someone give me a hint.

Think Proview might be a complete way of thinking compared to all other software i have used in the past.

I have got some of the steps in place (basic) but it cracks when i come to the classes and the c-coding area in the manual :(
The administrator has disabled public write access.

Re:Popup Menu 12 years 6 months ago #2817

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Rasmus,

The first thing you should to is set MB3Action in Graph Attributes to PopupMenu. The default action is close graph.

The idea behind the PopupMenu action in Ge is that you connect the action to a specific object and get the popup menu for this object. This will be the same popup menu that you have in rt_xtt for this object.

For the moment it is not possible to add any user defined elements to the popup menu. You can add elements with the RtMenu object, but the problem is that you can't add a function to call for the element, as this has to be built with the rt_xtt executabe (unless you build Proview from sources). But you still have the standard method for opening the object, crossreferences, trend, history, circuit diagram, photo, help etc. Note that some of these methods uses special attributes in the object.

/Claes
The administrator has disabled public write access.

Re:Popup Menu 12 years 6 months ago #2818

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Goodmorning and thanks for your reply claes

now alot make sense.. :S

but would it be possible to open a plotgroup from a button in graph ?

still playing around with proview and i get more and more impressed
The administrator has disabled public write access.

Re:Popup Menu 12 years 6 months ago #2820

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Use a command button with the command 'open trend /name=...'.

You can also insert a plotgroup into the DefTrend attribute and open from the Trend alternativ in the popupmenu for an object.

/Claes
The administrator has disabled public write access.

Re:Popup Menu 12 years 5 months ago #2853

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi Claes.. Tried your advice without luck.. ben searching throug the documentation to see if there was some sort of example. :S


what i did was make a command button and assigned the command \"open trend /nodes-mynode-history-myplotgroup=...\"

Also I was wondering how to open a plotgroup from the web interface
The administrator has disabled public write access.

Re:Popup Menu 12 years 5 months ago #2856

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3176
  • Thank you received: 502
  • Karma: 133
Hi Rasmus,

Try 'open trend /name=Nodes-mynode-history-myplotgroup' instead.

There is no curve window implemented in the web interface yet, so I'm afraid you can't show trends and plotgroups.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.273 seconds