Hi list,
My app can open multiple files (I'm not using MDI) and I'm trying to emule
the Menu 'Window'
I mean,
- Window
- File1
- File 2
- File 3
If File 2 is shown File 2 Menu is checked, you know!!!
To do this I got this code in MyWin.Activate
Dim Parent As MenuItem
Dim Son As MenuItem
Dim i, j As integer
Parent = MenuBar.Child("mnuWindow")
j = Parent.Count - 1
For i = 0 To j
Son = Parent.Item(i)
If Son.Text = MyFile.Name Then //MyFile is the Folder Item of the File
Son.Checked = True
Else
Son.Checked = False
End If
Next
My question is: Where can I put this code to clean up the Activate event???
Thanks!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>