Titanium: How to close TabGroup within its Tab? - titanium

How can I close the TabGroup within one of its tab ?
I want to close the tabGroup on a button click (Log out button) and want to display a window without the tab group. I know how to display a window but could find how to close tab group ?
I think, to hide tab group is not proper way. Also on another button (Login button) I am creating the tab group so...
Any suggestions ?
Thanks...

Just do this:
TabGroup.close();
Put your tabgroup name instead of TabGroup.
EDIT:
If you want to access your tab grop through out the app do this in your app.js file:
Ti.App.customTabGroup = customTabGroup;
and close the tabgroup like this:
Ti.App.customTabGroup.close();

Related

javafx: adding tabs dynamically when user opens a new file

This is my edited question.. I want a new tab to be displayed in the same window. In the main window, i have a menu bar. Suppose the user clicks open, a new tab must be created in the same window below the menu bar and so on..
Kindly give me some pointers since I am a beginner in javafx. I appreciate your time and effort.
use tabpane and add tabs to it programmatically
TabPane tabPane = new TabPane();
Tab mytab = new Tab("tab to be created programmatically");
mytab.setContent(put your data here);
tabPane.getTabs().add(mytab);
the tabpane should be in the window/node/scene that you are flirting with ...that's all

Intellij toolwindow close/open or show/hide programatically

I have used the Intellij's tool window as the main frame. On click of a button from the same window, another window (jdialog) opens. When the jDialog box opens, i want to hide or close the tool window. And when the user clicks the stop button in the jDialog box, I want the tool window to appear again.
I have tried to set the visible property to false, like
toolWindow.getComponent().setVisible(false);
This just hides the content, but not the tool window itself.
Can you please suggest me a way to achieve this.
This is how you show/active it:
toolWindow.activate(null);
so hide could be like this:
toolWindow.hide(null);
and close like this:
ContentManager contentManager = toolWindow.getContentManager();
contentManager.removeAllContents(true);
contentManager.dispose();
(but I have not tried it :))

Working with Multiple Windows

In my MainMenu.xib, I have the main window of my app with web view, Now i have added a new window (with text field and button) in MainMenu.xib.
I have problem to add a menu tab where i click and my newly added window appears (Not on app Launching). How to connect menu tab item with window..???
Thanks in Advance
Would you like to do it without a single line of code?
i.e. Using Binding.
Here we go:
Create a secondary Window that you want to open on menu click.
Uncheck "Release when Close"
Create a new menu item : ctrl+drag from menu to window, select "makeKeyAndOrderFront"
That's it.

vb.net - tab control?

I have a Tab Control on a Winform. I want to add another page but I want it to appear between the current page 1 and page 2, basically I want to insert it. How can I do this?
If you are looking to do this from the deseigner:
Under the TabControl Properties,
select TabPages. This will bring up
the tab pages dialog.
Click the Add button. Should add a
new tab page at the end.
Use the arrows to move the page to
the position required.
If you wish to do this from code:
Have a look at TabControl.TabPages.Insert
Inserts a tab page into the collection
at the specified index.

Oracle Form Builder: Switching between tabs in a form

i am building a form in oracle forms builder
i have a tabbed canvas
i need to know how to swap to the next tab when a button is pressed
so what do i program into the next-tab button??
Best way normally is to navigate to an item on the new tab page, e.g.
GO_ITEM('BLOCK_NAME.ITEM_NAME');
OR you can make the tab page topmost explicitly:
SET_CANVAS_PROPERTY('CANVAS_NAME', TOPMOST_TAB_PAGE, 'TAB_PAGE_NAME');