gridlayout background [message #901115] |
Thu, 09 August 2012 17:00  |
Eclipse User |
|
|
|
Mac OSX 10.6.8
Eclipse Inidgo 3.7 2 bit
EGL 0.8.1
I am trying to display a background image in a widget on a gridlayout using a css class (code below). I do not see the image in design or preview.
My css file is in webcontent>css.
My image is in webcontent>css>icons.
I am using this path without issue in other code.
Is what I am trying to do possible (background image on gridlayout)? Or do I have a coding problem? Can anyone help with this?
package client;
import org.eclipse.edt.rui.widgets.GridLayout;
handler WelcomeBox type RUIWidget{targetWidget = welcomeGrid, onConstructionFunction = start, cssFile = "css/CuttingInstructions.css", @VEWidget{category = "Custom"}}
welcomeGrid gridlayout{ rows = 5, columns = 1,
height = 385,
width = 655,
class = "dialogpanelc",
children = [ ]};
function start()
end
end
.dialogpanelc {
background-image: url("icons/dialogpanelc.jpg");
background-repeat: no-repeat;
}
|
|
|
|
|
Re: gridlayout background [message #903212 is a reply to message #901115] |
Wed, 22 August 2012 10:04  |
Eclipse User |
|
|
|
FYI:
This does work.
updateGrid GridLayout{ columns = 1, rows = 4, cellPadding = 4, children = [ ],
width = 300,
height = 300,
background = "url(css/icons/loadingimage300x300.gif)" };
Thx,
Nathan Reed
[Updated on: Wed, 22 August 2012 10:05] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06544 seconds