We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How should icons be used in LDControls.AddMenu()
#3
JR,
I also linked the database icon to the main menu "Help" and "Show Help".
I see the following differences in "Show Help" compared to the main menu line.
The icon is displayed larger and can be displayed or suppressed via Checklist.
Apparently the icon collides with the checklist checkmark here.
I can think of two uses of icons in menus:
1.) The complete entry is displayed as a bitmap like in mystical games.
2.) The icon is assigned to the text as additional information like in selection lists in Word.
I assume that the second variant should be implemented here, but a separate space should then be reserved for the checklist tick.

Scout

menuList["File"] = "Main"
menuList["Open"] = "File"
menuList["-"] = "File"
menuList["Exit"] = "File"
menuList["Help"] = "Main"
menuList["Show Help"] = "Help"
iconList["File"]= Program.Directory + "\database.jpg"
iconList["Help"]= Program.Directory + "\database.jpg"
iconList["Show Help"]= Program.Directory + "\database.jpg"
checkList["Show Help"] = "True"
'checkList["Show Help"] = "False"
menu = LDControls.AddMenu(GraphicsWindow.Width,20,menuList,iconList,checklist)
LDShapes.BrushColour(menu,LDColours.AliceBlue)
LDShapes.PenColour(menu,"Black")
Reply


Messages In This Thread
RE: How should icons be used in LDControls.AddMenu() - by Scout - 12-13-2023, 08:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)