M micro Well-Known Member Licensed User Longtime User Nov 27, 2015 #1 Hi to all this is my problem with internal designer. The object place in layout is an Image, in Propieters Extra CSS i have add this code: B4X: border-style: solid; border-color: "red"; but the border has never show. Why? Thanks
Hi to all this is my problem with internal designer. The object place in layout is an Image, in Propieters Extra CSS i have add this code: B4X: border-style: solid; border-color: "red"; but the border has never show. Why? Thanks
stevel05 Expert Licensed User Longtime User Nov 27, 2015 #2 Have you set the width of the border? Try: B4X: border-style: 2px solid; border-color: "red"; Edit: see below Last edited: Nov 27, 2015 Upvote 0
Have you set the width of the border? Try: B4X: border-style: 2px solid; border-color: "red"; Edit: see below
stevel05 Expert Licensed User Longtime User Nov 27, 2015 #3 OK Strike that, I have been using a lot of standard CSS lately, JavaFX css is different, you need: B4X: -fx-border-style: solid; -fx-border-color: red; Complete reference is here: https://docs.oracle.com/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html Upvote 0
OK Strike that, I have been using a lot of standard CSS lately, JavaFX css is different, you need: B4X: -fx-border-style: solid; -fx-border-color: red; Complete reference is here: https://docs.oracle.com/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html
Daestrum Expert Licensed User Longtime User Nov 27, 2015 #4 I think you need to wrap the imageview in a pane or anchorpane as imageview does not have a css border attribute, only regions have them. Upvote 0
I think you need to wrap the imageview in a pane or anchorpane as imageview does not have a css border attribute, only regions have them.
M micro Well-Known Member Licensed User Longtime User Nov 27, 2015 #5 stevel05 said: OK Strike that, I have been using a lot of standard CSS lately, JavaFX css is different, you need: B4X: -fx-border-style: solid; -fx-border-color: red; Click to expand... Not work Upvote 0
stevel05 said: OK Strike that, I have been using a lot of standard CSS lately, JavaFX css is different, you need: B4X: -fx-border-style: solid; -fx-border-color: red; Click to expand... Not work
stevel05 Expert Licensed User Longtime User Nov 27, 2015 #6 See Daestrum's comment, you need to wrap the image view in a pane of some description and apply the border to that. Otherwise you will have to draw the border directly to the image view in code. Upvote 0
See Daestrum's comment, you need to wrap the image view in a pane of some description and apply the border to that. Otherwise you will have to draw the border directly to the image view in code.