Re: lazyweb request for reusable menu code



On Jan 25, 1:26 am, Jonno Downes <jonno...@xxxxxxxxx> wrote:
So I was about 17% of the way through putting together a cruddy
routine to select a filename to run from an arbitrarily long list of
options, when I decided life was too short and there must be a heap of
better code written by much smarter people than I floating around. But
my google-ju aint strong enough to find it - could anyone point me at
something I could repurpose? I found a few bits and peices in AAL but
they all seemed tied too heavily to ProDOS.

What I'm after is something that takes as input a table of strings
(there may be anywhere between 4 and 100 strings in that table), and
that will present the strings as options from a menu of some sort, and
then return the index of the selected option. This code will be
running without any DOS behind it, so the only external code it can
call is the Apple II monitor ROM.

I don't really care how the display and navigation works (e.g. whether
it gives each option a letter which becomes the hotkey, or whether you
use the arrow keys to change which option is highlighted and hit enter
to confirm) or what, as long as I can get it working without too much
cussing :-)

Cheers

Jonno

Do you care if it is written in applesoft, requires 80-col and
mousetext?

-B
.



Relevant Pages

  • Re: Large Object Heap allocations
    ... sticking things in the large object heap. ... I just today tracked down a hard-to-find leak using the .Net Memory ... If the strings are complete you could jsut add the strings to a queue ... > Just a quick question to clarify my understanding of heap allocations: ...
    (microsoft.public.dotnet.framework.performance)
  • Re: What does GC.GetTotalMemory really tell us?
    ... >> The 136 bytes difference you see when calling Testmethod() are take by ... MemoryHog hog = new MemoryHog; ... GetTotalMemory also involves some heap allocation. ... S.G.CultureInfo, an Hastable and ArrayList some Strings, Char and Byte ...
    (microsoft.public.dotnet.framework)
  • Re: Altert boxes in MFC
    ... name of the app as the caption (AfxMessageBox takes care of this for you). ... See my MessageBox Explorer on my MVP Tips site. ... Note also the code below is rather dated because it does not include the strings inside ...
    (microsoft.public.vc.mfc)
  • Stl map and CString trouble
    ... stl std::map on the heap. ... I was originally using a char * as the key, ... I add strings to the map and this works entirely as expected. ...
    (microsoft.public.vc.language)
  • Re: I suck
    ... its case or out of sight means you've less chance of picking it up for a ... Anyway,i took the strings off,cleaned the fretboard thoroughly and then ... Basically,if you're getting disheartened then give your guitar a bit of care ... Take care of your guitar,and it will take care of you. ...
    (alt.guitar.beginner)