Jump to content

Tabbing through controls stopped working


orange
 Share

Recommended Posts

I have a two windows GUI for a program that I wrote and just all of a sudden TAB stops cycling through the controls. It is very strange.

One of the GUIs is and _IEembedded, the other is a standard window with buttons and the like.

I have not set a hotkey for TAB (I have no hotkeys)-- so im confussed.

any ideas?

the only thing that I changed from when it worked and when it didn't was when i added the IE embed.

Is there something about the IE embed that doesn't allow you to use tab?

Link to comment
Share on other sites

the entire code is over 3500 lines with many fileinstall() and #include expresssions that I have written as well.

if you would like to see the entire compiled code it is available at:

http://schedulerpro.case.edu

you can observe the problem if you install.

I dont want to post that code, cause thats a lot.

___

EDIT: Im asking for suggestions, but if no one has encountered this before then I can post the code.

Edited by orange
Link to comment
Share on other sites

:whistle: just pull the part out that creates the problem, like the gui creation Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

ok, lets try this

#region GUI
$htmlschedule = _IEcreateembedded()
filecopy("C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\schedule_original.html","C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\schedule.html",1)
GUICreate("Scheduler Pro", @DesktopWidth,@DesktopHeight,0,0 )
$GUIActiveX = GUICtrlCreateObj($htmlschedule, 0,0,@desktopwidth,@desktopheight)
guisetstate()

_IENavigate ($htmlschedule, "C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\schedule.html")

#region autoschedule

$studentname = getname()

$gui = GUICreate("Class Scheduler Pro - " & $studentname, 400, 377, (@DesktopWidth / 2) - 150, (@DesktopHeight / 2) - 200, $WS_VISIBLE + $WS_OVERLAPPEDWINDOW)

