Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title bar icon
#1
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?
#2

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
#3
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.
#4

Style - WS_EX_TOOLWINDOW will remove the green arrow.
Taking on Quick Macros one day at a time
#5
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?
#6

Where you use
ShowDialog
Code:
Copy      Help
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
#7
I found this on the forum

Macro: Mouse_Macro
Code:
Copy      Help
if(!ShowDialog("Mouse_Dialog" 0 0 0 0 0 0 0 0 0 "C:\mouse.ico")) ret

Dialog: Mouse_Dialog
Code:
Copy      Help
;\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
#8
I guess we where thinking along the same line of thought and at the same time.

Thank You
#9

No problem. :wink:
Taking on Quick Macros one day at a time


Forum Jump:


Users browsing this thread: 1 Guest(s)