Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » custom controls: borders
custom controls: borders [message #105855] Mon, 22 September 2008 10:44 Go to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Hello everybody,

I'm using that stripped down version of qooxdoo which comes with rap.
How can I adjust the Terminator's border, for example?

Thanks
Re: custom controls: borders [message #105887 is a reply to message #105855] Mon, 22 September 2008 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Dmitry,

best would be to use theming (see Theming for custom widgets[1]) to
achieve this.
A simpler approach would be to set the border property of the
client-side widget directly (e.g. in its 'constructor'). See the qx
API viewer for reference documentation [2].

HTH
Rüdiger

[1]
http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/theming-custom.html

[2] http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.core.Widget

-----------------------------
Rüdiger Herrmann
Innoopract
http://innoopract.com
delivering eclipse technology

Dmitry Pryadkin wrote:
> Hello everybody,
>
> I'm using that stripped down version of qooxdoo which comes with rap.
> How can I adjust the Terminator's border, for example?
>
> Thanks
Re: custom controls: borders [message #105901 is a reply to message #105887] Mon, 22 September 2008 11:32 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Hello Rüdiger,

I was reading [2], tried "terminator.setBorder("inset-thin");" and failed.

Another question. I have two GroupBox'es set on VerticalBoxLayout and
they do overlap a bit. How do I rectify it?

Thanks


Rüdiger Herrmann wrote:
> best would be to use theming (see Theming for custom widgets[1]) to
> achieve this.
> A simpler approach would be to set the border property of the
> client-side widget directly (e.g. in its 'constructor'). See the qx API
> viewer for reference documentation [2].
> [1]
> http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/theming-custom.html
> [2] http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.core.Widget
Re: custom controls: borders [message #105915 is a reply to message #105901] Mon, 22 September 2008 11:44 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Please take a look at those groupboxes, something weird is happening:

http://www.picamatic.com/show/2008/09/22/03/41/1058112_350x2 56.PNG


Dmitry Pryadkin wrote:
> Hello Rüdiger,
>
> I was reading [2], tried "terminator.setBorder("inset-thin");" and failed.
>
> Another question. I have two GroupBox'es set on VerticalBoxLayout and
> they do overlap a bit. How do I rectify it?
>
> Thanks
>
Re: custom controls: borders [message #105929 is a reply to message #105901] Mon, 22 September 2008 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Dmitry,

please see my comments below.

HTH
Rüdiger
-----------------------------
Rüdiger Herrmann
Innoopract
http://innoopract.com
delivering eclipse technology

Dmitry Pryadkin wrote:
> Hello Rüdiger,
>
> I was reading [2], tried "terminator.setBorder("inset-thin");"
and failed.
you need to pass a qx.ui.core.Border object to setBorder().
e.g.
var border = new qx.ui.core.Border( 2, "inset-thin" );
terminator.setBorder( border );

>
> Another question. I have two GroupBox'es set on VerticalBoxLayout
and they do overlap a bit. How do I rectify it?
The actual experts on the qooxdoo mailing-list will probably know an
answer.
Don't forget to mention that you are working with qx 0.7.3 (not 0.8.x).

>
> Thanks
>
>
> Rüdiger Herrmann wrote:
>> best would be to use theming (see Theming for custom widgets[1])
to achieve this.
>> A simpler approach would be to set the border property of the
client-side widget directly (e.g. in its 'constructor'). See the qx
API viewer for reference documentation [2].
>> [1]
http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/theming-custom.html
[2] http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.core.Widget
Re: custom controls: borders [message #105943 is a reply to message #105929] Tue, 23 September 2008 05:51 Go to previous message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Thanks, Rüdiger, for your answer. BTW I've got what I wanted. I did
"verticalboxlayout.setSpacing(8);" hence the overlapping is gone.

> please see my comments below.
>
> HTH
> Rüdiger
> -----------------------------
> Rüdiger Herrmann
> Innoopract
> http://innoopract.com
> delivering eclipse technology
>
> Dmitry Pryadkin wrote:
> > Hello Rüdiger,
> >
> > I was reading [2], tried "terminator.setBorder("inset-thin");" and
> failed.
> you need to pass a qx.ui.core.Border object to setBorder().
> e.g.
> var border = new qx.ui.core.Border( 2, "inset-thin" );
> terminator.setBorder( border );
>
> >
> > Another question. I have two GroupBox'es set on VerticalBoxLayout and
> they do overlap a bit. How do I rectify it?
> The actual experts on the qooxdoo mailing-list will probably know an
> answer.
> Don't forget to mention that you are working with qx 0.7.3 (not 0.8.x).
>
> >
> > Thanks
> >
> >
> > Rüdiger Herrmann wrote:
> >> best would be to use theming (see Theming for custom widgets[1]) to
> achieve this.
> >> A simpler approach would be to set the border property of the
> client-side widget directly (e.g. in its 'constructor'). See the qx API
> viewer for reference documentation [2].
> >> [1]
> http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/theming-custom.html
> [2] http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.core.Widget
>
Previous Topic:Language pack
Next Topic:Rap plan
Goto Forum:
  


Current Time: Wed Jan 15 11:59:43 GMT 2025

Powered by FUDForum. Page generated in 0.03790 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top