Status bar, RGB colour as 0-255

Is there a way to show RGB values as 0-255 rather than percentages in the status bar? The RGB option displays floating point numbers, then there's percentatge and HSV options only in the prefs.

If you have a really good reason to do so (otherwise, just for fun) you can build the ability in a project.
Here's an example:
     http://sight-creations.com/fxexchange/RGB_0-255_demo.zip
You can drag the RGB 0-255 group to your Favorites folder in the Motion Library for reuse.
All it is, basically, is 3 number generators (animation turned off) linked to the red, green, and blue color values and scales these to 2.55 times their value. The way Numbers works is the value will be 100 times what you might expect (you can choose different display types -- my preference was Hexadecimal -- aka HTML color).
It's not that difficult to retrain yourself to see number values as decimals or percentages. The range 0 to 255 comes from the Hexadecimal representations translated as base10 values. It really doesn't matter what the "counting" system is, the 3 values represent magnitudes and RGB color is relative to the combination of magnitudes (including saturation and brightness). If any one of the 3 values is 0, the saturation is 100%. All 3 values equal to each other, the saturation is 0%. All colors are the combination of any 2 values with the third value "contributing" to the desaturation (or 1 value and the other 2 equal to each other contributing to desaturation). The maximum of any of the 3 values determines the brightness. If you know your color wheel, that pretty much covers it.

