Thanks, Ican't locate it now but I was reading documentation that stated
that Single was used for the basic borders but if you needed inset, outset
and a couple others, you needed to use Double. Well, anyway it seems to be
working now, thanks for the clarification!

Jim



On Tue, Oct 7, 2008 at 12:49 AM, Fabian Jakobs <[EMAIL PROTECTED]>wrote:

> Jim Hunter schrieb:
> > Thanks for the reply. It doesn't help me understand why using the
> > control like it says in the API produces errors, but it did allow me
> > to get an inset border once I replaced the color values you listed
> > with actual colors.
> The error came becuase the Decorator does not support "inset" as line
> style directly. It only supports the values "solid",  "dotted" or
> "dashed" which are supported CSS values in all browsers.
> > Your values came up undefined no matter how I compiled the app. Is
> > there a class that I need to include to get the definitions for these
> > colors?
> I copied the code from the classic theme, which defines these colors as
> well. You can find the definition of the colors in qx.theme.classic.Color.
>
> Best Fabian
>
> > Thanks,
> > Jim
> >
> >
> > On Mon, Oct 6, 2008 at 2:07 AM, Fabian Jakobs <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     Jim Hunter schrieb:
> >     > I am trying to do inset borders and nothing is working. Here is the
> >     > line of code:
> >     >
> >     > this.User.setDecorator( new
> >     > qx.ui.decoration.Double(2,'inset','white',1,'silver'))
> >     >
> >     > and it generates this error:
> >     >
> >     > 12576ms Assertion error! Invalid incoming value for property
> >     > 'styleTop' of class 'qx.ui.decoration.Single': The value 'inset'
> >     must
> >     > have any of the values defined in the array 'solid, dotted, dashed,
> >     > double'
> >     >
> >     > Anyone see the problem here? It says that a Single border has to
> >     have
> >     > a value of 'solid, dotted, dashed, double' but I do not want a
> >     Single,
> >     > I am calling for a Double and according to the documentation,
> >     'inset'
> >     > is a valid Double border type. And are the last 2 params required?
> >     > Previously we just stated that we wanted a 1, 'inset', 'white'
> >     border
> >     > and it handled the color changes to make it look inset. What are
> the
> >     > last 2 params of the Double class doing?
> >     >
> >     > Thansks,
> >     > Jim
> >     The double decorator is used to render a two line border. The first
> >     three constructor parameter configure the outer line and the last two
> >     the inner line. If you use the constructor parameters each edge
> >     will be
> >     configured equally. e.g.
> >
> >     b = new qx.ui.decoration.Double(2,'solid','white',1,'black')
> >
> >     will be a decorator with a white two pixel outer border and a
> >     black one
> >     pixel inner border. You can further configure each edge
> >     independently by
> >     using the decorator's properties.
> >
> >     b.setInnerColorTop("blue")
> >
> >     would set the top inner color to blue.
> >
> >     We use this decorator to simulate an "inset" border. If you use the
> >     classic theme you can just say
> >
> >     widget.setDecorator("inset");
> >
> >     If you are using modern you can create an inset decorator this way:
> >
> >     b = new qx.ui.decoration.Double().set({
> >            width : 1,
> >            innerWidth: 1,
> >            color : [ "border-dark-shadow", "border-light",
> "border-light",
> >     "border-dark-shadow" ],
> >            innerColor : [ "border-dark", "border-light-shadow",
> >     "border-light-shadow", "border-dark" ]
> >     });
> >
> >
> >     Best Fabian
> >
> >
> >     --
> >     Fabian Jakobs
> >     JavaScript Framework Developer
> >
> >     1&1 Internet AG
> >     Brauerstraße 48
> >     76135 Karlsruhe
> >
> >     Amtsgericht Montabaur HRB 6484
> >
> >     Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich,
> >     Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn,
> >     Oliver Mauss, Achim Weiss
> >     Aufsichtsratsvorsitzender: Michael Scheeren
> >
> >
> >
> -------------------------------------------------------------------------
> >     This SF.Net email is sponsored by the Moblin Your Move Developer's
> >     challenge
> >     Build the coolest Linux based applications with Moblin SDK & win
> >     great prizes
> >     Grand prize is a trip for two to an Open Source event anywhere in
> >     the world
> >     http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> >     _______________________________________________
> >     qooxdoo-devel mailing list
> >     [email protected]
> >     <mailto:[email protected]>
> >     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
> >
> >
> > --
> > Jim Hunter
> >
> > DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
> > FOR  ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE
> > STAIRS
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> --
> Fabian Jakobs
> JavaScript Framework Developer
>
> 1&1 Internet AG
> Brauerstraße 48
> 76135 Karlsruhe
>
> Amtsgericht Montabaur HRB 6484
>
> Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss,
> Achim Weiss
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Jim Hunter

DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
FOR  ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE
STAIRS
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to