Gadgets to LayLa? 
Author Message
 Gadgets to LayLa?

Am am wondering and have not seen if there is a way to convert a gadget to
a LayLa document.  I see that one can write a gadget in LayLa but I am
interested in saving an exsisting Gadget in LayLa so that it can easily be
transported to another Oberon system.  Is there a way to do this?

- Malakh



Sun, 01 Aug 2004 20:09:44 GMT  
 Gadgets to LayLa?

Quote:

> Am am wondering and have not seen if there is a way to convert a gadget to
> a LayLa document.  I see that one can write a gadget in LayLa but I am
> interested in saving an exsisting Gadget in LayLa so that it can easily be
> transported to another Oberon system.  Is there a way to do this?

> - Malakh

No such ready-for-use tool is available.
But, as can be expected, one can write a program for the purpose
of converting a gadget to a LayLa description.

The LayLaConstr.Mod is a narrow-gage implementation example which could inspire you.
It produces a LayLa description of the marked (*) Demo.Panel.
The result appears at the end.

A general program should enumerate all the attributes and links of all the components
in the hierarchy and knit them in the description text.

This way of PLACing the components is not recommended.

Ordering components in horizontal or vertical lists or in tables is far more elegant
and versatile.

AsciiCoder.DecodeFiles % LayLaConstr.Mod Demo.Panel ~

F
h
?
X
:eW>dRBdZ:eR2b[:gdBWXL^j4T1EZB=XI5T?eXPLX8=XBMWPd]\EWPDX?mY<]X1eYYLW=DX5mX9e
Y=<QD]\hU>0W:MUKJ4UGUUPL^YLW=<Q9eXPd]\5TD5Y5eYPTZU1P<e]XlZY4T5eY4]Q5eY45TGE^
F
W
m4T?E\UQ^\YQE^[]\TeXb=\]]\X<Uk\Q9P_E<1IBW:89JJW3jBS:g`fVPTZ8]8KH2ChEUKJYCDNB
Z
f
0
F
1
iL`bH2AY:19F1IHM;I1IF1IHUKI1YL;;K3;MC[M;;8YkK19MAKI1IMQ;L;[L19K;[IY;87kKU[K;
[L1iK=;8Y;J;canFgBg`VFgFFi2BEVb6V`4V`[0W[M33IAS64H30h91INki9I980PC100YkKQk:O
[HE;:00VRIUUPL^fQU=5C0Y:J;;8O[LCkIC[K1IJW;8Y;JT]_m^UE^PT=0`g0>60Z2hEPc1b20K0
0?akfcC00L:00hK00`Dl:N7YcD0_2l>8;J400l4AcCbR610W20000049R6RVY0N58JP\000lTY00
I
]
T5UDUX\hEMYH[[ICi>K0OZH;3nDhFVD]\h9:5YAUKHMkJM9A;KKO[8I98Y:AIARV6`[VFbBWPTX9
eZPDV\4Tc4V`<U=<Q5e9K019AOk>KH35JA?RPT:L>ObblZb==:GDNeDf`RjDRTYQ=?>4X;KH3IJH
0
o
M
YC;CX6Fg805JHWKJ7kA3;I?KIYkLMYCDXeU>4PoS02$
----------------
Result:
LayLa.OpenAsDoc
(PLACE Panel (w=266 h=200)
(NEW Button (x=58 y=152 w=40 h=30) (ATTR Caption="Button1"))
(NEW Button (x=58 y=74 w=40 h=30) (ATTR Caption="Button3"))
(NEW Button (x=184 y=74 w=40 h=30) (ATTR Caption="Button4"))
(NEW Button (x=184 y=152 w=40 h=30) (ATTR Caption="Button2"))
)
----------------

If you are interested to see how to write a complex LayLa description under program control,
look at http://www.oberon.ethz.ch/games/

The package AfiGames.zip was designed to demonstrate just that.
It is still experimental and not quite finished - may be not bug-free, but virus-free.

See AfiPuzzleLayLaP.Mod



Wed, 04 Aug 2004 22:46:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ping for layla

2. Thanks Layla

3. come changes to the deuce editor gadget

4. Deuce gadgets and streams

5. adobe-svg-gadget available

6. Custom gadgets in a frame

7. Browser gadget sugguestions for a DUIM app

8. DUIM date gadgets for Harlequin Dylan

9. Stuck with displaying a gadget

10. Gadget images & tutorials

11. Gadget images & tutorials

12. Questions about Gadgets programming in Linux Native Oberon 2.3.7

 

 
Powered by phpBB® Forum Software