Posts: 262
Threads: 63
Joined: Nov 2005
I have seen this once before but can not remember where. I do know that it was in QM and was not an EXE program.
When you make a new dialog you see a little green arrow or sideways triangle next to the word Dialog. How can I change this, what I am calling, title bar icon when I make a dialog?
Posts: 473
Threads: 33
Joined: Aug 2007
Look through the Styles in the Dialog Editor, you can remove the green arrow if you want.
Taking on Quick Macros one day at a time
Posts: 262
Threads: 63
Joined: Nov 2005
I know that someone can make the dialog standup and dance however, since some Styles require highlighting or un-highlighting multiple selections it might take months to find out how to remove the green arrow or how to replace it with another Icon. I have taken another look at the Styles in the Dialog Editor and I went so far as to get the error cannot show dialog. Since there is no complete list about what the Styles can do I need to ask the above question.
Posts: 473
Threads: 33
Joined: Aug 2007
Style - WS_EX_TOOLWINDOW will remove the green arrow.
Taking on Quick Macros one day at a time
Posts: 262
Threads: 63
Joined: Nov 2005
My question is.
When you make a new dialog you see a little green arrow or sideways triangle next to the word Dialog. How can I change this, what I am calling, title bar icon when I make a dialog?
Posts: 473
Threads: 33
Joined: Aug 2007
Where you use ShowDialog if(!ShowDialog("Example" 0 0 0 0 0 0 0 0 0 0 "lightning.ico")) ret
Insert your icon for the final argument.
*NOTE: Arguments must be between 0 to 12, no more.
Taking on Quick Macros one day at a time
Posts: 262
Threads: 63
Joined: Nov 2005
I found this on the forum
Macro: Mouse_Macro
if(!ShowDialog("Mouse_Dialog" 0 0 0 0 0 0 0 0 0 "C:\mouse.ico")) ret
Dialog: Mouse_Dialog
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Mouse_Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Posts: 262
Threads: 63
Joined: Nov 2005
I guess we where thinking along the same line of thought and at the same time.
Thank You
Posts: 473
Threads: 33
Joined: Aug 2007
No problem. :wink:
Taking on Quick Macros one day at a time