FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How can I convert Borland buttons in rc-files to ButtonBMP
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How can I convert Borland buttons in rc-files to ButtonBMP
Posted: 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"

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
How can I convert Borland buttons in rc-files to ButtonBMP
Posted: Mon Dec 10, 2007 01: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
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How can I convert Borland buttons in rc-files to ButtonBMP
Posted: Mon Dec 10, 2007 02: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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
How can I convert Borland buttons in rc-files to ButtonBMP
Posted: Mon Dec 10, 2007 02: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
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How can I convert Borland buttons in rc-files to ButtonBMP
Posted: Mon Dec 10, 2007 03:34 PM

Thank you.
If you have some extratime have a look at: www.fwcodesnips.com

Continue the discussion