[ALLY] How do I view layout code Re:(2)
From: petr:krenzelok:trz:cz at: 12-Sep-2000 11:21
> [larry--ecotope--com] wrote:
> > Hi all
> > I was running some tests with View 0.10.33.3.1 and wanted to see the code
> > produced by 'layout. I entered this line of code:
> > >>layo: layout [box 240x240 red]
> > then
> > >>view layo ;works fine
> > but
> > >> print mold layo
> > runs on for quite some time. So I wrote the output to a file:
> > write %layo.txt mold layo
> > The file is 428kB, 11,249 lines of code! The reason is that it contains 2
> > complete copies of all the VID styles, one under styles: and one under
> > styles: in the object in the pane block. I also noticed that there are
> > several recursive blocks in the output indicated by [...]. Some of them are
> > associated with the init: field.
> > IIRC we used to be able to probe or mold the face object produced by layout.
> > Is there any way to do that now, without sorting through half a megabyte or
> > more?
> > Have I missed something simple?
> > Is this a bug in 'mold?
> Mabe a new feature? :-)
Well, actually, it has to be bug:
compose-date: func [inp][
return join first tmp: parse to-string inp "-" ["." select mesice second tmp "."
third tmp] ; to convert to dd.mm.yyyy format ...
zadej-datum: layout [
text "Od:" date1: button "" [date1/text: compose-date request-date]
text "Do:" date2: button "" [date2/text: compose-date request-date print mold
print mold date2
prints "endless" output ... uh ....
Also - I can't get date2/text to display on button, although I reshow it ....
wrong aproach, or a bug?