opey Posted March 9, 2008 Share Posted March 9, 2008 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. Link to comment Share on other sites More sharing options...
Tomb Posted March 9, 2008 Share Posted March 9, 2008 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 Link to comment Share on other sites More sharing options...
opey Posted March 9, 2008 Author Share Posted March 9, 2008 That looks sloppy. And for my picture the button would have to be really big. There's no way? Link to comment Share on other sites More sharing options...
Tomb Posted March 9, 2008 Share Posted March 9, 2008 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. Link to comment Share on other sites More sharing options...
opey Posted March 9, 2008 Author Share Posted March 9, 2008 Thats exactly what I did and the image is hidden, opposite of the button being hidden. Link to comment Share on other sites More sharing options...
Tomb Posted March 9, 2008 Share Posted March 9, 2008 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 Link to comment Share on other sites More sharing options...
GEOSoft Posted March 9, 2008 Share Posted March 9, 2008 (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 March 9, 2008 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!" Link to comment Share on other sites More sharing options...
opey Posted March 9, 2008 Author Share Posted March 9, 2008 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... Link to comment Share on other sites More sharing options...
NELyon Posted March 9, 2008 Share Posted March 9, 2008 Post the DLL. Link to comment Share on other sites More sharing options...
opey Posted March 9, 2008 Author Share Posted March 9, 2008 For what purpose? The .dll is fine, it works fine with setting an image on a button. The only problem is GUICtrlCreatePic Link to comment Share on other sites More sharing options...
NELyon Posted March 9, 2008 Share Posted March 9, 2008 Nobody can test it without the DLL, and nobody can fix the problem. Link to comment Share on other sites More sharing options...
opey Posted March 9, 2008 Author Share Posted March 9, 2008 If you really need a .dll then use shell32.dll Link to comment Share on other sites More sharing options...
opey Posted March 10, 2008 Author Share Posted March 10, 2008 Here's the .dll like you requested. rc.dll Link to comment Share on other sites More sharing options...
NELyon Posted March 10, 2008 Share Posted March 10, 2008 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) Link to comment Share on other sites More sharing options...
Tomb Posted March 10, 2008 Share Posted March 10, 2008 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. Link to comment Share on other sites More sharing options...
opey Posted March 10, 2008 Author Share Posted March 10, 2008 Thank you. Link to comment Share on other sites More sharing options...
Tomb Posted March 10, 2008 Share Posted March 10, 2008 woot i got 200 posts. now it says i am spammer Link to comment Share on other sites More sharing options...
opey Posted March 10, 2008 Author Share Posted March 10, 2008 what a bitch. ever heard of not spamming peoples posts just to increase your count. childish. Link to comment Share on other sites More sharing options...
Tomb Posted March 10, 2008 Share Posted March 10, 2008 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. Link to comment Share on other sites More sharing options...
opey Posted March 10, 2008 Author Share Posted March 10, 2008 (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 March 11, 2008 by big_daddy Link to comment Share on other sites More sharing options...
Recommended Posts