RBCC
Apr 10 2006, 08:04 PM
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
Scubar
Apr 10 2006, 09:04 PM
add a bitmap resource then in the run dialog box add a bmp element and then link it to the bitmap reoource u added.
gunsmokingman
Apr 10 2006, 09:28 PM
Here is what my code looks like for The Run Box
QUOTE
CODE
1003 DIALOGEX 0, 0, 230, 126
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_NOIDLEMSG | DS_CONTEXTHELP | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_STATICEDGE
CAPTION " RUN WHAT APP OR ITEM?"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 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
RBCC
Apr 10 2006, 11:37 PM
I am trying to change the background, which line does this? John
gunsmokingman
Apr 11 2006, 04:09 AM
This is the line for the bitmap
QUOTE
CODE
CONTROL 14350, -1, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP, 0, 0, 200, 118 , 0x00000100
You will have to add a bitmap in the Bitmap folder of resource hacker, this
CONTROL 14350 is the bitmap name in the bitmap folder.
RBCC
Jul 28 2006, 02:43 AM
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
Scubar
Jul 28 2006, 10:45 AM
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
ricktendo64
Jul 28 2006, 11:17 AM
Here is how I did it with the help of WolfX2
http://www.msfn.org/board/index.php?showtopic=78804&hlNothing with animation
RBCC
Nov 5 2006, 10:41 PM
Gunsmokingman,
How do I know how big the bitmap should be to "fit" into the dialog box?
John
ricktendo64
Nov 5 2006, 11:39 PM
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 size
Heres a tuto for ya
http://www.ryanvm.net/forum/viewtopic.php?...hlight=tutorial
cro-man
Nov 24 2006, 02:05 AM
AVI's on the dialog boxes - It works
Well, 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, 60
Adding 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.net
cro-man
ricktendo64
Nov 24 2006, 01:34 PM
COOOL! cro-man, now all wee need is a cool Run AVI animation