void vmenuexamplemain() { struct vmenu_structure vmaster[]={ {"-FFile ", NULL,'C',TRUE, "This function"}, {"--DDos Prompt ", dos_prompt,'1',TRUE, "Sub 1 info"}, {"--2Subroutine 2", NULL,'2',TRUE, "Sub 2 info"}, {"---1Sub121", dummyfun,'1',TRUE, "More subroutine "}, {"---2Sub122", NULL,'2',TRUE, "More subroutine......."}, {"----1Sub1221", dummyfun,'1',TRUE, "info 1221"}, {"----2Sub1222", NULL,'2',TRUE, "info 1222"}, {"-----1Sub12221", dummyfun,'1',TRUE, "info 12221"}, {"-----2Sub12222", dummyfun,'2',TRUE, "info 12222"}, {"-EEdit", NULL, 'a',TRUE, "infotech 2"}, {"--1Sub21", NULL,'S',TRUE, "info 21"}, {"---1Sub121", dummyfun,'S',TRUE, "info 22"}, {"---2Sub122", NULL,'S',TRUE, "Must try this one, more subs!!"}, {"----1Sub1221", dummyfun,'S',TRUE, "info"}, {"----2Sub1222", NULL,'S',TRUE, "info"}, {"-----1Sub1221", dummyfun,'S',TRUE, "info"}, {"-----2Sub1222", dummyfun,'S',TRUE, "info"}, {"--2Sub22", dummyfun,'S',TRUE, "info 123"}, {"--3Sub23", dummyfun,'S',FALSE, "info"}, {"--4Sub24", dummyfun,'S',TRUE, "info 123"}, {"--5Sub25", dummyfun,'S',TRUE, "info"}, {"--6Sub26", dummyfun,'S',TRUE, "info 123"}, {"-RRun ", NULL,'3',TRUE, "Main Info 3"}, {"--1Sub31", dummyfun,'S',TRUE, "info"}, {"--2Sub32", dummyfun,'S',FALSE, "info"}, {"--3Sub33", dummy,'S',TRUE, "info"}, {"--4Sub34", NULL,'S',TRUE, "info"}, {"---1Sub341", dummyfun,'S',TRUE, "You GOT ME!!!!"}, {"---2Sub342", dummyfun,'S',TRUE, "Try this!!"}, {"---3Sub343", dummyfun,'S',TRUE, "Hullo World!!!"}, {"--5Sub35 ", dummyfun,'S',TRUE, "info"}, {"--BBar", dummyfun,'S',FALSE, "info"}, {"--7Sub37", dummyfun,'S',TRUE, "info"}, {"-CCompile", dummyfun,'S',TRUE, "info"}, {"-PProject",dummyfun,'S',TRUE, "info"}, {"-OOption", dummyfun,'S',TRUE, "info"}, {"-DDebug", dummyfun,'S',TRUE, "info"}, {"-BBar", dummyfun,'S',FALSE, "info"}, {"-HHelp", dummyfun,'S',TRUE, "info"}, {"",NULL,1,TRUE,""} }; int return_code; init_qwrite(); return_code=v_menu(vmaster, set_color(WHITE,BLUE), set_color(YELLOW,RED), 20, 10); printf("return code %d",return_code); }