Properties disabled in scene builder - javafx

This is where I can't change allignment and other properties and I don't know why:
Properties
Please help.

SceneBuilder won't let you edit properties which are overridden in CSS (hence the CSS icon).
You can add or remove scene stylesheets by going to Preview > Scene Style Sheets
To view which properties are overridden by CSS, you can press CTRL+6 to bring up the CSS analyzer.

In order for the icon to be displayed when you add it through the SceneBuilder, you must select the absolute path property.
version javafx: 8.0.211
version java: 1.8.0 build 211
It is not visible in my picture, but it must be selected.

Related

Flex Popup not setting child CSS from global style sheet

I have a CustomListItemRenderer class. It's styling, and contained components' styling, are set via an external CSS stylesheet.
When this renderer is used in a list in the main application, everything is set and styled correctly. When this renderer is being used in a list inside of a popup opened through the PopupManager class, the styling is not being set correctly.
This is a Flex Web Application: SDK 4.1
Help is greatly appreciated.
You need to define it in your CSS also as something like PopupManager CustomListItemRenderer{} since popups use different style ancestors. So defining it specifically for use in popups again will fix your issue.

Change button height in WebDynpro ABAP

For a touchscreen I need to increase the height of my buttons in a ABAP WebDynpro Application.
Because there's no attribute for the height I read that it should be possible to add an image to the MIME Repository and then add this image to the button.
I also read that it might be possible to create a own theme with a .css file.
The last one sounds a little bit better to me. Does anyone know how I can create such a theme and apply it to my application?
Thanks for your help!
The simpliest way of resizing height is using MIME image, which I want to describe here:
Create your image with exactly those height that you need. The image could be opaque, transparent or whatever. Image format doesn't matter, as most common formats (jpg, gif, png) are supported.
Import it to your Webdyn Pro component like this: right click on component in repository tree, then -> Create -> MIME object -> Import
After image was successfully imported, just select it using imageSource property of button element, where you can find it on Component images tab.
Voilá! The button adopted the dimensions of the image.

Can we update properties of a css selector at runtime through XML?

I have a CSS file & view (XML) file in our code.
There is a selector, which is having attributes (x, y position, image to display, etc...) for displaying a picture.
We need to display update the attributes of the selector at runtime (specifically image to display), because we will get the image from other source at runtime.
So, is there any way to update attributes of a selector at runtime?

Qt quick controls - where is defined ScrollView orientation?

i created my custom style for ScrollView, but actually i don't know how to check what orientation of scroll is it (horizontal or vertical? I need use different image for each of them).
source code of scrollview style
In this source code, that i found, is used word horizontal, but where it comes from? I don't see any declaration of horizontal property.
It comes from this line. In newer versions of Qt, properties for style components are exposed through the styleData object; this is now standard practice for all Qt Quick Controls styling. In the case of ScrollViewStyle, commit e0c8035c updated the code to use styleData instead.

QT how to get rid of spaces between widgets and their parents

I love designing my userinterfaces in qtdesigner because its just so damn simple. However, there is always space in between widgets and their parents which i want to eliminate.
Example of problem
I create a simple dialog and add a webview to it. Then layout horizontally.To make the parent more obvious I modify its css to make its background color green
Voila, I want to get rid of the green sections because in my view they make the program look ugly.
Link to my ui file.
Download ui file from my dropbox
or get it from pastebin
In Qt Designer, select your top level widget (in this case Dialog), then look at the Property Editor on the right-hand sidebar. Scroll all the way down and you'll see a section referring to the layout assigned to that widget. You want to change the layoutLeftMargin, layoutRightMargin, etc. properties.

Resources