Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog editor
#1
Would love to see more improvements in the dialog editor for aligning controls.would be nice if could have a line that shows when you are lined up with another control.like in visual studio.Would help making dialogs easier
#2
Agree. QM is a wonderful tool, but I think the dialog editor is the weakest point. A few more controls, on the line of VB, it would be a top notch soft.
#3
Alignment would be great!

I vote for a left, center, right alignment.

Also what would be handy would be equal horizontal and vertical spacing.

Other handy functions would be "match width" and "match height"

Tip: Usually if I have a lot of elements in a dialog, I write QM script to write the dialog for me.
I've even gone as far as laying out a dialog in a image editing program that can export elements locations into an html file and then parse the file with QM to convert the image to a dialog declaration.

-Jim
#4
Hmm... Gintaras remains very quiet. We'll have some nice surprises in the next release. xD
#5
What you can do with dialogs is really amazing, but I really would love some aligning tools, and possibility to have a simple but adjustable grid to be shown (with snap to grid). I spend to much time aligning things.

I try to use this tool: http://www.cthing.com/Meazure.asp to show a grid on the entire windows screen so I can do some very basic aligning (the problem is, is that the minimum grid is to big in many cases).

Does somebody have some tips/tricks or tools to help with aligning?
#6
To align things I usually just edit the dialog variable

So this is created all willy-nilly and not lined up:
Function Align
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages


;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Edit 0x54030080 0x200 8 6 96 14 ""
;4 Edit 0x54030080 0x200 8 22 96 14 ""
;5 Edit 0x54030080 0x200 10 38 96 14 ""
;6 Edit 0x54030080 0x200 12 54 96 14 ""
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030509 "" "" "" ""

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

So looking at 3 Edit 0x54030080 0x200 8 6 96 14 "" the last part is the x y width height
so change dialog to:
Function Align
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages


;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Edit 0x54030080 0x200 8 6 96 14 ""
;4 Edit 0x54030080 0x200 8 22 96 14 ""
;5 Edit 0x54030080 0x200 8 38 96 14 ""
;6 Edit 0x54030080 0x200 8 54 96 14 ""
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030509 "" "" "" ""

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
#7
Aah off course, I forgot about that!
This makes it easier.

Thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)