From: Laszlo T. <ave...@us...> - 2004-03-27 17:42:05
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3900/tob Modified Files: GUICG5.py MessageWindow.py Log Message: Changed IE_GUI_EDIT_FOCUSED to IE_GUI_CONTROL_FOCUSED, so the same value could be used for setting the focus to the GameControl, fixed scripts Index: MessageWindow.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob/MessageWindow.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MessageWindow.py 8 Feb 2004 11:40:01 -0000 1.1 --- MessageWindow.py 27 Mar 2004 17:30:56 -0000 1.2 *************** *** 109,112 **** --- 109,113 ---- UpdateResizeButtons() GemRB.UnhideGUI() + GemRB.SetControlStatus(TMessageWindow,TMessageTA,IE_GUI_CONTROL_FOCUSED); return *************** *** 146,149 **** --- 147,154 ---- UpdateResizeButtons() GemRB.UnhideGUI() + if Expand: + GemRB.SetControlStatus(TMessageWindow,TMessageTA,IE_GUI_CONTROL_FOCUSED); + else: + GemRB.SetControlStatus(0,0,IE_GUI_CONTROL_FOCUSED); return Index: GUICG5.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob/GUICG5.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GUICG5.py 27 Mar 2004 16:11:52 -0000 1.2 --- GUICG5.py 27 Mar 2004 17:30:56 -0000 1.3 *************** *** 26,30 **** GemRB.SetEvent(NameWindow, NameField, IE_GUI_EDIT_ON_CHANGE,"EditChange") GemRB.SetVisible(NameWindow,1) ! GemRB.SetControlStatus(NameWindow, NameField, IE_GUI_EDIT_FOCUSED) return --- 26,30 ---- GemRB.SetEvent(NameWindow, NameField, IE_GUI_EDIT_ON_CHANGE,"EditChange") GemRB.SetVisible(NameWindow,1) ! GemRB.SetControlStatus(NameWindow, NameField, IE_GUI_CONTROL_FOCUSED) return |