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()
#2
Scout,

On the program below if you place your icon in c:\temp\database.jpg this should work for you. I attached a file with my database icon. All it does is put a little icon at the top left corner of the graphics window.

JR


menuList["File"] = "Main"
menuList["Open"] = "File"
menuList["-"] = "File"
menuList["Exit"] = "File"
menuList["Help"] = "Main"
menuList["Show Help"] = "Help"
iconList["File"]="c:\temp\database.jpg"
checkList["Show Help"] = "True"
menu = LDControls.AddMenu(GraphicsWindow.Width,20,menuList,iconList,checklist)
LDShapes.BrushColour(menu,LDColours.AliceBlue)
LDShapes.PenColour(menu,"Black")


Attached Files Thumbnail(s)
   
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)