toolbar

How to use native platform icons for ToolBarItems in Xamarin.Forms (programmatically)?

有些话、适合烂在心里 提交于 2019-12-10 22:03:07
问题 What I have: I have a Xamarin.Forms app with a ToolBar ( ActionBar on Android, Navigation Bar on iOS). Within the ToolBar I have a ToolBarItem to delete something. What I want: For the ToolBarItem mentioned above I want to use the native platform icons (f.e. a trash can). My question: What is the proper way to achieve this? It seems that the only way to do this is to add and load separate png-files as described here. For Android this is not such a big deal I can officially download the icon

QtToolBar with underlined shortcut key in button text

穿精又带淫゛_ 提交于 2019-12-10 18:53:00
问题 I have a simple Qt toolbar with text only button Action : MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { QToolBar* toolBar = new QToolBar(this); QAction* action = toolBar->addAction("&Action"); QObject::connect(action, SIGNAL(triggered()), this, SLOT(onAction())); action->setShortcut(QKeySequence("ctrl+a")); addToolBar(toolBar); } I would like to have A in Action underlined to reflect its role as a shortcut key. How to accomplish that? 回答1: Standard QAction widget (it is a

How to hide default hamburger icon of Navigation view android

[亡魂溺海] 提交于 2019-12-10 17:56:47
问题 I need to hide the hamburger icon This is my toolbar I need to hide the default hamburger icon of navigation bar and load it from another button click.The navigation bar need to appear on the attachment icon click in my toobar and need to disappear when i click outside(anywhere).Can this be done ? 回答1: if you are using ActionBarDrawerToggle then you can add a line toggle.setDrawerIndicatorEnabled(false); and opening and closing drawer you can write in your click event if (drawer.isDrawerOpen

SWT Actions with Keyboard Shortcuts… without having to add them to the menu

女生的网名这么多〃 提交于 2019-12-10 17:42:07
问题 We currently have implemented a lot of SWT Actions, because it is a nice way to bind a single command to be added to the menubars and toolbars, and to have Keyboard Shortcuts for these commands. Now... how can I register an Action in plain SWT/JFace without having to add it to a menubar, but in a way that it still can be called by a keyboard shortcut? 回答1: I use to solve this in plain SWT by using Display.addFilter on the KeyDown event. See this question for an example. 回答2: Use the org

Android custom toolbar onOptionsItemSelected not working

爱⌒轻易说出口 提交于 2019-12-10 17:13:30
问题 I got two similar buttons <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="match_parent" android:orientation="horizontal" > <Button android:id="@+id/sync_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sync" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" /> </RelativeLayout> added as items to menu

jQgrid toolbar searching - dynamically remove search box from any column

Deadly 提交于 2019-12-10 16:53:08
问题 I am using jqgrid version 4.4.4 and right now I am facing one problem related to toolbar searching. As I mention in heading, I want remove search box of toolbar search from any column "dynamically" during or after rendering a grid. I google it but I didn't found any relevant solution on my this problem. I used selColProp property like this $('#<gridId>').jqGrid('setColProp', 'LotNo', { search: false }); and mentioned in loadcomplete function due to some logical reason. If anyone knows how to

How do I prevent menu and toolbar clicks stealing focus from a floating form?

回眸只為那壹抹淺笑 提交于 2019-12-10 16:44:09
问题 I want to achieve the same effect as in Visual Studio 2010+, where if you float an editor on top of the main form, clicking on a main form menu or toolbar button doesn't cause the main form to steal focus; instead the floating window retains focus. Without this it becomes impossible to invoke any main menu command that operates on a focused control when the focused control is in a floating window - because the control you wanted to operate on loses focus just as the command is invoked.

OnCreateOptionsMenu doesn't get called on Android 7.0

纵饮孤独 提交于 2019-12-10 16:27:56
问题 As in the title mentioned the OnCreateOptionsMenu method doesn't get called after I updated my system to Android 7.0. Before the update I used Android 6.0 and it worked without any issues. If I test it on my other phone with 6.0 it is still working (same code). Is there any problem with this method on Android 7.0 or is something wrong in my code? The part of my MainActivity.cs where I set the toolbar [Activity(Label = "App", Icon = "@drawable/icon", MainLauncher = true, Theme = "@style/Theme

How to remove bar from QMainWindow

自作多情 提交于 2019-12-10 14:52:57
问题 I'm trying to delete this bar, butI can't get rid of it (it's locate just under the toolbar): What is the name of that bar,how can I access it? Thank you. 回答1: If you added that tool bar you probably have a pointer to it? If yes, you can simply call: removeToolBar(toolbar); in your QMainWindow class. Otherwise you can remove all tool bars from the main window as: QList<QToolBar *> allToolBars = mainWindow->findChildren<QToolBar *>(); foreach(QToolBar *tb, allToolBars) { // This does not

Need efficiency hack for debugging in Visual Studio 2010

不想你离开。 提交于 2019-12-10 14:52:18
问题 I frequently use Debug -> Exceptions -> check CLR Exceptions during debugging sessions. Sometimes, an exception gets thrown and handled, but I really want to find the source of the exception. In order to do this without seeing first-chance exceptions that I don't care about, I start my app, and then check CLR Exceptions: This gets really tedious, and I'd love to have a toggle button in my VS2010 toolbar that allows me to only set/reset CLR Exceptions at will, without having to key in CTRL + D