Solution: Display of groups in Control Browser
Klaus Major
klaus at major-k.de
Fri Nov 26 18:31:20 EST 2004
Hi Wilhelm,
> The problem - on our side - is located in the "refresh" handler of the
> card script of the Control Browser. Presumeably the engine now treats
> the number of layers in groups somewhat differently since version
> 2.6.1 (Metacard reading).
Aha!
So much for the promised engine compatibility with the MC IDE ;-)
> I tested the contents of all instances of the local variable
> "groupcontrols" (that is responsible for the width of the "pad"), and
> the results with engines before 2.6.1 differ markedly from those
> after; see the commented part of the script below
>
> I commented the offending part of the script and added a new
> "indenting routine", which could possibly be scripted still more
> elegantly.
>
> Substitute the script below for the present "refresh" script of the
> Control Browser, and groups and sub-groups will then show properly
> indented as they should - with engine versions before and after 2.6.1.
>
> All other functions of the Control Browser work as before after that
> change.
>
>
> on refresh
> local l, pad, cname, groupcontrols, isvis, nopw, nlines
> lock screen
> ...
> end if
> unlock screen
> end refresh
Cool, thank you very much!
> Best regards,
>
> Wilhelm Sanke
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the metacard
mailing list