$_trackmenu = GUICtrlCreateMenu("File")
$mapall = GUICtrlCreateMenuitem("Map All Buildings", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
guictrlsetstate($mapall,$GUI_DISABLE)

$_print = GUICtrlCreateMenuitem("Print", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
; next one creates a menu separator (line)
$_clearschedule = GUICtrlCreateMenuitem("Clear Schedule", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
$_saveitem = GUICtrlCreateMenuitem("Save", $_trackmenu)
$_loaditem = GUICtrlCreateMenuitem("Open", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
$_sendfeedback = GUICtrlCreateMenuitem("Send Feedback", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
$_upgrade = GUICtrlCreateMenuitem("Upgrade Scheduler Pro", $_trackmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
$_exititem = GUICtrlCreateMenuitem("Exit", $_trackmenu)



$solarmenu = guictrlcreatemenu("Solar")
$solar = GUICtrlCreateMenuitem("Output Schedule to Solar ", $solarmenu)
$solarlogin = GUICtrlCreateMenuitem("Log into Solar at 7:00 AM", $solarmenu)
GUICtrlCreateMenuitem("", $_trackmenu)
$installopal = GUICtrlCreateMenuitem("Install Opal Plugin for Solar", $solarmenu)


$about = guictrlcreatemenu("About")
$aboutprog = GUICtrlCreateMenuitem("About", $about)

$tab = GUICtrlCreateTab(1, 5, 398, 350, $TCS_HOTTRACK + $TCS_RIGHTJUSTIFY)
$tab_0 = GUICtrlCreateTabItem("Find Schedules")

$searchedclasses = GUICtrlCreateCombo("", 90, 40, 100, 20)
GUICtrlSetState(-1, $GUI_FOCUS)
guictrlsettip($searchedclasses,"If you have searched for classes individually,"&@crlf&" they will appear here in a list.")
GUICtrlCreateLabel("Classes Found", 10, 44)

$addclass = GUICtrlCreateButton("Add Class To Schedule Queue", 200, 40, 170, 21,$BS_DEFPUSHBUTTON )
guictrlsettip(-1,"Clicking this will add the current class to the schedule queue,"&@crlf&"to be automatically scheduled once all the classes are added.")
$deleteclass = guictrlcreatebutton("Delete Class From Queue",200,65,170,21)
guictrlsettip(-1,"Clicking this will remove the current class to the schedule queue.")
$allpossible = GUICtrlCreateButton("Find Basic Schedule", 200, 185, 170, 21)
guictrlsettip(-1,"Once you are ready with all your classes in the queue, click this,"&@crlf&"so that Scheduler Pro can find a possible schedule for you.")
$resched = GUICtrlCreateButton("Reschedule Selected Class", 200, 215, 170, 21)
guictrlsettip(-1,"Select a class from the above list to find the next available timeslot.")

$classlist = GUICtrlCreatelist("", 200,95, 170, 90,$WS_VSCROLL)

$proffessorfilter = guictrlcreatecheckbox("Use Professor Rating Filter",10,75,175,22,"", $SS_CENTER)
guictrlsettip(-1,"This will refine your schedule search by only allowing classes to be scheduled "&@crlf&"if their respective professors are rated to your liking from www.ratemyprofessor.com")
guictrlcreatelabel("Professor Ratings Importance:",10,105,175,22,$SS_CENTER)
$definebest = guictrlcreateslider(10,120,175,30)
guictrlsettip(-1,"This slider adjusts the how a professor rating is interpreted."&@crlf&"On ratemyprofessor.com there are two ratings, this slider allows you "&@crlf&"to give them the weight that you see fit.")
$abilityeaseslider = guictrlcreatelabel("",10,150,175,22,$SS_CENTER)

$crnlist = guictrlcreatelabel("Type in the class in the box above using department and number."&@crlf&@crlf&"Then select 'Add Class to Schedule Queue' to begin creating your schedule.",10,202,200,100)

$loadjones = GUICtrlCreateCombo("Load Scheduler Jones Schedule", 10, 310, 180, 21)
guictrlsettip(-1,"If you have Scheduler Jones installed this will allow you to load that schedule into Scheduler Pro.")
GUICtrlSetData(-1, loadschedule())
$loadjonesbutton = GUICtrlCreateButton("Load", 195, 310, 35, 21)

if not fileexists("c:\program files\scheduler jones\name.txt") then
    guictrlsetstate($loadjones,$GUI_DISABLE)
    guictrlsetstate($loadjonesbutton,$GUI_DISABLE)
EndIf

#endregion


;-------------------------------------------------------------------------------
#region tab1
$tab0 = GUICtrlCreateTabItem("Find Class Info")
$dept = GUICtrlCreateCombo("", 80, 40, 54, 20)
GUICtrlSetState(-1, $GUI_FOCUS)
GUICtrlSetData(-1, "ABLE|ACCT|AMST|ANTH|APMU|ARAB|ARSC|ARTH|ARTS|ASIA|ASTR|BAFI|BETH|BIOC|BIOL|BLAW|CHEM|CHIN|CHST|CIA|CLSC|COSI|DANC|DEND|DENT|EBME|ECHE|ECIV|ECON|EDMP|EDUC|EECS|EMAC|EMAE|EMBA|EMSE|ENGL|ENGR|ENTP|EPBI|EPOM|ESTD|ETHS|FRCH|FSCC|FSNA|FSSO|GEOL|GERO|GREK|GRMN|HBRW|HSMC|HSTY|IIME|ITAL|JAPN|JDST|LATN|LAWS|LHRP|MAND|MATH|MBAC|MEDII|MGMT|MIDS|MKMR|MUAP|MUAR|MUCP|MUDE|MUED|MUEN|MUGN|MUHI|MULI|MUPD|MURP|MUTH|MUHI|MUSC|NEUR|NTRN|NUND|NUNI|NUNP|NURS|OPMT|OPRE|ORBH|PHED|PHIL|PHRM|PHYS|PLCY|POSC|PSCL|QUMM|RLGN|RUSN|SASS|SOCI|SPAN|SSBT|STAT|THTR|UNIV|USNA|USSO|USSY|WLIT|WMST|", "")
$num = GUICtrlCreateInput("", 135, 40, 40, 21)
GUICtrlCreateLabel("Class Code", 10, 44)

$findCRN = GUICtrlCreateButton("Find", 180, 40, 30, 21, $BS_DEFPUSHBUTTON)

$crn = GUICtrlCreateCombo("", 80, 70, 95, 21)
GUICtrlCreateLabel("Refrence #", 10, 74)

$professorrate = GUICtrlCreateButton("Rate", 180, 99, 30, 21)

$professorinput = GUICtrlCreateInput("", 80, 99, 95, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlSetData($professorinput, "")
GUICtrlCreateLabel("Professor", 10, 103)

$buildinginput = GUICtrlCreateInput("", 80, 129, 95, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Building", 10, 132)
$findbuilding = GUICtrlCreateButton("Map", 180, 129, 30, 21)
If FileExists("C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\buildings\veale.jpg") = 0 Then InetGet("http://www.cwru.edu/pix/buildings/veale.jpg", "C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\buildings\veale.jpg")

$buildingname = String("Veale")
$buildingpic = GUICtrlCreatePic("C:\Documents and Settings\All Users\Start Menu\Programs\Scheduler Pro\buildings\veale.jpg", 230, 40, 150, 120)
$buildinglabel = GUICtrlCreateLabel($buildingname, 230, 165, 100)

$buildinginput2 = GUICtrlCreateInput("", 80, 159, 95, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Rec Building", 10, 162)

$daysinput = GUICtrlCreateInput("", 80, 188, 130, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Class Days", 10, 191)

$timesinput = GUICtrlCreateInput("", 80, 217, 170, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Class Times", 10, 220)

$Credithours = GUICtrlCreateInput("", 80, 246, 25, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Hours", 45, 249, 75, 21)
$capacity = GUICtrlCreateInput("", 185, 246, 25, 21)
;guictrlsetstate(-1,$GUI_DISABLE)
GUICtrlCreateLabel("Capacity", 140, 249, 75, 21)

$scheduleclass = GUICtrlCreateButton("Schedule This Class", 50, 290, 150, 21, $BS_DEFPUSHBUTTON)
$selectsemester = guictrlcreatecombo("",50,320,150,21)
;guictrlsetdata(-1,"Spring 2007|Fall 2006|Spring 2006|Summer 2006|Fall 2005|Summer 2005|Spring 2005|Fall 2004|Spring 2004|Fall 2003","Spring 2007")

#endregion tab1

#region tab2
$tab1 = GUICtrlCreateTabItem("Teacher Ratings")
$nameGUI = GUICtrlCreateCombo("", 100, 40, 100, 21)
$nameGUIlabel = GUICtrlCreateLabel("Prof. Last Name", 10, 44)

$ease = GUICtrlCreateProgress(60, 85, 330, 10)
GUICtrlSetData(-1, 0)
$1 = GUICtrlCreateLabel("Easiness:", 10, 82)
$2 = GUICtrlCreateLabel("Easy", 60, 95)
$3 = GUICtrlCreateLabel("Difficult", 352, 95)

$quality = GUICtrlCreateProgress(60, 135, 330, 10)
GUICtrlSetData(-1, 0)
$4 = GUICtrlCreateLabel("Ability:", 10, 132)
$5 = GUICtrlCreateLabel("Poor", 60, 145)
$6 = GUICtrlCreateLabel("Excellent", 345, 145)

$namelabel = GUICtrlCreateLabel("", 10, 170, 150)
$email = GUICtrlCreateLabel("", 10, 185, 150)
$reviews = GUICtrlCreateLabel("", 325, 170, 100)
$date = GUICtrlCreateLabel("", 325, 185, 90)
$okbutton1 = GUICtrlCreateButton("Professor Rating", 230,40, 150, 20)
$compare = GUICtrlCreateButton("Compare Professors", 20, 270, 150, 20)

$tab2controls = _ArrayCreate($nameGUI, $nameGUIlabel, $1, $2, $3, $4, $5, $6, $ease, $quality, $namelabel, $email, $reviews, $date, $okbutton1, $compare)

;-----------------Professor Rating tab hidden GUI-------------------------
$nameGUI1 = GUICtrlCreateCombo("", 100, 40, 100, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$nameGUI1label = GUICtrlCreateLabel("Professor 1:", 10, 44)
GUICtrlSetState(-1, $GUI_HIDE)

$nameGUI2 = GUICtrlCreateCombo("", 100, 70, 100, 21)
GUICtrlSetState(-1, $GUI_HIDE)
$nameGUI2label = GUICtrlCreateLabel("Professor 2:", 10, 74)
GUICtrlSetState(-1, $GUI_HIDE)

$findratings = GUICtrlCreateButton("Find Professor Ratings", 240, 51, 150, 30)
GUICtrlSetState(-1, $GUI_HIDE)

$switch = GUICtrlCreateButton("Back to Single Professor", 10, 280, 150, 30)
GUICtrlSetState(-1, $GUI_HIDE)

$_ease1 = GUICtrlCreateProgress(40, 105, 320, 10)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlSetData($_ease1, 0)
$_ease2 = GUICtrlCreateProgress(40, 125, 320, 10)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlSetData($_ease2, 0)
$_1 = GUICtrlCreateLabel("Easy", 10, 111)
GUICtrlSetState(-1, $GUI_HIDE)
$_2 = GUICtrlCreateLabel("Hard", 365, 111)
GUICtrlSetState(-1, $GUI_HIDE)

$_ability1 = GUICtrlCreateProgress(40, 165, 320, 10)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlSetData($_ease1, 0)
$_ability2 = GUICtrlCreateProgress(40, 185, 320, 10)
GUICtrlSetState(-1, $GUI_HIDE)
GUICtrlSetData($_ease2, 0)
$_3 = GUICtrlCreateLabel("Poor", 10, 171)
GUICtrlSetState(-1, $GUI_HIDE)
$_4 = GUICtrlCreateLabel("Great", 365, 171)
GUICtrlSetState(-1, $GUI_HIDE)
$_easeverdict = GUICtrlCreateLabel("", 10, 210, 250)
GUICtrlSetState(-1, $GUI_HIDE)
$_abilityverdict = GUICtrlCreateLabel("", 10,225, 250)
GUICtrlSetState(-1, $GUI_HIDE)


$tab2controls1 = _ArrayCreate($nameGUI1, $nameGUI1label, $nameGUI2, $nameGUI2label, $findratings, $_ease1, $_ease2, $_1, $_2, $_3, $_4, $_ability1, $_ability2, $switch, $_abilityverdict, $_easeverdict)
#endregion

;----------tabs 2 and 3-----------------

#region 4

#endregion
GUICtrlSetState($tab_0, $GUI_SHOW)

GUICtrlCreateTabItem("")

$summary = GUICtrlCreateGroup("My Schedule Summary:", 240, 240, 140, 110)

guictrlsetstate($searchedclasses,$GUI_FOCUS)

$total_hours = GUICtrlCreateLabel("0.0",245, 260,130, 45,$SS_CENTER)
GUICtrlSetFont(-1, 35)
GUICtrlCreateLabel("Credit Hours", 280, 310, 60, 13)
$classcount = GUICtrlCreateLabel("0 Classes", 280, 330, 60, 13)
GUICtrlCreateGroup("", -99, -99, 1, 1)
guictrlsetstate($addclass,$GUI_FOCUS)
GUISetState()
Edited by orange
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...