I want a spanlabel show text like
codename one
and code is blue and bold, name is red and bold. How do I achieve this?
That isn't supported by SpanLabel. You can either use a BrowserComponent and style the entries or use several different labels in a FlowLayout Container thus giving each of them the ability to be styled on its own.
Related
Please how can I achieve this kind of spacing between containers. I also notice the containers have some kind of Bevel raise. How can I achieve that too (from code).
This looks like a Tabs container which you can use to achieve that look. However you can do a custom version with a simple grid layout so something like this:
Container cnt = GridLayout.enclose(4, home, alarm, search, settings);
Will produce the grid effect where they take up the space. You might need to center align the buttons within that grid.
To me the line at the bottom seems like just a line in a solid color which you can achieve with the underline border on your style followed by a gray spacer.
I am using DB-Visualizer 9.2.10 and I want to change the border color of the editor but I don't see any border option to change. Below image shows the options colors and borders but in my pro version I don't see this option. Is there any other way to accomplish the same.
Thanks
You should be able to change the border by going to Tools -> Properties.
You can either select one of the predefined styles or specify a small image file to use for the border.
You should also be able to change it by going to Database -> Connections
I want to apply RoundBorder style to MultiButton Line2 label when horizontal layout is set to true but calling mb.setHorizontalLayout(true); but I can't because LineX labels are not accessible outside the MultiButton.
I know that I can create curved border using theme designer and applying the uiid to the label using any of the setUIIDLineX() method but I don't want to use it because it didn't give me what I want in some device pixel density.
Is there any other way to style MultiButton internal components(Labels) through code?
Again, why is it that LineX labels are not exposed like icon label?
Exposing the LineX labels will equally enable developers to set icons for the individual labels depending on what the developer want to accomplish.
Thanks.
No one asked for that so we didn't add such getters. You can file an RFE for that or submit a pull request which will probably be quicker.
Notice you can style the round border in the current version of the designer so you can use a the UIID's to set the round border too.
How do I modify the height, background, margin and padding of the statusbar in Codename one?
It looks very bad.
Don't base the look of the statusbar on simulator output, this will be different from the looks on real devices.
If you want to style the statusbar, modify UIIDs StatusBar and StatusBarSideMenu to your desire.
As Diamond said, you should modify UIIDs StatusBar and StatusBarSideMenu.
The way to do that is the following:
Open theme.res file
Find the theme under Themes
Open the UIID you want to change, if it is not present, click Add.
Type the name of the UIID
Change the style however you wish
Then call .setUIID() method on the component on which you want to do that. Note that components by default get UIID, for example Label has UIID "Label" and so on, so you won't need to call setUIID.
Im new to gtk+ 3 and I want to create for my app, Preferences dialog. Don't use glade only C.
My questions is how create space between green line and red line using gtk_grid.
Tanks for any help
Align "Start playing files..." check box at 20 relative to "Playback" label.
As the GtkGrid documentation says:
GtkGrid is a container which arranges its child widgets in rows and
columns. It is a very similar to GtkTable and GtkBox, but it
consistently uses GtkWidget's "margin" and "expand" properties instead
of custom child properties, and it fully supports height-for-width
geometry management.
So you set the margin not on the grid, but on each widget inside the grid, by using GtkWidget's margin, margin-bottom, margin-top, margin-left or margin-right properties.
There's more on GtkGrid about that in the GTK documentation
Have a look at GtkAlignment Widget - provides horzontal alignment, vertical alignment , padding (all 4 directions) (I guess this is what you are looking for), and some others