On 2009-03-20, at 21:56EDT, P T Withington wrote:

On 2009-03-20, at 18:46EDT, Antun Karlovac wrote:

Debug.explainStyleBindings didn't work at all for me. Was it added after the 4.0.x build of OpenLaszlo that Webtop uses?

Ah, it may be only in 4.2. I guess I added that when I was optimizing the code, but must not have ported that back to 4.0.x. If it's not in the Debugger doc, it is probably not there... Bummer.

It's only really in _trunk_. Even in 4.2 it is only partially implemented. Sorry for the mis-direction.

Here's an example of it's usage:

http://labs.openlaszlo.org/trunk-nightly/docs/developers/programs/color-$3.lzx?lzt=swf

Perhaps more interesting is to look at some of the tests in test/style/ metasuite.lzx, e.g.:

lzx> Debug.explainStyleBindings(gEverest)
/* @attrselector/attrs.lzx#2 (specificity 10, order 9) */
[group=everest] {
  innercolor: 2447660;
}
/* @elementselector/elementselector-test.lzx#0 (specificity 1, order 56) */
designerview {
  innercolor: 1985909;
  miscdata: 'uc berkeley';
  width: 279;
}
/* @compiler/stylesheetelement-test.lzx#0 (specificity 1, order 11) */
designerview {
  innercolor: 16711680;
  miscdata: 'uc berkeley';
  width: 279;
}
/* @designerview.lzx#0 (specificity 1, order 1) */
designerview {
  bordercolor: 6631189;
  borderwidth: 10;
  height: 50;
  innercolor: 11839631;
  labelcolor: 0;
  textinset: 2;
  width: 50;
}

«<designerview>#40| #gEverest»
lzx> 

Reply via email to