Ehaviv
Computer
- Jul 2, 2003
- 1,012
Hi
The doc say:
'This callback is executed when any block (except the ones which receive keyboard entry such as Integer block) receives focus.
'This callback is executed when block which can receive keyboard entry, receives the focus.
But for enableOKButton_cb it only say:
'This callback allows the dialog to enable/disable the OK and Apply button.
But not 'This callback is executed when
Do someone know when This callback is executed ?
The doc say:
'This callback is executed when any block (except the ones which receive keyboard entry such as Integer block) receives focus.
'This callback is executed when block which can receive keyboard entry, receives the focus.
But for enableOKButton_cb it only say:
'This callback allows the dialog to enable/disable the OK and Apply button.
But not 'This callback is executed when
Do someone know when This callback is executed ?
Code:
'------------------------------------------------------------------------------
'Callback Name: focusNotify_cb
'This callback is executed when any block (except the ones which receive keyboard entry such as Integer block) receives focus.
'------------------------------------------------------------------------------
Public Sub focusNotify_cb(ByVal block As BlockStyler.UIBlock, ByVal focus As Boolean)
Try
'---- Enter your callback code here -----
'msgbox(block.ToString & " - " & focus.ToString)
Catch ex As Exception
'---- Enter your exception handling code here -----
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString)
End Try
End Sub
'------------------------------------------------------------------------------
'Callback Name: keyboardFocusNotify_cb
'This callback is executed when block which can receive keyboard entry, receives the focus.
'------------------------------------------------------------------------------
Public Sub keyboardFocusNotify_cb(ByVal block As BlockStyler.UIBlock, ByVal focus As Boolean)
Try
'---- Enter your callback code here -----
'msgbox(block.Name)
'string1.Focus
Catch ex As Exception
'---- Enter your exception handling code here -----
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString)
End Try
End Sub
'------------------------------------------------------------------------------
'Callback Name: enableOKButton_cb
'This callback allows the dialog to enable/disable the OK and Apply button.
'------------------------------------------------------------------------------
Public Function enableOKButton_cb() As Boolean
enableOKButton_cb = IsEnableOkButton
Try
'---- Enter your callback code here -----
'Return IsEnableOkButton
Catch ex As Exception
'---- Enter your exception handling code here -----
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString)
End Try
End Function