News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

create menu

Started by imadhx30, March 06, 2014, 07:13:09 AM

Previous topic - Next topic

imadhx30

data the steps to create a menu

Example
                                               S E L E C T I O N   M E N U

                        1. Exercice 1

                        2. Exercice 2

                        3.Exercice 3

                        Enter the number for your selection: _

dedndave

you probably want to start with a clear screen routine

after that, it's a matter of positioning the console cursor and displaying a string (several times)
you might want a routine that does both, then call it with the Xpos, Ypos, and StringPointer

finally, you want a routine that waits for a keyboard response and branches based on user input

what parts of that are you having trouble with ?

imadhx30

#2
I am the first time created menu
but not included!!

dedndave


imadhx30


imadhx30

how small between a large menu
for Example :

E L E C T I O N   M E N U

                        1. Exercice 1

                        2. Exercice 2

                        3.Exercice 3

                        Enter the number for your selection: 1

---------------------------------------------------------------------------------------------------------------
SI enter the number 1
-----------------------------------------------------------------------------------------------------------------
E L E C T I O N   M E N U

                        1. question 1

                        2. question2

                        3.question3
                       
                        4.question4

                        5.return Menu Pricipal

                        Enter the number for your selection:



dedndave

if you clear the screen when they make a selection, it might look nicer
double-spaced, you can get 13 lines

imadhx30


dedndave

when an item is selected, call SetConColors
it sets the colors, but it also clears the screen - just set the same colors
if you look at that program, that's what i did