Project

General

Profile

Actions

Bug #3727

closed

how to jump from one page to another page ?

Added by Anonymous over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/15/2015
Due date:
% Done:

0%

Estimated time:

Description

I want to realize the function:I clicked one button on the homepage ,the page can jump another "downloadCenter"Page. the code is below:

WText *txt = new WText(L"homepage");

HomePage *homepage = new HomePage();

addToMenu(m_menu, txt->text(), homepage);

DownloadCenter *downloadcenter = new DownloadCenter();

addToMenu(m_menu, L"downloadCenter", downloadcenter);

what should I do?

Actions #1

Updated by Koen Deforche about 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche

Hey,

You should probably use m_Menu->select(i) with i either the menu item or the index of it, from within the button's clicked() handler.

Koen

Actions #2

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF