RBCC Posted April 11, 2006 Share Posted April 11, 2006 I am using reshack and am working on the run dialog box but can't figure out how to use my own bitmap as a background, how is this done? John Link to comment Share on other sites More sharing options...
Scubar Posted April 11, 2006 Share Posted April 11, 2006 add a bitmap resource then in the run dialog box add a bmp element and then link it to the bitmap reoource u added. Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 11, 2006 Share Posted April 11, 2006 (edited) Here is what my code looks like for The Run Box1003 DIALOGEX 0, 0, 230, 126STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_NOIDLEMSG | DS_CONTEXTHELP | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENUEXSTYLE WS_EX_STATICEDGECAPTION " RUN WHAT APP OR ITEM?"LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_USFONT 8, "MS SHELL DLG", 1, FALSE, 0{ CONTROL 27, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 183, 104, 18, 18 CONTROL 28, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 23, 104, 18, 18 CONTROL 31, -1, STATIC, SS_ICON | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 100, 104, 18, 18 CONTROL "", 12298, COMBOBOX, CBS_SIMPLE | CBS_DISABLENOSCROLL | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_VSCROLL | WS_TABSTOP, 7, 11, 214, 85 CONTROL 14350, -1, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 0, 200, 118 , 0x00000100 CONTROL "Run in separate &memory space", 12306, BUTTON, BS_AUTOCHECKBOX | WS_CHILD | WS_DISABLED | WS_TABSTOP, 36, 51, 183, 0 CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 183, 103, 19, 19 CONTROL "NO", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 23, 103, 19, 19 CONTROL "&SEEK", 12288, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, 100, 103, 19, 19 }What it looks like Edited January 4, 2007 by gunsmokingman Link to comment Share on other sites More sharing options...
RBCC Posted April 11, 2006 Author Share Posted April 11, 2006 I am trying to change the background, which line does this? John Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 11, 2006 Share Posted April 11, 2006 This is the line for the bitmapCONTROL 14350, -1, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 0, 200, 118 , 0x00000100You will have to add a bitmap in the Bitmap folder of resource hacker, this CONTROL 14350 is the bitmap name in the bitmap folder. Link to comment Share on other sites More sharing options...
RBCC Posted July 28, 2006 Author Share Posted July 28, 2006 Can I add a animated gif to my dialog box? Or do I convert it to avi? If so which program do I use?Thank you, John Link to comment Share on other sites More sharing options...
Scubar Posted July 28, 2006 Share Posted July 28, 2006 it would most likely have to be an avi , ive never tried adding an avi or animated gif so i cant be certain. Just try softpedia.com and see if you can find an animated gif to avi converter, im sure someone has made a freeware one or theres a trial basis shareware version Link to comment Share on other sites More sharing options...
ricktendo Posted July 28, 2006 Share Posted July 28, 2006 (edited) Here is how I did it with the help of WolfX2 http://www.msfn.org/board/index.php?showtopic=78804&hlNothing with animation Edited July 28, 2006 by ricktendo64 Link to comment Share on other sites More sharing options...
RBCC Posted November 6, 2006 Author Share Posted November 6, 2006 Gunsmokingman,How do I know how big the bitmap should be to "fit" into the dialog box? John Link to comment Share on other sites More sharing options...
ricktendo Posted November 6, 2006 Share Posted November 6, 2006 (edited) You can make it as big as you want, see you can always stretch the dialog box as big as you need, but 271x78 is a good sizeHeres a tuto for ya http://www.ryanvm.net/forum/viewtopic.php?...hlight=tutorial Edited November 6, 2006 by ricktendo64 Link to comment Share on other sites More sharing options...
cro-man Posted November 24, 2006 Share Posted November 24, 2006 AVI's on the dialog boxes - It worksWell, you guys asked, and now you've recieved. AVI files can be placed on the dialog boxes, all major ones focused on. Run box, Open/Save, Shutdown, Logoff, etc... I didn't take a screenshot as there's really no point, you can't see the animation, but here's how you do it:First, load up your file with the dialog of your choice, and get that dialog up and ready for hacking.Second, right click on the dialog and select "Insert new Control"For the new control, you'll want to select the last one to the right, on the second row, the "SysAnimate32" control, then, leave it as is, and hit enter.Now, take this line:CONTROL "#151", 12287, "SysAnimate32", ACS_TRANSPARENT | ACS_AUTOPLAY | WS_CHILD | WS_VISIBLE, 71, 154, 60, 60Adding the new control made a line similiar to that one above. Make sure that your new line looks like that one up there. The # sign MUST be in front of the number of your AVI file. I tested this on the run box, and used AVI #151 out of shell32, same one you find on the find dialog box. If you make your own AVI file, add it in to the file using the Add a new Resource command under the ACTION menu, then, change #151 to #whatever you call it, #10 or # 200, whatever you want.Now, the autoplay function needs to be there because you want see the animation without it. It will only animate when performing an action like opening a file from the run box, but that's so fast you just won't see it. So, make sure it's there.Also, the ID number, which in the line above is 12287, should be changed to match the series of ID #'s on your dialog box of choice. If you see 3 id #'s let's say, 100, 101, and 102, then your's should be in that same pattern, so, #103 or 104, etc... Try to keep them close together.The numbers at the end are useless to you at the moment. Those are the adjustments, representing the top, bottom, left and right side positions of the AVI file. After you insert the AVI, you must drag it to whatever position you want, and those numbers will change automaticlaly. So, remember, use my line above as an example of what WILL work, but adjust it to fit your own AVI's needs.I foud this tut on virtualplastic.netcro-man Link to comment Share on other sites More sharing options...
ricktendo Posted November 24, 2006 Share Posted November 24, 2006 COOOL! cro-man, now all wee need is a cool Run AVI animation 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