Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My little menu
#16
@Unseen Machine and @Mad Axeman

John, your post swooped in front of mine. I was actually commenting on Mad's, but I tested your menu and it also picks the highlighted menu option, instead of where the mouse is pointing, when the mouse is clicked. Mine and some others like the QB64 IDE prioritize the mouse position over the highlighted selection. Of course pressing Enter should always pick the highlighted selection, but the mouse? Well, I suppose it is a matter of personal preference.

Now all Mad has to do is change to...

        If menu_mb1 = -1 Then
            ''''' menu = menu_z1 + 1
            menu = menu_my - menu_py + 1 ' This will make it select the mouse position instead of the highlighted menu item.
            Color menu_defc1, menu_defc2
            Return
        End If

However yours is graphics, and I can't apply the same text solution.

Anyway, it's a neat graphics menu! + 1. As far as the strings in UDT, like Mark mentioned, we can use variable length strings...

Type Tremendous
Pete as String
End Type
Dim me as Tremendous

Big Grin 

I won't be completely happy until we can include fixed strings and arrays in UDTs. Actually, I didn't know fixed strings were an issue, as I haven't worked with those in any of my routines with a UDT format. +1 to Mark for that heads up!

Pete
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
My little menu - by Mad Axeman - 12-29-2025, 12:00 PM
RE: My little menu - by bplus - 12-29-2025, 02:09 PM
RE: My little menu - by Mad Axeman - 12-29-2025, 02:28 PM
RE: My little menu - by bplus - 12-29-2025, 02:32 PM
RE: My little menu - by Mad Axeman - 12-29-2025, 02:51 PM
RE: My little menu - by Petr - 12-29-2025, 03:45 PM
RE: My little menu - by Mad Axeman - 12-29-2025, 04:03 PM
RE: My little menu - by bplus - 12-29-2025, 07:08 PM
RE: My little menu - by Mad Axeman - 12-29-2025, 10:13 PM
RE: My little menu - by NakedApe - 12-30-2025, 01:58 AM
RE: My little menu - by Unseen Machine - 12-30-2025, 02:37 AM
RE: My little menu - by Pete - 12-30-2025, 02:48 AM
RE: My little menu - by Unseen Machine - 12-30-2025, 03:04 AM
RE: My little menu - by Rudy M - 12-30-2025, 09:47 AM
RE: My little menu - by bplus - 12-30-2025, 03:18 PM
RE: My little menu - by Pete - 12-30-2025, 06:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Menu Demo to be Expanded Pete 29 1,696 01-31-2026, 11:08 PM
Last Post: Pete
  Hardware Popup Menu. Yes, Dragable! Pete 2 709 04-03-2025, 12:15 AM
Last Post: Pete
  Text Menu Library Project Pete 3 769 01-03-2025, 05:55 PM
Last Post: Pete
  EVMS -- Easy Versatile Menu System SMcNeill 8 1,774 11-30-2022, 06:15 AM
Last Post: SMcNeill
  a simple menu system (works) madscijr 0 655 07-28-2022, 11:07 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)