formlib
Hi,
I started to use it too.
I am using context menus on my forms.
You only need to initialise the formlib object once. I do it in AppStart.
I'm not sure what the B4PObject(1) argument is. Here is a snippet of my code
flb.New1("frmMain",B4PObject(1))
contextMain.New1
contextMain.AddItem("Set Shift Date")
contextMain.AddItem("Suburbs")
contextMain.AddItem("Owners")
contextMain.AddItem("Fare Types")
contextMain.AddItem("Toll Wheres")
contextMain.AddItem("Exit")
flb.AddContextMenu("frmMain",contextMain.Value)
ctxtFares.New1
ctxtFares.AddItem("Add New")
ctxtFares.AddItem("Edit")
ctxtfares.AddItem("Delete")
ctxtFares.AddItem("Close")
ctxtFares.AddItem("Exit Application")
flb.AddContextMenu("frmFares",ctxtFares.Value)
flb is a FormLib object and contextMain & ctxtFares are ContextMenu objects
here is the _Click event for contextMain
Sub contextMain_Click
Select contextMain.SelectedText
Case "Set Shift Date"
frmChangeShiftDate.show
Case "Suburbs"
frmSuburbs.Show
Case "Owners"
frmOwners.Show
Case "Fare Types"
frmFareTypes.Show
Case "Toll Wheres"
frmTollWheres.Show
Case "Exit"
mnuExitMain_Click
End Select
End Sub
regards, Ricky