In a PopupMenu (PM), is it possibe to “grey” (inactivate / set unavailable) Row(s) ?
Day you have 10 Tows and only some of them have the word Date in them: only these will be actives, all other have to be rejected.
I populate the PM in Window Open Event.
OK, I can make the rejection in the Change event like:
[code] // PMs Change Event
If InStr(Me.Text,“Date”) = 0 Then
// Do nothing if the Date word does not exists in the selected Row Text
// If you want to follow the IDE (bad) Example, add a beep here)
'Beep // No, No More Beep(s) !!!
Else
// Set some code if the Selected Row Text holds the string Date
// a. Set the target Column number
mListBox.gDateCol = Me.ListIndex
// b. Fill the User Report TextField
TF_Name_Column.Text = mListBox.gLB.Heading(mListBox.gDateCol)
End If[/code]
I really prefer to have a way to do not let the user choose a wrong entry in the PM.
Someone ?