Drop Down Menu - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Drop Down Menu (/showthread.php?tid=393) |
Drop Down Menu - Dimster - 05-11-2022 Anyone have Drop Down Menu routine with both mouse and arrow key options? I had one back in QBasic days working with arrow keys but seems I lost it when I changed to a new computer. I know I should be devoting the time to do this myself but honestly, it would be crap. If you do, maybe drop it in the Utilities section? RE: Drop Down Menu - SMcNeill - 05-11-2022 https://staging.qb64phoenix.com/showthread.php?tid=83 -- This should do the trick for you. RE: Drop Down Menu - Dimster - 05-11-2022 Thanks Steve. It's quite the tutorial and a helluva lot more to learn than the old graphic animation in QBasic, but smokes you get 3D with Terry's RE: Drop Down Menu - Dimster - 05-12-2022 This is going back to the original code used for a Drop Down Menu. When you read Terry's tutorial it's mind boggling how far the language has come. SCREEN 12 WIDTH 80, 60 PSET (7, 7), 1 DRAW "r100 d10 l100 u10" SLEEP CLS PSET (7, 7), 1 DRAW "r100 d20 l100 u20" SLEEP 1 CLS PSET (7, 7), 1 DRAW "r100 d30 l100 u30" SLEEP 1 CLS PSET (7, 7), 1 DRAW "r100 d40 l100 u40" SLEEP 1 CLS LOCATE 2, 2 PRINT " Menu" 'VIEW (10, 10)-(300, 180), , 1 'LOCATE 1, 11: PRINT "A big graphics viewport"; VIEW SCREEN(7, 7)-(150, 40), , 2 FOR x = 1 TO 500000: NEXT CLS LOCATE 2, 2 PRINT " Menu" PRINT " P=Pres Cyc" 'LOCATE 11, 11: PRINT " A small graphics viewport"; VIEW SCREEN(7, 7)-(150, 50), , 2 SLEEP FOR x = 1 TO 500000: NEXT CLS LOCATE 2, 2 PRINT " Menu" PRINT " P=Pres Cyc" PRINT " H=Cyc History" VIEW SCREEN(7, 7)-(150, 60), , 2 'SLEEP FOR x = 1 TO 500000: NEXT CLS LOCATE 2, 2 PRINT " Menu" PRINT " P=Pres Cyc" PRINT " H=Cyc History" PRINT " Q=Cyc Quarters" VIEW SCREEN(7, 7)-(150, 70), , 2 'SLEEP FOR x = 1 TO 500000: NEXT CLS LOCATE 2, 2 PRINT " Menu" PRINT " P=Pres Cyc" PRINT " H=Cyc History" PRINT " Q=Cyc Quarters" SLEEP RE: Drop Down Menu - bplus - 05-12-2022 Here's a Quick Menu or Button set Demo: in less than <40 LOC for 2 procedures with <20 LOC demo Code: (Select All) Option _Explicit Meant to be modified to needs of application. RE: Drop Down Menu - Dimster - 05-12-2022 Thanks bplus, I just need to work out the animation for the drop down effect and I'm a winner. thanks again. I wasn't sure where to start with this. |