This little gem introduces an RSX called menu, which is used to display a pop-up menu in any mode, anywhere you like, to return a chosen option. The format is-[cod]|MENU,x, y,item1$, item2$... item9$,:p%Where x,y=The physical screen coordinates of the top left-hand corner of the menu. item1$-item9$=Actual menu options (Max. 9) : p%=Retum chosen option. Once the item is selected, the menu clears and the screen is as it was. Here's an example: 200 x=10:y=12:p%=10 210 iteml$= “View File”:item2$= “Save File”:item3$- “Load File”: item4$ = “Quit” 220: MENU,x,y,item l$,item 2$,item 3$,item4$,@p% 230 ON p% gosub 1000,2000,3000, 4000This would display the menu:1-View File 2-Save File 3-Load File 4-Quit Try it for yourself and have fun. ACU
| ★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser... |
|
|