How can I convert Borland buttons in rc-files to ButtonBMP

How can I convert Borland buttons in rc-files to ButtonBMP

Postby Otto » Mon Dec 10, 2007 12:52 pm

CONTROL "Schalter", 1, "BorBtn", 1 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125, 82, 32, 20


How can I convert Borland buttons in rc-files to ButtonBMP equivalent to if it would have been designed from source like for example:

@ 100, 200 BUTTONBMP oBtnBmp OF oDlg ACTION msginfo(1) ;
BITMAP ".\bitmaps\garrow.bmp" PROMPT "Test" TEXTRIGHT SIZE 80, 25 PIXEL;
MESSAGE "From source code"
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Mon Dec 10, 2007 1:17 pm

Otto,

Save the related bitmap as an external BMP file and then replace "BorBtn" with "Button" in the resource file
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Mon Dec 10, 2007 2:12 pm

Thank you Antonio,
what I don’t know is how tell the control which bitmap to use.

CONTROL "Schalter", 1, "Button", 1 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125, 82, 32, 20

Regards,
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Mon Dec 10, 2007 2:52 pm

Otto,

> how tell the control which bitmap to use

You specify it from the PRG, not from the RC

Please review samples\TestBuBm.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Otto » Mon Dec 10, 2007 3:34 pm

Thank you.
If you have some extratime have a look at: www.fwcodesnips.com
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi, Willi Quintana and 94 guests