until i can get this sample & doc finished, here is a quick rundown.
First, you will need to be able to do the saytext example that is on this forum (usermessage 3 using bitbuff.h & bitbuff.cpp as well as having your own MRecipientFilter created).
now, from there, instead of sending message 3, you will send message 9.
From this point, you can find the correct ordering in the menu.cpp that is located in the cpp look for the ShowMenu function, from memory it is:
Short
Byte
*Char
short = bitfield of items the user can select (i.e. 1-9 + 0)
byte = true/false of whether this is the last send
*char = the text
for the bitfield, you will need to do the following format, then convert to short:
100 0000 0000
starting AFTER the 1, it starts in reverse order, and acts like a true false, 1 for true, 0 for false.
so
110 0000 0011 is will make it so that the user can enter 1, 2, and 0
110 0001 1111 will make it so the user can select 1,2,3,4,5 and 0
111 1111 1111 will make it so options 1-9 and 0 can be selected.
remember that you DONT have to do your text in order, as long as you know what option links.
i.e. Say you send the following menu:
775
false
Pick an Option\n1. Option 1\n2. Option 2\n3. Option 3\n \n0. Exit\n
775 = bitfield 110 000 0111 (use calculator with the scientific view if you aren't familiar with binary)
false = there are no more for this menu, so display it
the last line is the text for the menu, and will display like the following
Code:
Pick an Option
1. Option 1
2. Option 2
3. Option 3
0. Exit
options will be returned as user commands in the following format:
menuselect %d
where %d is the number they chose
hope that provides enough information for you, and i hope i remembered everything, if you have any troubles, please post your code, and im sure i can spot the issue.
I should have the full version up soon, with code samples.