Post by meanoscar47 on Sept 12, 2019 18:47:05 GMT -5
I time races and sometimes need to manually edit times on the fly. If I accidentally hit that Edit Times button a second time, it will be a disaster!
I am trying to disable a button in conjunction after opening a textbox.
This is the part of the program that sets up the button "Edit Times"
topline$ = "OVERALL ORDER REGISTERED " + str$(prereg) + " RACE START TIME WAS " + Start$ + " MINUS " + tdel$ + " MINUTES "
button #1.default, " ", [firstn], LR, 170, 10
'Locations ' start upper X Y box width box height
textbox #1.txt, R3X1 * 1.001, DH * .0018, DW * .23, DH * .03
statictext #1, " Bib First Last Age Sex (Place)", R3X1 * 1.001, DH * .0320, DW * .23, DH * .03
button #1.help, "Awards",[sofar], UL, R3X2 * 1.065, DH * .0018, DW * .045, DH * .03
button #1.force, "Update",[PLACETOP], UL, R3X2 * 1.065, DH * .0320, DW * .045, DH * .03
button #1.bib, "Edit Times",[TimEdit], UL, R3X2 * 1.150, DH * .0018, DW * .065, DH * .03
open topline$ for dialog as #1
This is where clicking the button takes me but I get an error every which way I have tried to disable the button (commented out here)
[TimEdit]
'button #1.bib, "!disable"
texteditor #tendl.txt, 20, 10, 260,250
button #tendl, "OK", [ClickSave], LR, 15, 13, 40, 40
WindowWidth = 350 : WindowHeight = 300
open "Times Editor" for window as #tendl
print #tendl, "font Arial 14";
open "ClickTimes.txt" for input as #CT
print #tendl.txt, "font Arial 12";
print #tendl.txt, "!contents #CT";
wait
What am I doing wrong?
I am trying to disable a button in conjunction after opening a textbox.
This is the part of the program that sets up the button "Edit Times"
topline$ = "OVERALL ORDER REGISTERED " + str$(prereg) + " RACE START TIME WAS " + Start$ + " MINUS " + tdel$ + " MINUTES "
button #1.default, " ", [firstn], LR, 170, 10
'Locations ' start upper X Y box width box height
textbox #1.txt, R3X1 * 1.001, DH * .0018, DW * .23, DH * .03
statictext #1, " Bib First Last Age Sex (Place)", R3X1 * 1.001, DH * .0320, DW * .23, DH * .03
button #1.help, "Awards",[sofar], UL, R3X2 * 1.065, DH * .0018, DW * .045, DH * .03
button #1.force, "Update",[PLACETOP], UL, R3X2 * 1.065, DH * .0320, DW * .045, DH * .03
button #1.bib, "Edit Times",[TimEdit], UL, R3X2 * 1.150, DH * .0018, DW * .065, DH * .03
open topline$ for dialog as #1
This is where clicking the button takes me but I get an error every which way I have tried to disable the button (commented out here)
[TimEdit]
'button #1.bib, "!disable"
texteditor #tendl.txt, 20, 10, 260,250
button #tendl, "OK", [ClickSave], LR, 15, 13, 40, 40
WindowWidth = 350 : WindowHeight = 300
open "Times Editor" for window as #tendl
print #tendl, "font Arial 14";
open "ClickTimes.txt" for input as #CT
print #tendl.txt, "font Arial 12";
print #tendl.txt, "!contents #CT";
wait
What am I doing wrong?