Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Pop Up Menu ( NO DLLs required )

Author
Message
XpMe
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: Dallas Texas
Posted: 4th Sep 2004 02:49
This is a Pop Up Menu (no sub menus) contained in 1 function.
NO DLLs required.
Call to set the varible values.
Call to build the images.
Call to turn on.
Call to show and get input.
Right mouse click if not visible to make visible.
When visible...
Move mouse inside image to hilight text.
Left mouse click on text to select then hide image.
Left mouse click outside image to hide it.
Displays..
Text(hilighted if mouse is over)
Check Mark(if you have made a selection with the mouse)
Small Image(if you have included image names to load)
Values returned on selections appear at top of screen
and updated on mouse click selections.
Also made simple random boxes appear below popup to
show that the popup can be displayed and return values
while other things go on. Frames per second also displayed.
I suggest you put this function in it's own file
since it is about 130 lines long.
Sub menus not included. Sub menus would make for even more
code. I suggest to make another popup and have it appear
when the selection for a submenu is made.
It uses 6 colors for the menu and menu text.
Built in control to keep popup inside the screen.
IF the font size ( Pop.Siz = 12 ) number is a larger number
then you will get a larger popup menu.
IF you make it too large then remember that you are using images
and need to avoid making things too large or you will get an off
screen get error. This includes Pop.Max being set too big also.
Tested several times(at 640x 480y rez.) before posting. ...XpMe

Login to post a reply

Server time is: 2024-11-23 19:37:23
Your offset time is: 2024-11-23 19:37:23