Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multipage dialog, execute code when on certain page number
#1
1)
I have a dialog that contains 2 pages, when I click a button called "generate" from first page it goes to the second page (page 1).

Question: How can I execute code on page 1 (second page))?
The code may only run specifically when user is on page 1 (second page).

In a one page-dialogbox (normal, none-multipage) I would simply put the code under "WM_INITDIALOG" which worked perfectly.

2)
Question: And how can I output this in the output window:
Code:
Copy      Help
page: #

(#= current pagenumber of multipage dialogbox).
#2
DT_Page does not store page number in a variable. Just hides/shows controls. You can store it in an int- variable when switching page with DT_Page.

case 3 ;;Button
int- t_page
t_page=1
DT_Page hDlg t_page
execute code on page 1
out t_page
#3
Thank you !!!


Forum Jump:


Users browsing this thread: 2 Guest(s)