02-03-2008, 06:39 AM
I want to put some buttons with pictures in a exe dialog file. Is it correct that the only way to do this is with a DLL and if so how do I make a DLL file?
Pictures in EXE dialog
|
02-03-2008, 06:39 AM
I want to put some buttons with pictures in a exe dialog file. Is it correct that the only way to do this is with a DLL and if so how do I make a DLL file?
02-03-2008, 07:38 AM
http://www.quickmacros.com/help/index.ph...KEEXE.html
Resources Resources are files and other data added to exe file. Can contain bitmaps, icons, cursors, dialogs, menus, accelerators, strings, version info, binary data (e.g. files), etc. If you use external files in macros/functions that are added to exe, you should either distribute them together with the exe or add them to exe as resources. For example, if you use scan, you can add bitmap files to resources so that you would not have to distribute them together with the exe file as separate files. If "Auto add image files" is checked, QM automatically adds image files to exe. QM searches the source code of all macros/functions that are added to exe (except as text) for strings in form ":resourceid file.ico" or ":resourceid file.bmp", and adds these files as resources. Resource id (resourceid) must be a number between 1 and 0x7fff. Icon resource id should be > 133. This syntax (":resourceid file") is supported by scan, ShowDialog, GetFileIcon, LoadPictureFile. For example, to automatically add bitmap file used with scan, use code like scan ":10 file.bmp", and check "Auto add image files". QM 2.2.0. Any files can be added to exe using #exe addfile. They are added as resources of type RT_RCDATA. To add more resources, you need a resource editor. QM does not have its own resource editor, so you would have to find and download one. Using the resource editor, add all that you need and save to a file with res extension. Specify the file in the Make Exe dialog. When creating exe, QM will add resources from the file to the exe. Whenever you edit image files or res file, you should make exe again, otherwise resources will not be updated in exe. QM functions that support resources: ShowDialog (title bar icon, icons, bitmaps, menu, accelerators), DT_CreateMenu (menu, accelerators), scan (bitmap, icon), GetFileIcon (icon), LoadPictureFile (bitmap). With these functions, a resource can be specified as string in format ":resourceid" (e.g. ":300").
02-05-2008, 04:56 AM
Dialog: Bitmap or Icon on Button
I had posted this and it is the only EXE that I have found that will show picture buttons in a exe dialog. This bring me back to my question. I have reread your post but it does not answer my question. If you have a way of puttting a picture button in a EXE dialog without a DLL then please give me an example otherwise can you please tell me how to make a DLL I am not trying to be smart but I have spent months on this and can not seem to get it. Thank You Kenneth
02-05-2008, 09:52 AM
In Make Exe dialog check Auto add image...
In macro, before image paths insert :id , where id is some number. The number must be different for each image file. ;/exe Note that buttons can have image and text only on Vista. On XP they can have only text or only image.
02-05-2008, 07:44 PM
Thank You Gintaras; I have try-ed this and can get most to work I am sure that I will get the rest to work as I learn.
AGAIN Thank You Kenneth
02-05-2008, 09:31 PM
OK got all XP to work. Thank You
02-06-2008, 12:12 AM
One question. About this (SetWindowTheme id(5 hDlg) L"" L"") Should I use it here? I can see no difference if I use it or do not use it.
02-06-2008, 12:35 AM
No difference. Or try to enable and see what happens.
|
« Next Oldest | Next Newest »
|