tayyaba_ch wrote: > --- In [email protected], Thomas Hruska <[EMAIL PROTECTED]> wrote: >> tayyaba_ch wrote: >>> hello >>> >>> i am developing menu for 20*4 char display ..i have completed > the >>> driver task...now i need good suggestions for menu structure in > c as i >>> am using lpc2368 . >>> >>> i want to design a code >>> >>> 1- no global variables.. >>> >>> 20-object based approach. >>> >>> any help will be strongly appreciated >> We probably need the following information before any suggestions > will help: >> A list of relevant APIs/function calls you have available (e.g. >> IsButtonPressed()) and what each function accepts as parameters > and what >> the function does (if not blatantly obvious). >> >> A list of all the buttons the user can press. >> >> A list of the menus you wish to provide (high-level overview). >> >> -- >> Thomas Hruska >> CubicleSoft President >> Ph: 517-803-4197 >> >> *NEW* MyTaskFocus 1.1 >> Get on task. Stay on task. >> >> http://www.CubicleSoft.com/MyTaskFocus/ > Menu have keys(0-9),enter,back,up,down > menu includes > set time > set date > etc > i just need userinterface structure ..i am done with all related to > save and display the parameters... > best regards
For the "Set Date", try something like: -------------------- Set date: Sep. 04, 2007 -------------------- (That should be a 20x4 display...hopefully I counted correctly) If you can, "highlight" each section (Month, Day, Year) when it is the currently selected selection. Use the 'back' button to move to the previous section or exit if used on the first section. 'Enter' to move to the next section. Use the 'up' and 'down' keys to change each section's value. Don't forget to validate the day of the month when a section is changed and adjust it for a proper range (e.g. there is no Feb. 31). For the day and year sections, allow the user to enter 2 or 4 digits respectively (this is a shortcut so the user is pushing the up/down buttons forever). Also, if the user pushes and holds the up or down button, use some form of "acceleration". That is, it starts out slow and then moves faster through the months/days/years. For the "Set Time", try something like: -------------------- Set time: 09:39:43 p.m. -------------------- Similar setup. Of course, you might be able to use a 24-hour clock instead of a 12-hour clock...if that sort of thing is standard where you live. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
