damian666 Posted September 12, 2007 Share Posted September 12, 2007 i have made a script to change wallpapers, and it works like a charm on XP. but when i trie it on 2000, my combo box doesnt see any folders , which i got it to search for.. but on XP, it works great??? any ideas? ;Read ini file $Standard = IniRead("Wallchanger.ini", "Maps", "Current", "") ;Create combo and set to current map $Combo1 = GUICtrlCreateCombo("", 213, 323, 160, 25) GUICtrlSetData(-1, $Standard) GUICtrlSetOnEvent(-1, "combo1Click") $Label3 = GUICtrlCreateLabel("Select a Wallpaper pack", 216, 352, 150, 17) ;Create combo and set to current map end ; Shows the filenames of all files in the current directory $search = FileFindFirstFile(@ScriptDir & "\Wallpaper\*.*") ; Check if the search was successful If $search = -1 Then GUICtrlSetData($Label3, "No wallpaper packs found") GUICtrlSetState($Combo1, $GUI_DISABLE) EndIf ;find map names if any... While 1 $file = FileFindNextFile($search) If @error Then ExitLoop GUICtrlSetData($Combo1, $file) WEnd ; Close the search handle FileClose($search) Any help is appriciated damian666 and proud of it!!! Link to comment Share on other sites More sharing options...
ChrisL Posted September 12, 2007 Share Posted September 12, 2007 It probably does find them, but your combo doesn't drop down right? in XP the sixe of a combo box is dynamic but on 2K it isn't Change this line $Combo1 = GUICtrlCreateCombo("", 213, 323, 160, 25) to $Combo1 = GUICtrlCreateCombo("", 213, 323, 160, 120) and see how you go. I changed the 25 drop down size to 120 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
damian666 Posted September 12, 2007 Author Share Posted September 12, 2007 (edited) Cool, thanx for the fast reply man. I didnt knew that, will try that, thanx a lot, anymore controls that have that limitation? damian666 Ps, wont this make my combobox on XP to big? Edited September 12, 2007 by damian666 and proud of it!!! Link to comment Share on other sites More sharing options...
ChrisL Posted September 12, 2007 Share Posted September 12, 2007 Cool, thanx for the fast reply man.I didnt knew that, will try that,thanx a lot, anymore controls that have that limitation?damian666Ps, wont this make my combobox on XP to big?Try it, you may want to adjust the 120 figure for 2K [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
damian666 Posted September 12, 2007 Author Share Posted September 12, 2007 so if i get this straight, there is no other way to do this? Not that its bad, but just curious. Will try tonight, i am on my work now so. But i promise to report back with the result!! damian666 thanx again, your a real live saver and proud of it!!! Link to comment Share on other sites More sharing options...
damian666 Posted September 14, 2007 Author Share Posted September 14, 2007 hi man, i promised i be back huh?! well, it is fixed. thank you, it works like a charm again. It is good to make that combobox larger on 2000. and no, it does not fuck up the size in XP. thank you damian666 and proud of it!!! Link to comment Share on other sites More sharing options...
ChrisL Posted September 14, 2007 Share Posted September 14, 2007 Good, glad it works and your welcome [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now