Move between Pages in the Application Menu
I added an Application Menu, use the example of C++ from here: https://developer.blackberry.com/cascades/documentation/ui/navigation/menus.html
// Create the application menu Menu *menu = new Menu; // Create the actions and add them to the menu ActionItem *actionOne = ActionItem::create() .title("Action 1"); ActionItem *actionTwo = ActionItem::create() .title("Action 2"); menu->addAction(actionOne); menu->addAction(actionTwo); // Set the menu of the application Application::instance()->setMenu(menu);
Unfortunately the example wrong in how to edit a page by pressing action.
Does anyone know how to do this?
bool res = QObject::connect(actionOne, SIGNAL(triggered()), this, SLOT(handleAction1())); Q_ASSERT(res); Q_UNUSED(res);
This method works.
Tags: BlackBerry Developers
Similar Questions
-
How to create the application menu?
Hello
I want to add to the settings page for my application.
I created the application menu in the Navigation pane.
See my coding:
NavigationPane { id: navigationPane Page { id: mainpage Menu.definition: MenuDefinition { actions: [ ActionItem { title: "Action" imageSource: "asset:///images/setting.png" onTriggered: { navigationPane.push(settings.createObject()) } attachedObjects: [ ComponentDefinition { id: settings source: "setting.qml" } ] } ActionItem { title: "help" imageSource: "asset:///images/help.png" } ] } titleBar: TitleBar { title: "Main Bar" } } }
and on settings.qml
Page { id: settings titleBar: TitleBar { title: "Settings" } Container { background: Color.Yellow Label { text: "Want [Dark or White] theme selet below" } DropDown { title: "Select Theme" Option { text: "Dark" onSelectedChanged: { if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) { Application.themeSupport.setVisualStyle(VisualStyle.Dark); } else { Application.themeSupport.setVisualStyle(VisualStyle.Bright); } } } Option { text: "white" selected: true onSelectedChanged: { if (Application.themeSupport.theme.colorTheme.style == VisualStyle.Bright) { Application.themeSupport.setVisualStyle(VisualStyle.Dark); } } } } } }
and I see not the menu look at this picture
now, I want the solution please can someone help.
-shaishad
the definition of menu on the navigationpane
-
I have a navigationPane with an Application Menu. One of the items in this menu is settings so
When I click on parameter I shows the Settings Page but I would like to turn off the Menu of the Application
When the user on the Configuration pageI put in the onCreationCompleted of my settingPage
Application.menuEnabled = false;And when I click on the back button I do:
Application.menuEnabled = true;
navigationPane.pop ();However, the Application Menu is always displayed in the settings page, so how can I disable it?
I did it!
When I press settings page, I disbale the application from the page menu, then
ActionItem { title: "Preferencias" imageSource: "asset:///images/ic_settings.png" onTriggered: { var page = getPreferenciasPage(); page.onRefreshDropDownLicencia.connect(onRefreshDropDownLicencia); Application.menuEnabled = false; navigationPane.push(page); } function getPreferenciasPage() { if (! preferenciasPage) { preferenciasPage = idPreferenciasPage.createObject(); } return preferenciasPage; } },
-
How to view the application menu in the app?
Hi all
Does anyone know how to view the application menu in the app?
The ultimate effect is that when you see the user swipe down from the top of the screen, the menu of the application.Thank you very much.
Please check the recent threads or duplicate search before posting questions: http://supportforums.blackberry.com/t5/Cascades-Development/Application-Menus/td-p/1785653
-
Move between photos using the mouse scroll wheel in the library module
I've recently upgraded to LR6.4, in the library, to the Magnifier module, I can't move between photos using the mouse scroll wheel. When I point the cursor on the picture, I get a "magnifying glass". The only way I can move between photos is to click on the film. I was able to use the mouse scroll wheel to move between pictures before. Help, please.
It doesn't matter whether or not this option is displayed. Just open the preferences and restart LR should dissipate it.
-
Whenever I have to download a trial of After Effects or any other applications it will indicate your download begins to start but nothing downloads... It is not even came in my creative cloud. And I don't have a page of the application when I open creative cloud. Help, please
N ° 1)
Click on the link below and open Photoshop Elements download link.
Note: we are not anything downloaded from the page of Photoshop Elements.
Do not close the page, just keep it open.
Download Photoshop Elements products | 10, 11, 12, 13
Then click on the link below and download the installer directly mentioned in step 2.
Step 2)
http://trials3.Adobe.com/AdobeProducts/AEFT/13/OSX10-64/AfterEffects_13_LS20.dmg
-
Open a new window when the connection to another page in the application
I have an Apex 4.2 existing application that uses buttons to direct users to other pages in the application
Users want to be able to open a second (or possibly) 3rd window or perhaps a second tab
Is there a way to code?
Sure using good old Javascript.
Set the URL, then type:
JavaScript: window.open('f?p=APP_ALIAS:PAGE_ID:&SESSION.')
-
How to increase space of a page in the application designer?
People,
Hello. I developed a page in the application designer.
I need to place several records with several fields on the page. But all of the space of the page is not enough to place the fields. We must use a vertical scroll to increase the space on the page to contain all fields. But I don't understand how this feature.
Can people tell me how to increase space of a page in the application designer to y to keep many fields?Try to use the properties of the page, the page size - custom
Subhash
-
Hello
I have a table whose fields can develop. There is an another subform on the side that contains two vertical lines with the height increases if the height of the table increases. The table and the subform are in a provision passed. The challenge is that the subform with the lines does not break between pages. The subform is enabled to allow page breaks, but still it does not break. How to get there?
I solved by creating the columns on the side and leave the table and breaking lines between pages. The cell border will serve as lines.
-
Click on the button to another page in the application
Hello world
Sorry for such a an easy question, but I just can not find an answer. I have a landing page where my clients can select one of two different applications to use. I created two html buttons and hold the buttons to direct the customer to the correct page in the application when you click it.
What is the syntax to do this? I t should be easy and I wonder if I'm too difficult. Thank you.
DerekHi Derek
http://your_server/pls/apex/f?p=100:1
Would be the normal installation if you have not changed anything where you want to go to page 1 and request 100.
See you soon
Ben
-
How user name passed to each page of the application of the APEX
Hello world
I want to understand, how the user name is passed to every page of the application of the apex. On each page we see the user name, the logout button. Reason I asked, I want to understand the concept and I would pass the role assciated with username. So what is the best way to switch roles as associated with the username.
Thank youKaram,
If you want to be included in the simplest model is to create an element of the application in the shared components, for example:
MY_VARIABLE
in the model, you can use & MY_VARIABLE. just like & APP_USER.
You can set the session in pl/sql variable, for example by:
apex_util.set_session_state ('MY_VARIABLE', 'MY_VALUE');
You can access MY_VARIABLE in pl/sql read only using the V function:
v ('MY_VARIABLE')
Exactly when and where APP_USER is, I don't know, but I hope this helps.
Kind regards
Blackstone
Published by: blackstone on July 22, 2009 16:13
-
Menu bar horizontal moves between pages
Hello
I have all the properties of the page on the same values; However I notice the menu bar horizontal at various levels when I load my pages. The site is AbileneDentist.com.
Any idea on what could be the cause to happen?
Thank you
MarkHello
In my view, the vertical scroll bar is initially objects to be moved.
To resolve this problem, you can add a scroll bar to all pages. To achieve the same thing:
On the file menu in Muse, select Site Properties. The visibility for the scroll bars vertical browser, set to Always.
It will be useful,
Sonam
-
TREE, link to another page in the application without authentication
Hello
I'm working on APEX 4.1.1 , I used region of the tree to make my menu of the application. My problem is in all parts of the tree, I do a redirect to a specific page ID (in another application), and I'm trying to do an automatic authentication, but his does not work:
My region requestio tree:
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
else -1
end the status,
level,
'ÉTIQUETTE' as the title,.
NULL as an icon,
"ID_PAGE" as a value.
NULL as ToolTip,
M.num_app |': ' | v('SESSION') |': ' | M.REQUEST link
MY_TREE m
Start with M.LABEL = 'START '.
connect prior "ID_PAGE" = "ID_PAGE_PARENT."
brothers and sisters of order by 'ID_PAGE.
Suppose that my main application containing my menu tree = 500 and the target page, ID is on the apllication page 501 on page 101 ID of my App ID 501 I add a process header before that get the username and password cookies and call apex API to login.
Thanks for your replies.
Yosof
This thread Re: navigate between two applications in the same workspace without sing again suggests that you don't have to do any coding.
See what happens when you navigate to a page that is not the login page. A non-public page.
What I know of the login process, is that it changes the session id.
Nicolette
-
'slide movement' between pages and items in a folio
Hello.
I do an application and I want to access through is pages and articles using only links and buttons. Is it possible to eliminate this "swipe movement" between the pages and items in a folio?
N °
Neil
-
Beta 3: call the application menu NavigationPane
Now we can define menus of applications of Cascades in Beta 3, I tried to find how we can call all windows in a SettingsActionItem.
I have a pane with tabs with a declared MenuDefination. I want to call a QML file that is a NavigationPane that contains the list of parameters. I have tried to seem so all documentation and sample applications and do not see the right way to do this. It would be nice to have a applications examples with an application menu that calls a settings screen.
Can anyone help or recommend best practices for this?
Thanks in advance.
Ok. I managed to do the work.
hand. QML
import bb.cascades 1.0 TabbedPane { showTabsOnActionBar: true Menu.definition: MenuDefinition { helpAction: HelpActionItem { imageSource: "asset:///icons/help.png" } settingsAction: SettingsActionItem { imageSource: "asset:///icons/setting.png" onTriggered : { settingsSheet.open() } } actions: [ ActionItem { title: "Info" imageSource: "asset:///icons/info.png" } ] } attachedObjects: [ Sheet { id: settingsSheet objectName: "settingsSheet" content: SettingsSheet { id: settingsContent } } ] Tab { title: qsTr("Tab 1") Page { id: tab1 Container { Label { text: qsTr("Tab 1 title") } } } } Tab { title: qsTr("Tab 2") Page { id: tab2 Container { Label { text: qsTr("Tab 2 title") } } } } Tab { title: qsTr("Tab 3") Page { id: tab3 Container { Label { text: qsTr("Tab 3 title") } } } } onCreationCompleted: { OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All; } }
SettingsSheet.qml
import bb.cascades 1.0 NavigationPane { Page { Container { Label { text: "Settings Page" } } } }
Maybe you are looking for
-
I had designed a Web application and tested on Firefox 18, 19, 20 and now when I check it on 21 version it is not rendered correctly. Now tell me what I need to do.
-
How can I return an app on the Mac App Store?
I bought an app and it turns out not to do what I expected. I thought he was going to block certain websites not apps in the mac.
-
Satellite Pro C660-1J3 - problem with OpenGL / Edrawing
Hello I hope you can help me with the following problem: I need to work a program that we OpenGL for drawing, but still the program does not work if it opens the drawings, the following information, always on the screen: "OpenGLView: EnableRenderCont
-
How update you the usb drivers
-
Upgrade to 4.0 - problem
I have a s arc experia phone. When you try to upgrade to 4.0 companion pc application to close wininit.exe leading to blue screen on my lap top running windows 7 64 bit please guide me on how to level?