Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drag-able Non-Resizable Dialog
#1
Hello Gintaras,
I am trying to figure out the right combination of style elements for a dialog that would be drag-able but no resizable WITHOUT a dialog frame. I have a very tight spot to fit the dialog, so I can't spare the thick dialog frame. The dialog will be mostly buttons but I can leave a thin strip above to make easily draggable. Something like this:

Function Dialog4
Code:
Copy      Help
,\Dialog_Editor
,
,;BEGIN DIALOG
,;0 "" 0x80880A4A 0x1 0 0 227 20 "Dialog"
,;1 Button 0x54030001 0x4 144 6 34 14 "OK"
,;2 Button 0x54030000 0x4 178 6 48 14 "Cancel"
,;3 Button 0x54032000 0x0 0 6 48 14 "Button"
,;4 Button 0x54032000 0x0 48 6 48 14 "Button"
,;5 Button 0x54032000 0x0 96 6 48 14 "Button"
,;END DIALOG
,;DIALOG EDITOR: "" 0x2030208 "" "" ""
,if(!ShowDialog("Dialog4" 0)) ret

Thanks!,
Stuart
#2
Add this line in dialog procedure.

Code:
Copy      Help
,case WM_NCHITTEST ret DT_Ret(hDlg HTCAPTION)
#3
Works Great!!!!!!
Thanks, Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)