star2 Posted January 13, 2008 Share Posted January 13, 2008 (edited) I have the following Dll fileimages.dll file contains: image-1 ID 1 image-2 ID 2 image-3 ID 3how can we do something like this:$button1 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button1 , "images.dll",1) $button2 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",2) $button3 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",3) GUISetState ()let's say the following form( controlID, filename [, image or icon name [, icontype]] )EDIT: maybe this should be in the request forum Edited January 13, 2008 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
martin Posted January 13, 2008 Share Posted January 13, 2008 I have the following Dll file images.dll file contains: image-1 ID 1 image-2 ID 2 image-3 ID 3 how can we do something like this: $button1 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button1 , "images.dll",1) $button2 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",2) $button3 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",3) GUISetState () let's say the following form ( controlID, filename [, image or icon name [, icontype]] ) EDIT: maybe this should be in the request forum I don't understand what the question is. What is wrong with the first block of code? Or are you saying it doesn't work? Or do you want to know how to have a function with parameters like the line in the second code block to replace the GuiCtrlSetImage lines in the first block? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
star2 Posted January 13, 2008 Author Share Posted January 13, 2008 (edited) did u try something like this? I want the button witch the style was $bs_bitmap to use the image from the file image.dll witch contains some images each one has a unique ID $button3 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",3) EDIT: note, I'm not working with icons I'm working iwth images Edited January 13, 2008 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
martin Posted January 13, 2008 Share Posted January 13, 2008 (edited) did u try something like this? I want the button witch the style was $bs_bitmap to use the image from the file image.dll witch contains some images each one has a unique ID $button3 = GUICtrlCreateButton ("", 20 ,20 ,200,200,$bs_bitmap) GUICtrlSetImage ($button , "images.dll",3) EDIT: note, I'm not working with icons I'm working iwth imagesNo, I didn't try anything I just wasn't clear what you were asking. If you have got the images then I would think Zedna's Resource solution would do what you want. EDIT:Spelling Edited January 13, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
star2 Posted January 13, 2008 Author Share Posted January 13, 2008 No, I didn't try anything I just wasn't clear what you were asking. If you have got the images then I would think Zedan's Resource solution would do what you want.why does it have to be like this?why not add this to the guictrlsetimage ? [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] 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