DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Browse button inside the 2D table

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

0 Kudos
Message 1 of 3
(2,401 Views)

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

 

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 3
(2,379 Views)

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

0 Kudos
Message 3 of 3
(2,355 Views)