BlitzUI checked menu icons?

Community Forums/Showcase/BlitzUI checked menu icons?

Tranz(Posted 2003) [#1]
I've tried using an image file name and a loaded image handle for a checked menu item and only get the standard 'checkbox/radiobox' image to display.

However, the custom loaded image works for regular menu items.

Is there a way to use a custom graphic for checked menu items?


Odds On(Posted 2003) [#2]
It was designed that way... it doesn't make sense to allow a checked menu item to have an icon.


Tranz(Posted 2003) [#3]
It makes sense if you want to use a custom graphic instead of the default checkbox, lol!

But thanks for the reponse, BlitzUI is a great tool and is much appreciated.


Odds On(Posted 2003) [#4]
That's actually a good idea Tranz, I never thought of that :)

If you want to add that feature it's fairly simple to do:

1. Open blitzui.bb
2. Use Edit > Find to find the following line (There is only one occurance of this line):

If gad\Icon <> 0 And gad\AllowCheck = False
3. Replace it with:

If gad\Icon <> 0 And (gad\AllowCheck = False or (gad\AllowCheck = true and gad\Checked = true))
4. Look a few lines down and replace:

If gad\AllowCheck = True
with
If gad\AllowCheck = True and gad\Icon = 0
Let me know how it goes.


Tranz(Posted 2003) [#5]
Yes, that's got it!
Works perfectly now.

Thanks much.

I just wanted to use an actual check mark graphic that I made instead of the little square.

It's an original graphic, but still fits in with the rest of the GUI.

Here's a small pic:



(GEOCITES doesn't allow linking, but you should be able to cut & paste the URL into a browser.)