tabs

How can I send an event from child window to its parent window

六眼飞鱼酱① 提交于 2019-12-31 22:30:11
问题 My main goal is: Going to my application, open a link there in a new tab, make something in the new tab and send an event to the parent-main tab to refresh. I have learned 2 techniques that doesn't do exactly what I need: postMessage - works as far as I know only on iframe and not on tabs window.opener - works only with window.open(url) that opens only new window and not new tab. How can I pass an event from the child to the parent using tabs? I'd be happy for a specific example for

Delphi. Remove a border of TabSheet of PageControl

久未见 提交于 2019-12-31 21:16:12
问题 Your help is needed. Is it possible to remove a border of TabSheet (~4px)? I am using PageControl as a switch-panel instead of frames, windows etc. I want everything will be straight. Big thanks for help! 回答1: unit Unit1; interface uses ..., CommCtrl; type TPageControl = class(ComCtrls.TPageControl) private procedure TCMAdjustRect(var Msg: TMessage); message TCM_ADJUSTRECT; end; TForm1 = class(TForm) ... end; ... procedure TPageControl.TCMAdjustRect(var Msg: TMessage); begin inherited; if Msg

Multiple Tab fragments inside bottom navigation fragment

自古美人都是妖i 提交于 2019-12-31 08:32:55
问题 In bottom navigation with three tabs (Home, Dashboard, Notifications). Each bottom navigation tab is a fragment. The first tab ie. Home fragment contains another top navigation tabs having four tabs (Tab 1, Tab 2, Tab 3, Tab 4). The problem When navigate from Home tab to Notifications tab directly and come back to Home tab, Tab1/which ever tab previously selected tab (top navigation tabs) the content of the tab is not loaded. When swipe the tabs from Tab 1 (Home fragment tab) all the way to

Multiple Tab fragments inside bottom navigation fragment

末鹿安然 提交于 2019-12-31 08:32:30
问题 In bottom navigation with three tabs (Home, Dashboard, Notifications). Each bottom navigation tab is a fragment. The first tab ie. Home fragment contains another top navigation tabs having four tabs (Tab 1, Tab 2, Tab 3, Tab 4). The problem When navigate from Home tab to Notifications tab directly and come back to Home tab, Tab1/which ever tab previously selected tab (top navigation tabs) the content of the tab is not loaded. When swipe the tabs from Tab 1 (Home fragment tab) all the way to

Open a file in a tab in vim in readonly mode

本小妞迷上赌 提交于 2019-12-31 08:30:34
问题 I'm aware of opening files in readonly mode from shell using vim -R , but how to open a file from inside vim in a separate tab ( :tabe <filename> ) in readonly mode? Thanks for your time. 回答1: To open a file in read only mode in a new tab, use tab sview /path/to/file To open the file in the same pane, (without using a new window or tab), use view /path/to/file Note that tab view /path/to/file does not open a new tab. 回答2: You can open a file in readonly mode from inside vim : :view /path/to

Tabbed windows on Emacs

社会主义新天地 提交于 2019-12-31 08:11:28
问题 I'm trying to get multiple tabs in windows like vim does it. In vim tabs aren't tied to buffers and you can have multiple tabs each with multiple splits and buffers in them. What I've found so far is: tabbar: shows all tabs. winring: doesn't show tabs in the window and is clunky to use (have to name each tab first). This is the closest to what I want. Does anyone have any ideas if this is possible? Tabs + emacs is hard to search for; most of what I find are discussions of spaces vs tabs :)

Swift and Xcode - How to Create Custom Tab Bar Icons

余生颓废 提交于 2019-12-31 08:08:30
问题 I have a tabbed application project I am working on in Xcode written in Swift ( Xcode 6.3 and Swift 1.2 ). I am having a lot of trouble with custom Tab Bar icons. I have designed an image in Photoshop (CS6), saved it as a PNG, resized it in Prepo to be 30x30 and imported it into Xcode in the asset library. I then set the tab view controllers icon to that image. However, it doesn't show up. I have looked at these pages but not found any help: https://www.youtube.com/watch?v=4qqqoAWNfZA Custom

Android - How to create tabs on demand using existing layout?

江枫思渺然 提交于 2019-12-31 05:42:11
问题 Compulsory background info: I'm building a tablet app for real estate agents to use when quoting homes and buildings. Since a home or an apartment can have any number of rooms, I thought it would be nice to build a tab-based solution that allowed for going room by room and creating one tab per room on demand. I've been through several tab tutorials but all solutions I've found deal with a predefined number of tabs, and use the deprecated TabHost. TabHost.TabSpec ourSpec = tabhost.newTabSpec(

Add a different color for each action bar tabs separately

拥有回忆 提交于 2019-12-31 05:32:06
问题 I need to add a different color for every tabs. For Eg: like this below image MainActivity.java: // Add New Tab actionBar.addTab(actionBar.newTab().setText("Home") .setTabListener(tabListener)); actionBar.addTab(actionBar.newTab().setText("News") .setTabListener(tabListener)); actionBar.addTab(actionBar.newTab().setText("Latest") .setTabListener(tabListener)); Home.java: public class Home extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,

Add a different color for each action bar tabs separately

孤人 提交于 2019-12-31 05:32:01
问题 I need to add a different color for every tabs. For Eg: like this below image MainActivity.java: // Add New Tab actionBar.addTab(actionBar.newTab().setText("Home") .setTabListener(tabListener)); actionBar.addTab(actionBar.newTab().setText("News") .setTabListener(tabListener)); actionBar.addTab(actionBar.newTab().setText("Latest") .setTabListener(tabListener)); Home.java: public class Home extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,