Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Window header layout

$
0
0
I am trying to create a window with some custom controls in header but I need to have those controls appear right after headerLabel on the left instead of right before the close button on the right

This code creates a button just before the close button
Code:

isc.Window.create({
        autoDraw: true,
        title: "Title",
        width: "100%",
        height: "100%",
        headerControls : [
                "headerLabel",
                isc.Button.create(),
                "closeButton"
        ]
});

I tried to add a LayoutSpacer after the button but it makes headerLabel too wide (takes half of total header width)
Code:

isc.Window.create({
        autoDraw: true,
        title: "Title",
        width: "100%",
        height: "100%",
        headerControls : [
                "headerLabel",
                isc.Button.create(),
                isc.LayoutSpacer.create(),
                "closeButton"
        ]
});

I also tried to add a LayoutSpacer with 100% width after the button but it makes headerLabel invisible (pushes button too far to the left and makes headerLabel too small to see title)
Code:

isc.Window.create({
        autoDraw: true,
        title: "Title",
        width: "100%",
        height: "100%",
        headerControls : [
                "headerLabel",
                isc.Button.create(),
                isc.LayoutSpacer.create({width:"100%"}),
                "closeButton"
        ]
});

Any help would be appreciated

Viewing all articles
Browse latest Browse all 4756

Trending Articles