CodeBase - PopUp Menu

Return to the CodeBase listing

Category: Input

Version: 1.0

0
0

Information

Uploaded: 3rd Sep 2004 16:20

Modified: 1st Jan 1970 01:00

Author:  XpMe

Summary

PopUp Menu ( NO DLLs required )

Full Description

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

Comments

No comments yet.