toolbar

MFC Toolbar on Dialog?

懵懂的女人 提交于 2020-01-01 03:28:11
问题 I have tried everything I can think of to get a toolbar to show up on my dialog... including trying to create it myself with CreateWindow.. but it won't show up I created a dialog in the resource editor, and then made a class for it(tried deriving from both CDialog and CDialogEx). Isn't it possible to add a CToolbar control to it? 回答1: Well, there are four steps. 1, CToolBar m_ToolBar; // Meanwhile you create a resource (e.g. IDR_TOOLBAR1) 2, Call CToolBar's Create function m_ToolBar.Create

Disable Adobe Reader toolbar from my ActiveX

半世苍凉 提交于 2019-12-31 04:59:45
问题 I am loading a PDF document in my ActiveX using AxAcroPDFLib and iTextSharp libraries. I want to disable the toolbar (that have Save, Print etc options) from the loaded PDF so that user cannot 'Save' the PDF from ActiveX. I have following code: axAcroPDF1.Width = someWidth; axAcroPDF1.Height = someHeight; axAcroPDF1.LoadFile(documentPath); axAcroPDF1.setPageMode("none"); axAcroPDF1.setShowToolbar(false); axAcroPDF1.Show(); axAcroPDF1.Focus(); The axAcroPDF1.setShowToolbar(false) disables the

设置TextField的响应View和toolBar

核能气质少年 提交于 2019-12-30 17:42:08
/*--> */ /*--> */ inputView 设置用于展示的响应View 类似于键盘的展示方式 /*--> */ /*--> */ inputAccessoryView 用于设置响应View上面的ToolBar 使用方式: inputView设置为响应View展示在键盘位置 inputAccessoryView 设置键盘上的toolBar // 创建toolBar UIToolbar *toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, getWidth(40))]; UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:LA_BT_ME_DONE style:UIBarButtonItemStylePlain target:self action:@selector(doneTouched:)]; [toolBar setItems:[NSArray arrayWithObjects:[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action

CollapsingToolbarLayout - Hide ImageView when Expanded, show when Collapsed

半世苍凉 提交于 2019-12-30 11:31:48
问题 I would like to hide an ImageView (logo) when CollapsingToolbarLayout is expanded and only show the ImageView when the CollapsingToolbarLayout is collapsed. (I know how to do the reverse of this question). As you can see from the screenshot below. The big mast head is actually one big logo, image on left and then company name on right. In collapsed mode I only want to show a small thumbnail of the logo. How can I accomplish this in XML or code please? Code & screenshots below: <android

Changing MFMailComposeViewController's toolbar color

白昼怎懂夜的黑 提交于 2019-12-30 05:39:26
问题 I'm using a tinted navigation bar and a tinted global UIToolbar in my iPhone app. In my info view, I have a button which opens a MFMailComposeViewController, and the toolbar at the top of that view (with the "cancel" and "send" button) is still blue. I'm calling the MFMailComposeViewController like this: -(void)displayMailSheet { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"..."]; NSArray

Show/hide a toolbar with slide animation in Sencha Touch

℡╲_俬逩灬. 提交于 2019-12-30 05:23:29
问题 I have a toolbar docked to the top of the main viewport, and a panel with card layout below. The idea is to have the toolbar slide down from the top upon touching a button, and slide back up when dismissed. It should not overlay the content below it, everything below it should slide down as well to make room for the toolbar. Firstly , how can I animate the toolbar show/hide with a slide transition? This is how I am showing/hiding the toolbar at the moment: toggleMenu:function(){ if (tkwine

HomeAsUp Button has no effect in Android 4.2.2 with Appcompat 21.0.0

孤街醉人 提交于 2019-12-30 05:22:11
问题 I'm using Toolbar from Appcompat 21 instead of standard actionbar, everything goes smoothly except that the HomeAsUp Button in an extra activity has no effect. When I open the PrefsActivity (code snippets below), the HomeAsUp button shows normally (a small left arrow), When I click the button, from the code, I want it "finish", but it just remains no change. When I add the onCreateOptionsMenu function to BaseActivity and inflate the global.xml which only has one menu entry Settings , the

How to make Toolbar not overlap other content in Android?

旧巷老猫 提交于 2019-12-30 00:53:25
问题 I am trying to develop an activity with a toolbar (the example is more or less taken from a tutorial), but the Toolbar always overlaps part of the other content. Here is a screenshot: The blue toolbar overlaps some of the other content. I have tried to search for a similar question on SO but only found something unrelated. I also tried to change the order of some elements and replaced wrap_content <-> match_parent which at most worsens the layout. I am sure I am missing something very

AppCompat v7 Toolbar onOptionsItemSelected not called

孤人 提交于 2019-12-29 03:32:15
问题 I changed from the original ActionBar to the AppCompat Toolbar and setSupportActionBar(toolbar). When I am using getSupportActionBar() and setDisplayHomeAsUpEnabled(true) for the back arrow, the click never calls onOptionsItemSelected or any other listener method. Do I have to implement some special listener for it? Befor everything was working just fine. EDIT: Initialise the ActionBar: mToolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(mToolbar); mActionBar =

Hiding/Showing the toolbar when fragment in the tabs is scrolled

只愿长相守 提交于 2019-12-29 03:09:30
问题 I added the new Toolbar , Tablayout and Viewpager in my android app. I provided Fragments for my 3 Tabs and its working fine. But the problem is that when i scroll up my Toolbar does not hide. I want that when i scroll my fragment it should hide. And one more thing, i am using Webview in the fragment. My codes are given below. MainActivity.Java public class MainActivity extends AppCompatActivity { TabLayout tabLayout; @Override protected void onCreate(Bundle savedInstanceState) { super