05-03-2017 06:54 AM
Hi,
I am trying to configure browse for "gif" files button in one of column of the 2D table. I had found something called extended table. Can someone explain me how to configure each row with the browse button.
Regards,
X. Ignatius
05-03-2017 07:21 AM - edited 05-03-2017 07:22 AM
Hi,
You can use the EventCellClick Event to assign custom action to each button like this:
Sub XTable1_EventCellClick(ByRef This, Row, Col) 'Event-Handler select case This.Columns(This.ActiveCellCol).ObjectType case "Button" 'put custom action for each button here select case Row case 1 'action for button 1 case 2 'action for button 2 case else 'action for every other button end select case else call MsgBox("no button was pressed here") end select End Sub
Regards
05-03-2017 11:06 AM
Hi Igni,
Your screenshot shows that you are configuring 2D Tables in the SUDialog Editor. There are two different types of tables in SUDialogs, the standard table and the "XTable". Only the "XTable" can have non-text content in its table cells. You can configure a given column of the XTable to be of type "Button", and you can define the behavior of each button based on the callback code that handles any actions in the XTable.
Brad Turpin
DIAdem Product Support Engineer
National Instruments