Jump to content

Recommended Posts

Posted

i have this

$compileSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($compileSmall, @AppDataDir & "\selfburner\resource.dll", 0)
$exitSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($exitSmall, @AppDataDir & "\selfburner\resource.dll", 1)
$aboutSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($aboutSmall, @AppDataDir & "\selfburner\resource.dll", 2)
$okSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($okSmall, @AppDataDir & "\selfburner\resource.dll", 3)
$optionsSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($optionsSmall, @AppDataDir & "\selfburner\resource.dll", 4)
$openSmall = _GUIImageList_Create(16, 16, 5, 5, 6)
_GUIImageList_AddIcon($openSmall, @AppDataDir & "\selfburner\resource.dll", 5)

;then the gui..

_GUICtrlButton_SetImageList($Button1, $exitSmall)
_GUICtrlButton_SetImageList($Button2, $optionsSmall)
_GUICtrlButton_SetImageList($Button3, $aboutSmall)
_GUICtrlButton_SetImageList($Button4, $openSmall)
_GUICtrlButton_SetImageList($Button5, $openSmall)
_GUICtrlButton_SetImageList($Button6, $compileSmall)

and it works great on XP, but it throws a error on the second icon...

any ideas?

Damian666

and proud of it!!!
Posted

hmm, then thats it...

anyway thanx for replying gary.

i have to come up with somethnig else then.

to bad, it looked cool :D

oh well...

Damian666

and proud of it!!!
Posted

hmm, then thats it...

anyway thanx for replying gary.

i have to come up with somethnig else then.

to bad, it looked cool :D

oh well...

Damian666

If I get time I'll look into maybe replacing the extract with LoadIcon and see if that works.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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