| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Jan 14, 2003 10:56 pm Post subject: bitmap buttons question? |
|
|
hello all
i have a question how do you make bitmap buttons? i mean i see how you can selected what icon you want ,etc BUT when you run the code the button works but what if other user runs the code will you have to give him your bitmap file to? or is there other way you have to do this?
thanks |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Jan 14, 2003 11:20 pm Post subject: |
|
|
Yes you must include the bitmap with your software, if you registered VDS you will be given a complimentary file to download which has a resource compiler in it. This allows you to compile .txt, .bmp, .ico files inside of a .DSR file which is a resource file.
Instead of using a filename for the BITBTN use the filename.dsr|2343 where the last part 2343 (note I used 2343 here as an example) is the byte offset of the image inside of the resource file. The resource compiler will report back to you the byte offsets of all files you compile into a resource file.
You then can distribute your exe, vdsrun40.dll and the resource file to your users. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Tue Jan 14, 2003 11:43 pm Post subject: ohhhh |
|
|
| ok i see what you mean..so that is what the vdsrc.exe is for to make this resource file. |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Jan 15, 2003 1:13 am Post subject: |
|
|
Yup , open it up in the command prompt and it will give you instructions on how to use, it's really quite simple. You basically make a .RC file which is just a list of files (bmp's, txt, etc) seperated on each line and then pass this .rc file to the vdsrc. The vdsrc then compiles those files into one .DSR resource file. |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Wed Jan 15, 2003 1:19 am Post subject: ahhhhh |
|
|
yup i see what to do now
thanks |
|
| Back to top |
|
 |
|