Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog: Bitmap or Icon on Button
#7
what is the style for showing the first icon(item) unselected ?

for some reason there is a border around the button.
it doesn't look like as the buttons on DEX_InitToolbar


Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

if(!ShowDialog("Dialog7" &Dialog7)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;4 Button 0x54038040 0x0 62 4 16 16 "icon"
;END DIALOG
;DIALOG EDITOR: "" 0x2010804 "" ""


ret
;messages
sel message
,case WM_INITDIALOG
,DT_Init(hDlg lParam)
,int ic=GetIcon("mouse.ico")
,SendMessage(id(4 hDlg) BM_SETIMAGE IMAGE_ICON ic)
,ret 1
,case WM_DESTROY
,DT_DeleteData(hDlg)
,DestroyIcon(SendMessage(id(4 hDlg) BM_GETIMAGE IMAGE_ICON 0))
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)