Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Widgets in the Ge

Custom Widgets in the Ge 10 years 5 months ago #6285

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3207
  • Thank you received: 511
  • Karma: 134
The class is pushed to github and you will find in AllClasses/pwrb/AlarmTable. If you place it under an OpPlace object it will be initialized by EvList::get_alarm_tables() and filled in by EvList::fill_alarm_tables() in xtt/lib/xtt/src/xtt_evlist.cpp.

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

Custom Widgets in the Ge 10 years 5 months ago #6289

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Hello Claes thank you for your support,

I'm still confused. Don't know what to do after placing an AlarmTable under my OpPlace object and creating a table in the Ge. I mean both object need to be "connected" with each other somehow and I don't know how to do that.

Eduardo
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 5 months ago #6290

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3207
  • Thank you received: 511
  • Karma: 134
You connect each table column to an array in the AlarmTable object. For example to connect the first column to the time array set

Column1.Attribute = Nodes-MyNode-Op-SomeAlarmTable.TimeArray##Time#200
Column1.Format = %t

and to connect the second column to the event text

Column2.Attribute = Nodes-MyNode-Op-SomeAlarmTable.EventTextArray##String80#200
Column2.Format = %s

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

Custom Widgets in the Ge 10 years 5 months ago #6293

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
  • Karma: 0
Er.. The table lacks a scrollbar when needed.
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 5 months ago #6295

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3207
  • Thank you received: 511
  • Karma: 134
Set Table.VerticalScrollbar in the table properties.

/Claes
The administrator has disabled public write access.
Time to create page: 20.332 seconds