The following program overwrites the line checklist["By Index"]="True" the On.ico icon.
How should the icons be used?
menuList["File"] = "Main"
menuList["Record"] = "Main"
menuList["Sort"] = "Main"
menuList["Help"] = "Main"
menuList["New Database"] = "File"
menuList["Open Database"] = "File"
menuList["Exit"] = "File"
menuList["Add Record"] = "Record"
menuList["Find by ID"] = "Record"
menuList["Records"] = "Record"
menuList["Exact Match"] = "Records"
menuList["Partial Match"] = "Records"
menuList["By Field"] = "Sort"
menuList["By Index"] = "Sort"
menuList["Print File"]= "Sort"
menuList["Print Label"]="Sort"
menuList["About"] = "Help"
iconList["File"]= Program.Directory + "\On.ico"
iconList["New Database"]= Program.Directory + "\On.ico"
iconList["Records"] = Program.Directory + "\On.Ico"
iconList["Exact Match"] = Program.Directory + "\On.Ico"
iconList["Partial Match"] = Program.Directory + "\Off.Ico"
iconList["By Index"] = Program.Directory + "\On.Ico"
iconList["By Field"] = Program.Directory + "\Off.Ico"
iconList["About"] = Program.Directory + "\On.Ico"
checklist["By Index"]="True"
menu = LDControls.AddMenu(GraphicsWindow.Width,32,menuList,iconList,checkList)
How should the icons be used?
menuList["File"] = "Main"
menuList["Record"] = "Main"
menuList["Sort"] = "Main"
menuList["Help"] = "Main"
menuList["New Database"] = "File"
menuList["Open Database"] = "File"
menuList["Exit"] = "File"
menuList["Add Record"] = "Record"
menuList["Find by ID"] = "Record"
menuList["Records"] = "Record"
menuList["Exact Match"] = "Records"
menuList["Partial Match"] = "Records"
menuList["By Field"] = "Sort"
menuList["By Index"] = "Sort"
menuList["Print File"]= "Sort"
menuList["Print Label"]="Sort"
menuList["About"] = "Help"
iconList["File"]= Program.Directory + "\On.ico"
iconList["New Database"]= Program.Directory + "\On.ico"
iconList["Records"] = Program.Directory + "\On.Ico"
iconList["Exact Match"] = Program.Directory + "\On.Ico"
iconList["Partial Match"] = Program.Directory + "\Off.Ico"
iconList["By Index"] = Program.Directory + "\On.Ico"
iconList["By Field"] = Program.Directory + "\Off.Ico"
iconList["About"] = Program.Directory + "\On.Ico"
checklist["By Index"]="True"
menu = LDControls.AddMenu(GraphicsWindow.Width,32,menuList,iconList,checkList)