Similar Messages

  • Colours of the status bar in bridge for mac

    hey, can anyone tell me what the colours of the storage status bar at the top of the bridge window mean? which colour stands for wich type of file? why doesn't sony give a legend?!

    Hi simonwf!
    I will contact the development crew ask them about the color and also take up the problem with legends.
    As soon as I have an answer I will write back to you here.
    Best regards
    Fredrik

  • Status bar colour

    hi all
    having read the odd thread on the matter, it appears that the status bar will always be visible, unless the app developer uses an "immersive mode" (http://talk.sonymobile.com/t5/Xperia-Z3-Compact/Status-notification-bar-is-always-on-screen/m-p/9831...)
    I do find what appears to be a intrusive blue background though for the status bar in most apps, when the status bar isn't hidden.
    However, I've noted an occasional status bar, which hasn't this hideous blue background and even the odd one which seems to have a transparent background (or just the colour of the app).
    I'm assuming the blue default background is defined by the OS/OS theme?
    If so, cannot the OS detect the colour of the app and match it, so it's less painful on the eyes?
    Regards,
    Gary

    http://www.google.com/design/spec/components/tabs.html#tabs-specs
    http://stackoverflow.com/questions/27093287/how-to-change-status-bar-color-to-match-app-in-lollipop-...
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • [SOLVED] Vimperator 2.0 CSS file to colorize the status bar

    With Vimperator's new stable release of 2.0, the old CSS file that controls the status line doesn't work anymore.
    I had a lot of trouble fixing it. I looked up the names of a lot of items and converted the old scheme. That wasn't enough, so I copied the default css into my css file (at the top) and changed everything in there too.
    Now I have a css file that is huge and has lots of duplicate data. It also has a white line between status bar and command line that I can't get rid of, and when you enter a : command the : is black on white, instead of red on gray like the rest of the line (there must be more items, I think I used an old CSS scheme (there wasn't one in the trunk)).
    Anyway, I wonder if this can be made simpler and it'd be awesome if the missing stuff above can be added too. And hopefully someone can benefit of the below CSS anyway.
    What it does: make the background light gray, give the status (top) line a dark gray top border, give status bar regular weight black text, and the command bar bold red text.
    #liberator-completions {
    -moz-user-focus: ignore;
    overflow: -moz-scrollbars-none !important; /* does not seem to work fully */
    border-width: 0px !important;
    /*-moz-appearance: none !important; /* prevent an ugly 3D border */
    margin: 0px !important;
    padding: 0px !important;
    /* the selected item in listboxes is hardly readable without this */
    #liberator-completion > listitem[selected="true"] > listcell,
    #liberator-bufferwindow > listitem[selected="true"] > listcell,
    #liberator-previewwindow > listitem[selected="true"] > listcell {
    color: black !important;
    background-color: rgb(230,230,230) !important;
    margin: 0px !important;
    padding: 0px !important;
    /* fixes the min-height: 22px from firefox */
    #status-bar, statusbarpanel {
    -moz-appearance: none !important;
    min-height: 18px !important;
    border: none !important;
    font-weight: bold;
    font-family: monospace;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    color: black !important;
    #status-bar
    border-top: thin solid rgb(100,100,100) !important;
    #liberator-statusline {
    font-family: monospace;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #liberator-statusline > label {
    margin: 0px 5px 0px 5px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #liberator-statusline > label:first-child {
    margin: 0px 5px 0px 5px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #liberator-statusline-field-url {
    color: black;
    background-color: rgb(230,230,230) !important;
    margin: 0px !important;
    padding: 0px !important;
    /* no longer at the window's bottom right corner */
    .statusbar-resizerpanel {
    display: none;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #statusbar-display, #statusbar-progresspanel {
    display: none;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #liberator-commandline {
    margin: 0px !important;
    padding: 0px !important;
    font-family: monospace;
    background-color: rgb(230,230,230) !important;
    color: red !important;
    #liberator-commandline-prompt {
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    color: red !important;
    #liberator-commandline-command {
    background-color: rgb(230,230,230) !important;
    color: red !important;
    margin: 0px !important;
    padding: 0px !important;
    #liberator-visualbell {
    border: none;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    color: red !important;
    #sidebar {
    max-width: 90% !important;
    min-width: 10% !important;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    /* highlight groups */
    .hl-Normal {
    background-color: rgb(230,230,230) !important;
    color: black;
    margin: 0px !important;
    padding: 0px !important;
    .hl-ErrorMsg {
    background-color: red;
    color: black;
    font-weight: bold;
    margin: 0px !important;
    padding: 0px !important;
    .hl-InfoMsg {
    background-color: rgb(230,230,230) !important;
    color: magenta;
    margin: 0px !important;
    padding: 0px !important;
    .hl-ModeMsg {
    background-color: rgb(230,230,230) !important;
    color: black;
    margin: 0px !important;
    padding: 0px !important;
    .hl-MoreMsg {
    background-color: rgb(230,230,230) !important;
    color: green;
    margin: 0px !important;
    padding: 0px !important;
    .hl-Question {
    background-color: rgb(230,230,230) !important;
    color: green;
    margin: 0px !important;
    padding: 0px !important;
    .hl-Title {
    background-color: rgb(230,230,230) !important;
    color: magenta;
    margin: 0px !important;
    padding: 0px !important;
    font-weight: bold;
    .hl-Warning {
    background-color: rgb(230,230,230) !important;
    color: red;
    margin: 0px !important;
    padding: 0px !important;
    .hl-StatusLine {
    background: none !important;
    background-color: rgb(230,230,230) !important;
    color: white !important;
    margin: 0px !important;
    padding: 0px !important;
    .hl-StatusLineSecure {
    background: none !important;
    background-color: #B0FF00 !important; /* light green */
    color: black !important;
    margin: 0px !important;
    padding: 0px !important;
    .hl-StatusLineBroken {
    background: none !important;
    background-color: #FF6060 !important; /* light red */
    color: black !important;
    margin: 0px !important;
    padding: 0px !important;
    .hl-URL {
    background-color: rgb(230,230,230) !important;
    color: green;
    text-decoration: none;
    margin: 0px !important;
    padding: 0px !important;
    /* NOTE: .aClass:hover not supported in quirks mode: http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior */
    a.hl-URL:hover {
    text-decoration: underline;
    cursor: pointer;
    margin: 0px !important;
    padding: 0px !important;
    #liberator-completions, #liberator-multiline-output {
    overflow: hidden;
    background-color: rgb(230,230,230) !important;
    color: black;
    margin: 0px !important;
    padding: 0px !important;
    #liberator-completions-content, #liberator-multiline-output-content {
    white-space: pre;
    font-family: -moz-fixed;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    #liberator-completions-content *, #liberator-multiline-output-content * {
    font: inherit;
    margin: 0px !important;
    padding: 0px !important;
    background-color: rgb(230,230,230) !important;
    /*#liberator-commandline-prompt,#liberator-commandline,#liberator-commandline-command,#liberator-message */
    /*, #liberator-message,#liberator-container,#liberator-bufferwindow, #liberator-completion, #liberator-previewwindow */
    #liberator-container
    background: none !important;
    background-color: rgb(230,230,230) !important;
    -moz-appearance: none !important;
    margin: 0px !important;
    padding: 0px !important;
    #liberator-commandline, #liberator-commandline-prompt, #liberator-commandline-command, #liberator-message,
    #liberator-commandline *, #liberator-commandline-prompt *, #liberator-commandline-command *, #liberator-message *
    background: None !important;
    background-color: rgb(230,230,230) !important;
    color: rgb(255,44,44) !important;
    padding: 0px !important;
    margin: 0px !important;
    font-weight: bold !important;
    border: none !important;
    #liberator-statusline-field-inputbuffer,#liberator-statusline-field-progress,#liberator-statusline-field-tabcount,#liberator-statusline-field-bufferposition,#liberator-statusline,
    #liberator-statusline-field-inputbuffer *,#liberator-statusline-field-progress *,#liberator-statusline-field-tabcount *,#liberator-statusline-field-bufferposition *,#liberator-statusline *
    background: none !important;
    background-color: rgb(230,230,230) !important;
    color: black !important;
    font-weight: normal !important;
    margin: 0px !important;
    padding: 0px !important;
    #liberator-statusline
    background: none !important;
    background-color: rgb(230,230,230) !important;
    color: black !important;
    font-weight: normal !important;
    margin: 0px !important;
    padding: 0px !important;
    .hl-StatusLine
    background-color: rgb(230,230,230) !important;
    margin: 0px !important;
    padding: 0px !important;
    Last edited by Procyon (2009-04-04 22:45:25)

    @anrxc: I see, thanks!
    I didn't notice any speed difference between 2.0 and 1.2.
    Here is the colorscheme I used to get the same effect as above, everything works now:
    I changed some unrelated things and it gave some warning so I commented those out.
    " ==Vimperator_Color_Scheme==
    " name: my
    " ==Defult_Colorscheme_Settings==
    hi Bell border: 0 none; background-color: black;
    hi Boolean color: red;
    hi CmdLine font-family: monospace; padding: 0px;
    hi CmdOutput white-space: pre;
    hi CompDesc color: black; width: 50%;
    "hi CompGroup
    "hi CompGroup:not(:first-of-type) margin-top: 0px; "margin-top: .5em;
    hi CompIcon width: 16px; min-width: 16px; display: inline-block; margin-right: .5ex;
    hi CompIcon>img max-width: 16px; max-height: 16px; vertical-align: middle;
    "hi CompItem
    "hi CompItem>* padding: 0 0; ".5ex;
    "hi CompItem[selected] background: yellow;
    hi CompLess text-align: center; height: 0; line-height: .5ex; padding-top: 1ex;
    hi CompLess::after content: "3" /* Unicode up arrowhead */
    hi CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
    hi CompMore::after content: "4" /* Unicode down arrowhead */
    hi CompMsg font-style: italic; margin-left: 16px;
    hi CompResult width: 45%; overfloaw: hidden;
    hi CompTitle color: magenta; background: white; font-weight: bold;
    hi CompTitle>* padding: 0 .5ex;
    hi ErrorMsg color: white; background: red; font-weight: bold;
    hi Filter font-weight: bold;
    hi FrameIndicator background-color: red; opacity: 0.5; z-index: 999; position: fixed; top: 0; bottom: 0; left: 0; right: 0;
    hi Function color: navy;
    hi Gradient height: 1px; margin-bottom: -1px; margin-top: -1px;
    hi GradientLeft background-color: magenta;
    hi GradientRight background-color: white;
    hi Hint font-family: monospace; font-size: 10px; font-weight: bold; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding 0px 1px 0px 1px;
    hi Hint::after content: attr(number);
    hi HintActive background: #88FF00; color: black;
    hi HintElem background-color: yellow; color: black;
    hi HintImage opacity: .5;
    hi Indicator color: blue;
    hi InfoMsg color: rgb(255,44,44); background: rgb(230,230,230); font-weight: bold;
    hi LineNr color: orange; background: rgb(230,230,230);
    hi Message white-space: normal; min-width: 100%; padding-left: 2em; text-indent: -2em; display: block;
    hi ModeMsg color: rgb(255,44,44); background: rgb(230,230,230); font-weight: bold;
    hi MoreMsg color: green; background: rgb(230,230,230);
    hi NonText color: blue; min-height: 16px; padding-left: 2px;
    hi Normal color: rgb(255,44,44); background: rgb(230,230,230); font-weight: bold;
    hi Null color: blue;
    hi Number color: blue;
    hi Object color: maroon;
    hi Preview color: gray;
    hi Question color: green; background: rgb(230,230,230); font-weight: bold;
    hi Search font-size: inherit; padding: 0; color: blue; background-color: rgb(230,230,230); padding: 0;
    hi StatusLine color: black; background: rgb(230,230,230); border-top: thin solid rgb(100,100,100); border-width: 1px; font-weight: normal;
    hi StatusLineBroken color: black; background: #FF6060; /* light-red */
    hi StatusLineSecure color: black; background: #B0FF00; /* light-green */
    hi String color: green;
    "hi TabClose
    "hi TabIcon
    "hi TabIconNumber font-weight: normal; color: black; text-align: center; text-shadow: black -1px 0 1px, black 0 1px 1px, black 1px 0 1px, black 0 -1px 1px;
    hi TabNumber font-weight: bold; margin: 0; padding-right: .3ex;
    "hi TabText
    hi Tag color: blue;
    hi Title color: magenta; background: white; font-weight: bold;
    hi URL text-decoration: none; color: green; background: inherit;
    hi URL:hover text-decoration: underline; cursor: pointer;
    hi WarningMsg color: red; background: white;

  • How to save status bar background color in local settings(Windows Phone 8.1)

    I have given the user the freedom to change background colour and save it in local settings. But I am confused on how to save the status bar colour settings because I want to give the user the freedom to choose from 4-5 colours where background of status bar
    can be changed.
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    // get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    // set the status bar color
    var statusBar = StatusBar.GetForCurrentView(); // Exception Line
    statusBar.BackgroundColor = color;
    }This is what was suggested to me. Initially the app runs and saves the settings.But when the app is closed and restarted again it crashes.

    Hi shriyansh,
    Where did you call the method SaveStatusBarColor() and LoadStatusBarColor()?
    I have called your SaveStatusBarColor() in the OnNavigatedFrom method and called the LoadStatusBarColor() in the OnNavigatedTo method, it worked very well in my side.
    So I can not reproduce your issue.
    Here are my code and result, please try to check it:
    public class test
    public Color colors { get; set; }
    public sealed partial class MainPage : Page
    List<test> testdemo = new List<test>();
    public MainPage()
    this.InitializeComponent();
    testdemo.Add(new test() { colors = Colors.Red });
    testdemo.Add(new test() { colors = Colors.Green});
    testdemo.Add(new test() { colors = Colors.Gray});
    testdemo.Add(new test() { colors = Colors.Blue });
    this.NavigationCacheMode = NavigationCacheMode.Required;
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    //get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = color;
    statusBar.BackgroundOpacity = 1;
    protected override void OnNavigatedTo(NavigationEventArgs e)
    LoadStatusBarColor();
    protected override void OnNavigatedFrom(NavigationEventArgs e)
    SaveStatusBarColor();
    private void ChangeColorButton_Click(object sender, RoutedEventArgs e)
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = testdemo[Convert.ToInt32(Mytextbox.Text)].colors;
    statusBar.BackgroundOpacity = 1;
    The result:
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dstatus - dwm status bar

    Hey guys,
    for quite some time I've been working on dstatus for my own desktop. To share and improve dstatus I'd like to introduce it to the ArchLinux community now. dstatus is a small but expandable status application designed for use with dwm. While it certainly doesn't fit the suckless approach due to its use of plugins it now works rather nice.
    Features:
    - dstatus features a plugin system. This makes it easy to add new plugins that add information not accessible right now.
    - dstatus features groups. Groups bind together parts of your status line. If a dynamic part of that group becomes undisplayable (muted volume for example) the whole group will be hidden.
    - dstatus' format can be configured via config.h. It's syntax is described in the project's README.
    - dstatus' plugins can be configured via config.mk. It enables to exclude certain plugins from compilation and installation
    Currently there aren't many plugins, just some basic stuff for time, volume, mpd and battery. I'd be happy to accept contributions for new plugins.
    If you're interested compile and try this small application and provide some feedback. The project can be found at Bitbucket.
    Here's a link to the dstatus AUR package.
    Regards,
    Patrick
    Last edited by pks (2013-06-06 17:15:03)

    mauritiusdadd wrote:
    derrickcope wrote:What I am asking is shouldn't it be able to do it already without patching? Bash can output color so why do I have to patch?
    No. Bash can show colours because it can parse and interpret the escape sequences. Dwm code lacks of that feature and for this reason you have to apply a patch.
    Thanks, that's what I was asking. If xsetroot -name can accept bash sequences then wouldn't it be simple just to use this to show color. @jasonwryan is right, I do need to read up more on dwm. Since I am in China it is problematic to search for things on the web even with a vpn and the suckless website is sparse on infomation.
    Seems that this would be the easiest way to add color to the status bar but maybe "xsetroot -name" doesn't output in color even though it does have "-fg -bg" switches.

  • DWM status bar

    Why doesn't this show color status in the dwm bar?
    red="echo -e \033[34;41mColor Text\033[0m"
    xsetroot -name $red
    Is my code wrong? or is DWM or Xsetroot removing the color?
    Last edited by derrickcope (2015-05-04 04:09:49)

    mauritiusdadd wrote:
    derrickcope wrote:What I am asking is shouldn't it be able to do it already without patching? Bash can output color so why do I have to patch?
    No. Bash can show colours because it can parse and interpret the escape sequences. Dwm code lacks of that feature and for this reason you have to apply a patch.
    Thanks, that's what I was asking. If xsetroot -name can accept bash sequences then wouldn't it be simple just to use this to show color. @jasonwryan is right, I do need to read up more on dwm. Since I am in China it is problematic to search for things on the web even with a vpn and the suckless website is sparse on infomation.
    Seems that this would be the easiest way to add color to the status bar but maybe "xsetroot -name" doesn't output in color even though it does have "-fg -bg" switches.

  • Lollipop 5.0 Status Bar

    Hi,
    I updated my Xperia Z1 Compact to Lollipop 5.0 at the weekend.
    There are many things that I don't like it, especially the BIG icons!, however one thing that annoys me everyday is the colour of the status bar. 
    I would prefer if the status bar was permanently black like previous android versions.  Does anyone know how I can change this?

    It can't be changed.
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • How do I turn off and on the icon size slider bar at the lower right status bar of a folder window.

    I have been trying for days to help a friend with a new iMac to turn on the icon size slider bar that on my iMac appears at the bottom of ever folder when it is open when in the "view" > "icon" mode.  I cannot find anything that discusses this slider bar.  I can turn this status bar off and on on both my machine and my friends machine, but I cannot turn off or on the slider on either machine. 

    This did not help.  I am a Mac User since 1984 and generally I am never stymied buy the Mac OS, but this one has me.   I can open and close the lower status bar, as you described, and that works fine for me because I have the icon slider bar already there and it works fine; however when I open the lower status bar on my friends machine there is no icon size slider bar, and I can't seem to find out how to get it there, as it is on my machine or at all. The icon size can be controlled from the View menu, but as a photographer, it is really handy to have it at the bottom of the folder window.  Thanks for trying. 

  • The status bar is pushed up at about 3/4 of the screen, so I can view onlu firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full vi

    The status bar is pushed up at about 3/4 of the screen, so I can view only Firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full view
    == This happened ==
    Every time Firefox opened

    Your code is absolutely unreadable - even if someone was willing to
    help, it's simply impossible. I do give you a few tips, though: If you
    understand your code (i.e. if it really is YOUR code), you should be
    able to realize that your minimum and maximum never get set (thus they
    are both 0) and your exam 3 is set with the wrong value. SEE where
    those should get set and figure out why they're not. Chances are you
    are doing something to them that makes one 'if' fail or you just
    erroneously assign a wrong variable!

  • How can I create a status bar at the bottom of a window ?

    I would like to create a status bar at the bottom of my main window similiar to "Internet explorer" has. I thought of using a tool bar but I can't see how to keep it positioned at the bottom of the window when the window is resizable. Any other ideas on how to do this the bar only needs to contain a small amout of text and maybe an icon or two.

    CVI doesn't have a status bar control on UI element like the one available in Visual Studio++. The best way to replicate this is most like through a string control that is resized and positioned to remain at the bottom of the window and colored to look appropriately. I have also seen the combination of a decoration and a text message used.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • How can I implement a status bar at the bottom of a resizable application?

    Hello all,
    I am a JavaFx newbie and I am implementing an application (a Sokoban game), with a menu at the top of the frame and a gaming area covering the rest of the frame. To support the game, I have to load images at certain positions in the gaming area.
    The game also includes a level editor with another menubar and where images are set to other positions.
    I implemented this in another view, swiching from the game mode to the level editor mode and vice versa is just done by setting the other view visible. Up to now this works, here the important statements building these details:
    Group root = new Group();
    gameView = new Group(); // for gaming mode
    le_view = new Group()   // for level editor mode
    MenuBar gameMenubar = new MenuBar();
    Menu menuGame = new Menu(bundle.getString("MenuGame"));
    ... building the menu items and menues ...
    gameView.getChildren().add(gameMenubar);
    ImageView buildingView[][] = new ImageView[22][22];
    for (nCol = 0; nCol < 22; nCol++) {
        for (nRow = 0; nRow < 22; nRow++) {
            buildingView[nCol][nRow] = new ImageView();
            buildingView[nCol][nRow].setX(nCol * 26 + 5);
            buildingView[nCol][nRow].setY(nRow * 26 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
    gameView.setVisible(true);
    root.getChildren().add(gameView);
    ... same stuff to build the le_view ...
    le_View.setVisible(false);
    root.getChildren().add(le_View);
    Scene scene = new Scene(root, 800, 600, Color.CORNSILK); Now I want to introduce a status bar at the bottom of the frame, which of course has to follow the bottom of the frame, if it is resized. And of course the menu and the status bar should not grow vertically, if the height of the frame is increased.
    The implementation seems to be easy with StackPane for the frame and one BorderPane for each mode.
    For the first step I only tried implementing the game mode with only one BorderPane (just setting the menu, the gaming area and the status bar each into a HBox and setting these three HBoxes at the top, into the center and at the bottom). I also tried this via GridPane and via VBox; I always get any erroneous behaviour:
    Either the menubar is visible, but the menus do not pop up the menu items, or the anchor point of the menu and of gaming area are set 100 pixels left of the left frame border and move into the frame when the frame width is increased, or the menu is set 20 pixels below the top of the frame, or HBox with the menu grows when the frame height is increased, so that the anchor point of the gaming area moves down.
    Can you describe me a correct construction of such a frame? Thanks in advance.
    Best regards
    Gerhard

    Hello Gerhard,
    Glad the code helped, thanks for a fun layout exercise.
    For the draft code I just pulled an icon off the internet over a http connection.
    If you haven't done so already place any icons and graphics you need local to your project, so that resource lookups like:
    Image img = new Image("http://www.julepstudios.com/images/close-icon.png");become
    Image img = new Image("close-icon.png");then performance may improve.
    Another possible reason for your performance problem could be that when you use a vbox, the vbox content can overflow the area of the borderpane center and might be sitting on top of the menu pane, making you unable to click the menu (which is what happens to me when I try that with the draft program with the vbox wrapping mod, then resize the scene to make it smaller). This was a trick which caught me and the reason that I used a Group originally rather than a vbox. I found a vbox still works but you need to tweak things a bit. The trick I saw was that the order in which you add stuff to the borderpane is important. The borderpane acts like a stack where the last thing added floats over the top of everything else if you size the scene small enough. For your project you want the menu on top always, so it always needs to be the last thing added to the borderpane, but when you swap in the level pane for the game pane, then back out again, the game pane can end up on top of the menu which makes the menu seem like you can't click it (only when the scene is sized small enough). It was quite a subtle bug which took me a little while to work out what was happening. For me the solution was to add just one vbox to the center of the border, and then swap the game pane and the level editor in and out of the vbox, that way the center of the layout always stayed behind the menu bar and the status bar.
    I added some revisions to reflect the comments above and placed some comments in the code to note what was changed and why.
    public class SampleGameLayoutRevised extends Application {
      public static void main(String[] args) { Application.launch(args); }
      public void start(Stage stage) throws Exception {
        final BorderPane gameLayout = new BorderPane();
        final Group gameView = new Group();
        final MenuBar gameMenubar = new MenuBar();
        final Menu gameMenu = new Menu("Mode");
        final VBox centerView = new VBox();
        centerView.setStyle("-fx-background-color: darkgreen");  // we set a background color on the center view to check if it overwrites the game menu.
        MenuItem playGameMenu = new MenuItem("Play Game");
        MenuItem levelEditMenu = new MenuItem("Edit Levels");
        gameMenu.getItems().add(playGameMenu);
        gameMenu.getItems().add(levelEditMenu);
        gameMenubar.getMenus().add(gameMenu);
        final StackPane levelEditView = new StackPane();
        levelEditView.getChildren().add(new Text("Level Editor"));
        ImageView buildingView[][] = new ImageView[22][22];
        Image img = new Image("http://www.julepstudios.com/images/close-icon.png");  // use of http here is just for example, instead use an image resource from your project files.
        for (int nCol = 0; nCol < 22; nCol++) {
          for (int nRow = 0; nRow < 22; nRow++) {
            ImageView imgView = new ImageView(img);
            imgView.setScaleX(0.5);
            imgView.setScaleY(0.5);
            buildingView[nCol][nRow] = imgView;
            buildingView[nCol][nRow].setX(nCol * 20 + 5);
            buildingView[nCol][nRow].setY(nRow * 20 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
        final VBox statusBar = new VBox();
        final Text statusText = new Text("Playing Game");
        statusBar.getChildren().add(statusText);
        statusBar.setStyle("-fx-background-color: cornsilk"); // we set a background color on the status bar,
                                                              // because we can't rely on the scene background color
                                                              // because, if the scene is sized small, the status bar will start to overlay the game view
                                                              // and if we don't explicitly set the statusBar background the center view will start
                                                              // to bleed through the transparent background of the statusBar.
        gameLayout.setCenter(centerView); // we add the centerview first and we never change it, instead we put it's changeable contents in a vbox and change out the vbox content.
        gameLayout.setBottom(statusBar);
        gameLayout.setTop(gameMenubar);   // note the game layout is the last thing added to the borderpane so it will always stay on top if the border pane is resized.
        playGameMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(gameView);
            statusText.setText("Playing Game");
        levelEditMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(levelEditView);
            statusText.setText("Editing Level");
        playGameMenu.fire();
        Scene scene = new Scene(gameLayout, 800, 600, Color.CORNSILK);
        stage.setScene(scene);
        stage.show();
    }Other than that I am not sure of a reason for the slowdown you are seeing. In my experience JavaFX has been quick and responsive for the tasks I have been using it for. Admittedly, I just use if for a bunch of small trial projects, but I've never seen it unresponsive for a minute.
    - John

  • Error message in a BADI getting displayed in a popup instead of status bar

    Hello All,
    I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
    The BADI gets called on clicking 'Save' from transaction o3I8.
    Within the  BADI i am giving an error message using the following command:
    Message e000(ZABC) .
    However , the message gets displayed in a pop up instead of the status bar .
    The same is for information and warning messages.
    Any suggestions on how to display them in the status bar ?
    TIA
    Regards,
    Vartika

    Hi Brad,
    The checkbox to display messages in pop-up  is already switched off.
    Still themessages are getting displayed in pop-up.
    Regards,
    Vartika

  • Why does the address/status bar not work?

    After updating to 9.0.1, my status bar will not work, or my address bar. If I try to type in anything and press enter into the address bar, nothing happens. Also, I cannot press forward or back as they always remain grayed out. The only way I can get to a website is by pressing home, which is thankfully google. I have to google the url to go to it.
    Remembering now actually, I copied all the folders from the main firefox folder and pasted them into a new install of firefox (I had this problem actually before firefox updated). I was hoping that copying these folders would save my addons and etc. after I downloaded a new firefox and re-installed it. I put the folders back and firefox is still messed up :/
    I just want it to work more Q_Q

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to Show String Error Message in SAP status bar?

    Hello All,
    I am doing some custom check in SBO_SP_TransactionNotification and Setting
       SET @error = -1
       SET @error_message='Duplicate Web Order ID'
       select @error,  @error_message 
    But in SAP interface it is only showing -1 in status bar, I could not show error_message in status bar. How it could be achieved.
    Thanks in advance

    Hi
    try this
    SET @error = 1
    SET @error_message='Duplicate Web Order ID'
    select @error, @error_message
    Regards
    Arun

Maybe you are looking for

  • Error Getting while opening an adobe attachment "Output cannot be displayed because an error occured "

    Hello Experts, In our project where CRM Web ui is UI technology used, i am displaying list of attachments in one block. WHen i am clicking on these adobe form outputs which are in the form of links, i am getting an error "Output cannot be displayed b

  • SOAP Adapter option is disabled in adapter monitoring

    Hi I am trying a simple SOAP to FTP scenario. I have done all the steps in the repository as well as the directory and i have even activated it, but in adapter monitoring the SOAP adapter option is disabled. Hope someone could help me out on this. Th

  • Placing tabs below the address bar

    Hi everyone, I recently had to "refresh" Firefox because Adblock Plus kept getting disabled somehow. Now I'm having a hard time getting my layout back to what I'm accustomed to. What I would like is to have the following layout: [Menu bar] <br> [Addr

  • HT1535 The iPod tab next to the iTunes store tab pictured is not shown on my computer.

    I cant sync my music to my iPod anymore because it doesnt show up on the taskbar at the top. Is this an iTunes 11 update change, or is it because of my Windows 8 computer, or is it the settings I have on my computer by default.

  • Can't install on OS X

    I'm trying to install Adobe Air 1.0 (not the SDK) on OS X 10.4.11 (PowerPC G4) and the install keeps crapping out with the following error: quote: Sorry, an error has occurred An error has occurred while installed Adobe AIR. Installation may not be a