Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multipage Dialogs triggering and using pages
#1
I thought that I could do this but I am not having much luck and I was wondering if I might get an example of how I could make this.

I have tried to use Dialog36 Multipage Dialog and page triggering
and
Dialog60 SysTabControl32
to make a dialog that when I press a button a new page will open up in my dialog that is something like this dialog

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

str controls = "3"
str rea3
if(!ShowDialog("DialogWithMenu" &DialogWithMenu &controls 0 0 0 0 0 0 0 "dialog.ico" "DialogWithMenu")) ret

;BEGIN DIALOG
;0 "" 0x10CF0A44 0x100 0 0 294 190 "Dialog"
;3 RichEdit20A 0x54233044 0x200 0 0 294 190 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020009 "*" ""

ret
;messages
sel message
,case WM_INITDIALOG
,
,case WM_SIZE
,RECT r; GetClientRect(hDlg &r)
,siz r.right r.bottom id(3 hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,;menu items:
,case 101 out "Open"
,case 103 out "Cut"
,case 104 out "Select All"
,case 105 out "Help"
,
,case IDOK
,case IDCANCEL
ret 1

;BEGIN MENU
;>&File
,;&Open : 101 0 0 Co
,;-
,;>&Recent
,,;Empty : 102 0 3
,,;<
,;<
;>&Edit
,;Cu&t : 103 0 0 Cx
,;-
,;Select &All : 104 0 0 Ca
,;<
;&Help : 105 0
;END MENU

I do not need tabs and I do not know if this is the best way to make a Multipage Dialog.
#2
Add pages and buttons in dialog editor. When a button clicked, call DT_Page.
#3
That was too easy I do not know why I was making it so complicated.
#4
I do have one question but I do not quite understand how to ask it!

You seem to have many (what I will call definitions) for example

1003
1004
1005
1006
1007
1101
1102
1201
1202
1301
1302
1303
1401
1402
1501
1601
1602
1603
1604
1605
1701

Each of these seems to do or mean something special in QM. Is there a place where I can find a definition of what all of this means?
#5
Controls whose id is <1000 are in all pages.
1000 - 1099 - first page
1100 - 1199 - second page
...
#6
That was both a simple and quick answer.
Thank You again


Forum Jump:


Users browsing this thread: 1 Guest(s)