I am trying to find some terms or a starting point for a new idea I am working on. I've looked around under using a number of terms/words without luck. What is this called, where should I start looking?
Idea:
I want to make my GUI display a grid of check boxes- after a user has made a number of pre-set choises. The width and hight of the grid are variables, depending on if/else statments and math rules. So in one instance the GUI could have 4 columns and 2 rows, then next 7 columns and 5 rows, Depending on other variables and user input.
Code:
something like:
NewGUI.ahk
____________________________________
________|__1__|__2__|__3__|__4__|__5__|
Item-1 | [X] | [_] | [_] | [_] | [_] |
Item-2 | [X] | [X] | [_] | [_] | [_] |
Item-3 | [_] | [X] | [X] | [X] | [_] |
--------------------------------------------------
The User would basically select how many columns and rows they would 'need' by answering the correct lines of questions, and the checks should populate based off of user_input where needed. If they only need 2 rows, 5 columns, then that is all that should appear.
I had to change the var names and stuff for security reasons, the real GUI does not deal with cars. All of the choices and math code are not in yet, but I wanted to see if it is even possible to have a check box grid populate on a new GUI page, before wasting too muc more time. I would like to output with some boxes checked and others unchecked depending on all of the above information.
I am working with this kind of code as an example:
Code:
#SingleInstance FORCE
#UseHook
Hotkey, Pause, EarlyTerm
Gui, Show, w330 h65
Gui, Add, Button, x15 y15 w90 h30 gNewCar, New Car
Gui, Add, Button, x120 y15 w90 h30 gUsedCar, Used Car
Gui, Add, Button, x220 y15 w90 h30 gRental, Rental
return
NewCar:
Gui, Submit
Gui, 2:+resize
Gui, 2:Show, w250 h150
Gui, 2:Add, Text, x10 y10, Please select which the customer wants:
Gui, 2:Add, GroupBox, r3 x15 y35 w200, A, B or C:
Gui, 2:Add, Checkbox, xp+10 yp+15 v1, Customer wants a 4 door
Gui, 2:Add, Checkbox, v2, Customer wants a 2 door
Gui, 2:Add, Checkbox, v3, Customer wants a truck/van
Gui, 2:Add, Button, x15 y120 w40 h25 gNext, Next
return
UsedCar:
Gui, Submit
Gui, 3:Show, w330 h200
Gui, 3:Add, Text, x10 y10, TEST TEST TEST
return
Rental:
Gui, Submit
Gui, 4:show, w330 h250
Gui, 4:Add, Text, x10 y10, TSET TEST TSET
return
Next:
Gui, 5:+resize
Gui, Submit, NoHide
GuiControl, , 1, %1%
GuiControl, , 2, %2%
GuiControl, , 3, %3%
If(1=1 && 2=0 && 3=0)
{
Gui, Submit
Gui, 6:Show, w250 h150
Gui, 6:Add, Text, x10 y10, Select a Make or Model:
Gui, 6:Add, DropDownList, w150 vMake Choose1, Select Make Model:|Ford|Honda|Chevy|BMW|Other
Gui, 6:Add, Text, x10 y60, How Many Extra Tires does the cust need?`nNot Including outlet the 4 on the car:
Gui, 6:Add, Edit, VTires yp+35 w60 Limit2
}
else if(1=0 && 2=1 && 3=0)
{
Gui, Submit
Gui, 6:Show, w250 h150
Gui, 6:Add, Text, x10 y10, Select a Make or Model:
Gui, 6:Add, DropDownList, w150 vMake Choose1, Select Make Model:|Ford|Honda|Chevy|BMW|Other
Gui, 6:Add, Text, x10 y60, How Many Extra Tires does the cust need?`nNot Including outlet the 4 on the car:
Gui, 6:Add, Edit, VTires yp+35 w60 Limit2
}
else if(1=0 && 2=0 && 3=1)
{
MsgBox, else
}
else if(1=1 && 2=1 && 3=0)
{
MsgBox, else
}
else if(1=0 && 2=1 && 3=1)
{
MsgBox, else
}
else if(1=1 && 2=0 && 3=1)
{
MsgBox, else
}
else if(1=1 && 2=1 && 3=1)
{
MsgBox, else
}
else
{
MsgBox, Please select a check box
}
return
return
EarlyTerm:
ExitApp
return ;Main return
As always, i'm not asking anyone to do this for me, but I cant think of any other terms to search under that would suit this need.