Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5936021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:20:22+00:00 2026-05-22T15:20:22+00:00

I wish to create a window with a title bar and button bar but

  • 0

I wish to create a window with a title bar and button bar but do not wish to use a tab group.

I tried the following without success:

var win = Titanium.UI.createWindow({
    title: "Home",
    backgroundColor: '#bbb',
    navBarHidden:false
});
var b = Titanium.UI.createButton({
    title:'Button',
    style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
});
win.setToolbar([b]);
win.add(Titanium.UI.createLabel({text: "Label"}));
win.open();

Neither the toolbar or the title show, however if I place this content inside a TabGroup it functions as expected.

If I can’t get this behaviour by default, could someone please demonstrate how to create a label (or button) using the system rendered style for the title and if its possible to do something similar to get the button bar at the bottom?

The following does work:

var win = Titanium.UI.createWindow({
    title: "Home",
    backgroundColor: '#bbb',
    navBarHidden:false
});
var b = Titanium.UI.createButton({
    title:'Button',
    style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
});
win.setToolbar([b]);
win.add(Titanium.UI.createLabel({text: "Label"}));
var tabGroup = Titanium.UI.createTabGroup();
tabGroup.addTab(Titanium.UI.createTab({
    title:'Home',
    window:win
}));
tabGroup.open();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:20:23+00:00Added an answer on May 22, 2026 at 3:20 pm

    It seems I can get what I’m after by wrapping my window in another window using a navigation group:

    var win = Titanium.UI.createWindow({
        title: "Home",
        backgroundColor: '#bbb'
    });
    var b = Titanium.UI.createButton({
        title:'Button',
        style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
    });
    win.setToolbar([b]);
    
    var nav = Titanium.UI.iPhone.createNavigationGroup({
        window:win
    });
    var root = Titanium.UI.createWindow();
    root.add(nav);
    root.open();
    

    I don’t really need the navigation group, but it does what I’m after.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a template with GetOpenFileName without success. I've found very little
i wish to create a repository pattern but with a WCF Rest Service which
I wish to create a very simple web app that simply displays an Image(s)
I am using WiX to create an installer, and wish to share a folder
I wish to use xml and xsl to generate controls on an asp.net page.
I wish to test a function that will generate lorem ipsum text, but it
I am working with Windows Forms, is it possible to create a window which
I'm looking to create a flexible width/height page layout with no window scrollbars! Any
I wish to launch a separate thread for handling window messages (via a blocking
I wish to draw individual pixels on a screen in a window or something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.