Computer Science Canada Widgit ID problem |
Author: | unknowngiver [ Mon May 29, 2006 9:10 pm ] | ||||||||||
Post subject: | Widgit ID problem | ||||||||||
Hey I am getting a WIDGIT ID PROBLEM when i use hte command
it opens another file [GUI] and says:
and it puts this on the PROGRAM SCREEN too:
but when i remove the GUI.DISABLE button it works fine... here is the code for what page:
and here is where i put the DISABLE thing:
|
Author: | Clayton [ Mon May 29, 2006 9:14 pm ] | ||
Post subject: | |||
what is x_register? is it a button or other GUI widget that you have declared? if not, there is nothing for the Disable proc to disable, hence the ID problem if youre not sure the syntax for GUI.Disable is as such
|
Author: | unknowngiver [ Mon May 29, 2006 9:19 pm ] | ||
Post subject: | |||
how do i find the WIDGET ID for this? i thought "x_register" is what i have to put in/ |
Author: | Clayton [ Mon May 29, 2006 9:24 pm ] |
Post subject: | |
the widget ID for that is the variable name (in your case registerButton), in other cases, if you need to disable a widget depending on what was used you can use GUI.GetEventWidgetID to determine what widget was used ![]() |
Author: | unknowngiver [ Mon May 29, 2006 9:32 pm ] | ||
Post subject: | |||
hm well i m kinda stuck here then if i put hte proces check :
before the procedure where it draws it all...then it says registerButton has not been decleared before...if i put it AFTER the procedure that draws the form..then it says that the "check_registeR" has not been declared ![]() |
Author: | Clayton [ Mon May 29, 2006 9:34 pm ] |
Post subject: | |
what exactly is it that you are trying to disable, if it is the register button then you cant disable it outside of the proc it was created in because registerButton is local to that proc, if it is one of the text fields you are trying to disable, put in the text fields respective identifier |
Author: | unknowngiver [ Mon May 29, 2006 9:45 pm ] |
Post subject: | |
hm well i m trying to disable the button after it checks 2 make sure that everything is correct |
Author: | Clayton [ Mon May 29, 2006 10:11 pm ] |
Post subject: | |
then make sure that you have your button created in the proc with your textfields |
Author: | Clayton [ Mon May 29, 2006 10:13 pm ] |
Post subject: | |
also you could create the button globally if you cant do it inside the proc |
Author: | unknowngiver [ Mon May 29, 2006 10:19 pm ] |
Post subject: | |
hm i still cant get it 2 work:( i have to have the button in a process because the main program just inteprets the procedures...and i have to disable it AFTEr running the check procedure ![]() |
Author: | Clayton [ Mon May 29, 2006 10:20 pm ] |
Post subject: | |
could you post or PM me the code so i could look it over plz? |