tabs

Open new web page in new tab in WebBrowser control

旧时模样 提交于 2020-01-09 08:15:06
问题 I'm using WebBrowser control in my c# application, and I want to open web pages in it. It's completely done. My problem: Any link in the web page that its target is _blank will open in new IE Window. I'd like to open such link in new tab in my application. How to do it? Thanks! 回答1: private void Browser_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e) { var webBrowser = (WebBrowser)sender; if (webBrowser.Document != null) { foreach (HtmlElement tag in webBrowser.Document

Android Navigation Drawer over the tabs

谁都会走 提交于 2020-01-09 04:29:25
问题 I am using the new navigation drawer available from the support library. When using the drawer along with tabs, the drawer menu is getting displayed below the tabs as shown below. How can i make sure the drawer menu is shown on the tabs. (It should display the drawer menu as if there are no tabs) Drawer menu without tabs Drawer menu with tabs 回答1: I got the same issue and the answer I got from Roman Nurik (Android team) is that the Navigation Drawer should not be used with the Action Bar tabs

Switching fragments within tab

我的梦境 提交于 2020-01-09 04:22:13
问题 I'm creating an app that uses ActionBarSherlock. The app consists of three tabs, and in each of them, multiple screens are shown consecutively based on user input. I am able to switch Fragments between tabs, but the switching of fragments within tabs gives a problem. I've tried it like this: In the main class: SingleStationFragment singleStationFragment = new SingleStationFragment(); FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(android

Tab not taking full width on Tablet device [Using android.support.design.widget.TabLayout]

蹲街弑〆低调 提交于 2020-01-08 18:20:15
问题 I have setup tabs as UPDATE 29/05/2015 this post. Tabs take full width on my Nexus 4 mobile but on nexus 7 tablet it in center and not cover full screen width. Nexus 7 screenshot Nexus 4 screenshot 回答1: A "simpler" answer borrowed from Kaizie would just be adding app:tabMaxWidth="0dp" in your TabLayout xml: <android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:tabMaxWidth="0dp" app:tabGravity="fill" app:tabMode="fixed" /> 回答2: I

Does multiple tabs of same site send multiple ajax calls?

余生长醉 提交于 2020-01-07 05:32:25
问题 Let imagine we have site what every second check is there any new messages: $(function(){ setInterval(function(){ $.ajax({ url: 'message_check.php', success: function(data){ if(data)$('#someDiv').html('NEW MESSAGE!'); } }); },1000); }); Now someone opened 3 tabs with different pages of my site. How many call I'll get every second, three or one ? if one then how tabs sinc ? if three then we lost very very much performance , right? Noticed what Firebug show same console for different pages of

How to assign icons to `gnotebook()` tabs?

余生颓废 提交于 2020-01-07 05:27:12
问题 I am using gWidgets2 to create a tabbed GUI, and I would like each tab to have an associated icon (image). Consider: require(gWidgets2) w <- gwindow("notebook example", visible=T) nb <- gnotebook(container=w) gbutton("Refresh", label="Refresh", container=nb) ## note label argument gbutton("Info", label="Info", container=nb) How can I assign the refresh icon next to the label of the 1st tab? And the info icon to the 2nd tab? 回答1: Something like this can be modified to suit your needs: function

Using Graphics.DrawImage to create custom tabs in C#

╄→гoц情女王★ 提交于 2020-01-07 03:51:45
问题 I have a project in which you can add and remove tabs (like a web browser). So far I have this: //Button to add a new tab page private void cb_addPage_Click(object sender, EventArgs e) { string title = "TabPage " + (tabControl1.TabCount + 1).ToString() + " "; TabPage myTabPage = new TabPage(title); tabControl1.TabPages.Add(myTabPage); tabControl1.SelectedTab = myTabPage; } //Form1_Load private void Form1_Load(object sender, EventArgs e) { tabControl1.DrawMode = TabDrawMode.OwnerDrawFixed; cb

Creating a tabbed Gridview in C#

血红的双手。 提交于 2020-01-07 03:50:13
问题 I am creating a web interface which currently reads data in from an XML data file, parses it into an array of Objects, after which I bind it to the data source of a Gridview. I then use and to retrieve the data I want from the objects for each column. However, I am at the point that I would like to have multiple tabs in this gridview, possibly controlled by different link buttons. Each tab would show a different set of columns. What would be the best way to implement this? Do I need to have

The content of my tabs doesn't fill the whole space

不羁的心 提交于 2020-01-07 02:49:08
问题 In my activity I create 5 tabs dynamically. I'm trying to figure out why my loading animation doesn't fill the whole space. Right now it's only a small rectangle in the top of the tab content (see http://imageshack.us/photo/my-images/594/loadingwf.png/). Here is the code where I create the content of each tab : for (int i = 0; i < NewsCategory.values().length; i++) { View tabView = createTabView(tabHost.getContext(), NewsCategory.getValueAt(i).getName()); tabNewslist[i] = new Newslist(this,

Angular-ui-bootstrap — unable to disable tabs inside ng-repeat

浪子不回头ぞ 提交于 2020-01-06 19:52:13
问题 all. I am using angular and ui-bootstrap to create a menu of tabs on which (hopefully) a user can enable/disable tabs that they do not need. I have tried to adhere pretty closely to the template code, as well as implementing my own functions to disable the tabs on click, but I haven't been able to get my tabs to respond the same way that they do in the example. I have been reading around and would guess that it has something to do with the ng-repeat creating its own scope, but I haven't