Jump to content

Recommended Posts

Posted

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!!!
Posted

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

Posted (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 by damian666
and proud of it!!!
Posted

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?

Try it, you may want to adjust the 120 figure for 2K

Posted

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!!!
Posted

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!!!

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
×
×
  • Create New...