

The prg
#include "fivewin.ch"
procedure main()
local oDlg, oBtn
DEFINE DIALOG oDlg RESOURCE "MENU"
redefine btnbmp obtn resource "po","po","po","po_over" id 104 of oDlg noborder action oDlg:end()
ACTIVATE DIALOG oDlg ON INIT (oBtn:nWidth := 400, oBtn:nHeight := 31) CENTER
returnRc
po bitmap loadoncall moveable discardable "po.bmp"
po_over bitmap loadoncall moveable discardable "po_over.bmp"
MENU DIALOG 0, 0, 298, 94
STYLE DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION ""
FONT 10, "System"
{
CONTROL "", 104, "button", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 24, 48, 136, 14
}The images can be downloaded from https://dl.dropboxusercontent.com/u/55198640/HUABTN.ZIP
Is there also a way to have the button automatically taking up the size of the image?
BCC5.82/BCC7.3
xHarbour/Harbour