Sign in to follow this  
Followers 0
opey

GUICtrlCreatePic

21 posts in this topic

Is there a way I can use this command to create a picture from a .dll file. I know that I can use GUICtrlSetImage() to set an image from a .dll file but is there a way to do it with GUICtrlCreatePic?

Please help.

Thanks.

Share this post


Link to post
Share on other sites



Is there a way I can use this command to create a picture from a .dll file. I know that I can use GUICtrlSetImage() to set an image from a .dll file but is there a way to do it with GUICtrlCreatePic?

Please help.

Thanks.

you have to use GuiCtrlSetImage.

and it has to be to a control. for example a button

Share this post


Link to post
Share on other sites

That looks sloppy. And for my picture the button would have to be really big. There's no way?

Share this post


Link to post
Share on other sites

That looks sloppy. And for my picture the button would have to be really big. There's no way?

you could try creating a small button with a image larger than the button, so the button part is kind of hidden.

Share this post


Link to post
Share on other sites

Thats exactly what I did and the image is hidden, opposite of the button being hidden.

Share this post


Link to post
Share on other sites

Thats exactly what I did and the image is hidden, opposite of the button being hidden.

show some code of how you have it.

maybe your doing it wrong :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

A pic is also a control. And as far as I recall buttons can only use bitmaps and icons. To flatten a button just use $BS_FLAT as the style.

$pic = GUICtrlCreatePic("", 10, 10, 50,100)

GUICtrlSetImage($Pic,$Dll......)

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

A pic is also a control. And as far as I recall buttons can only use bitmaps and icons. To flatten a button just use $BS_FLAT as the style.

$pic = GUICtrlCreatePic("", 10, 10, 50,100)

GUICtrlSetImage($Pic,$Dll......)

I did this:

$AddBuddyOKbutton = GUICtrlCreatePic("", 128, 64, 16, 16)

GUICtrlSetImage($AddBuddyOKbutton, "resources.dll", 1)

and the picture isn't showing up...

Share this post


Link to post
Share on other sites

Post the DLL.

Share this post


Link to post
Share on other sites

For what purpose? The .dll is fine, it works fine with setting an image on a button.

The only problem is GUICtrlCreatePic

Share this post


Link to post
Share on other sites

Nobody can test it without the DLL, and nobody can fix the problem.

Share this post


Link to post
Share on other sites

If you really need a .dll then use shell32.dll

Share this post


Link to post
Share on other sites

Here's the .dll like you requested.

rc.dll

Share this post


Link to post
Share on other sites

Haha. I thought of this from the beginning, but never mentioned it because I thought it was stupid. Just tested and proved it worked.

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 500, 500)
$AddBuddyOKbutton = GUICtrlCreateIcon("rc.dll", -1, 10, 10, 16, 16)


GUISetState()
Sleep(2000)

Share this post


Link to post
Share on other sites

Haha. I thought of this from the beginning, but never mentioned it because I thought it was stupid. Just tested and proved it worked.

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 500, 500)
$AddBuddyOKbutton = GUICtrlCreateIcon("rc.dll", -1, 10, 10, 16, 16)


GUISetState()
Sleep(2000)
very interesting.

:)

Share this post


Link to post
Share on other sites

Thank you.

Share this post


Link to post
Share on other sites

woot i got 200 posts.

now it says i am spammer :)

Share this post


Link to post
Share on other sites

what a bitch. ever heard of not spamming peoples posts just to increase your count. childish.

Share this post


Link to post
Share on other sites

what a bitch. ever heard of not spamming peoples posts just to increase your count. childish.

ooh aren't we mad.

:)

i love when kids cry like this. just shows us how many whiney fucks we have browsing the internet.

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

nigga fuck you. if your dick wasn't so small you'd have enough balls to get up and do something about it cyber bitch.

Edited by big_daddy

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0