Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Dynamically Create a Box with more than 16 buttons
;INI file that list applications that need to be associated with a button menuini = "C:\menu.ini" appz = iniitemizepvt ("Applications", menuini) headings = iniitemizepvt ("", menuini) num_of_appz = itemcount (appz, @tab) space_between = 75 ; amount of space to add between each button Boxesup ("75, 25, 900, 950", @normal) BoxDrawText (1, "50, 30, 250, 50", "Application", @false, 1) for appnum = 0 to num_of_appz-1 box = (appnum/10)+2 boxbutton = (appnum mod 10) +1 if boxbutton == 1 boxX = ((box-2)*270) + 10 boxX2=BoxX+280 Boxnew (box, "%boxX%, 100,%BoxX2%,850", 1) ux = 0 lx = 0 uy = 800 ly = 68 endif cords = strcat (ux, ",", lx, ",", uy, ",", ly) app%appnum% = itemextract (appnum+1, appz, @tab) BoxButtonDraw (box, boxbutton, app%appnum%, cords) lx = lx + space_between ly = ly + space_between next appnum BoxButtonwait () for buttons = 0 to num_of_appz-1 box = (buttons/10)+2 boxbutton = (buttons mod 10) +1 if BoxButtonStat (box,boxbutton) then pbutton = buttons next buttons Display (1, "Button test", app%pbutton%)
Article ID: W15111File Created: 2002:09:05:13:49:44Last Updated: 2002:09:05:13:49:44