I’m a bit confused about the following fact:
I have a MainMenubar with an Menuitem e.g. “Details” and named it to “mDetails”. I set AutoEnable to False.
If a row in a Listbox is selected, mDetail should set to Enabled = True, else False.
[h]My Code[/h]
Sub Change()
If Me.ListIndex > -1 Then
mDetails.Enabled = True
Else
mDetails.Enabled = False
End If
End Sub
I work with Xojo Version 2014.2 and compile a Cocoa Application!