Now its time to implement the Menus. The handling is a little bit strange… in MUI… hmm the difference between Menu.mui and Menuitem.mui seems to be only the Event and some more options for Item… but for the menu in prinbiple can always use MenuItem.mui. hmm should check more carefully tomorrow.
Finally i got it to work in a first very crude way… the events still not working, ok this should not be a big issue, after Menus are finished i should try Dialogs and make some cleanups then in principle could release a first alpha version with lcl support.
Like always a little screenshot of todays work 😉
top: Menueditor in lazarus ubuntu

bottom: Aros with compiled program and opened menu
The problems with Streams in freepascal is solved, the crash was produced by the BPTR problem described before. The reason for failure was different, the arguments contains quotes and the current routine for get the arguments did not handle quotes. After include a routine for handle quotes it works fine, so now the fpcres is also usable. This means lazarus created projects can be compiled directly with fpc on AROS. I made a Video to show how it works: Create a simple AROS program
The TMemo crash problem at close of program also solve. It was just an inherited problem in TWSCustomEdit
the ComboBox at MUI is rather strange it allows you to change the Names of Entries.. they are also updated on the fly when you open the combobox… but the Text directly on the (closed) Combobox is not updated :O there are still the old names…. (see Picture)

even when change the items… at this position ALWAYS the old names appear.. hmm where MUI keep them? seems they made a copy of it which i cant change? Weird!
But the rest was rather successful.. the events already working rather nicely… also included a nice Memo 🙂 hmm I should think about the use this to make a Text editor for myself (for Pascal coding) in AROS hmm SynEdit would be VERY nice.. i should check what decencies Synedit has.
An Update for FPC is published at AROS exec, in princple the first really working. Already included now some aros/amiga units like exec, amigados, agraphics (instead of graphics which exists in lcl), intuition gadtoos and of course MUI. Also I put in the MUI example program (see yesterday) into the examples folder.
Last Version of fpc for AROS
Today I started to implement the MUI classes for LCL. For this purpose I wrote a wrapper unit, which makes the classes existing in the MUI library directly accessible, like any other Pascal class. The first results look already very promising… in fact the handling of MUI and LCL is not that different especially the events are much easier to handle than gadtools. A little bit bad on the first view was, that MUI does not allow own position of Components, only automatic positions available (group concept very close to GTK) but by setting and Layout Hook and add and Left, Top, Width and Height to every Object I was able to disable this behaviour… I know this behaviour is very nice, special for scaled GUIs, but sadly LCL does not support such behaviour, as fas as I know. After some work I got

which looks already very nice, at least much better than gadtools. Events also already working very nicely… just some class fields are a little bit strange… the documentation of MUI is hmmm how to say.. not very nice to use.
I ported Freepascal 2.5.1 to Aros, already working rather nicely. But today i noticed that EVERYTHING crash if the AROS memory area is above the LongInt limit. In the beginning I thought it is a casting problem (Pointer to Longint and Calculation with this Values, but who do such stupid things).
But then i noticed there is a rather strange thing in Amiga style OS , BPTR and BSTR, pointer which doesn’t keep the address, but the address divided by eight :O. So far ok… if we use this BPTR as a THandle (Which is a LongInt) then there is no problem (Address can never be too large ;)) Now follows the Problem: At AROS in non-binary-compatible mode the BTR are just simple Pointers!!! so they can be negative (when casted to LongInt/THandle)…. and there were some places in the Code checking for negative Handle (=Error) … What a strange bug.
Today i also updated to last SVN again.. some conflicts but nothing really bad, everything still works, now i will try to submit this as a patch to the freepascal developer, i hope its ok as it is 🙂
With help of ‚mazze‘ of Aros forum I was able to write my first own program with a working MUI gui.

I think its the better choice for LCL/Lazarus, I started with Gadtools, but the numbers of available components is VERY limited. I would have to program most things by myself. So next week/weekend i will try to implement a little bit MUI to LCL
Heute war es dann endlich soweit, die Doktorprüfung… aber es lief besser als erwartet. Der Vortrag sollte jetzt 30 min sein (ich dachte 20 min) also habe ich den Vortrag einfach etwas ausgeweitet, ging ohne Probleme. Die Fragen sollten dann 60 (!) min lang gestellt werden -.- omg das war den harte Zeit aber ich konnte eigendlich auf fast alle Fragen adequat reagieren. Ausser eine Frage von Achim… die hat mich etwas aus dem Konzept gebracht, irgendwas habe ich missverstanden. Endergebnis ist aber 1.0 ich kann also sehr zufrieden sein. Am Freitag hat Frank seine Prüfung.. na da bin ich aber mal gespannt. 🙂
Jetzt werde ich mich mal nach einem Verlag umsehen ich wollte meine Arbeit ja als Buch herausbringen. obwohl das ja relativ teuer wird.
In der Nähe von Reutlingen gibt es einen Abenteuer Park, welcher Kletterei in luftiger Hoehe verspricht. Wenn man sich das ganze von unten besieht, sieht das Ganze gar nicht so schlimm aus, vor allem wenn noch keiner auf den Parcours ist. Es empfiehlt sich relativ zeitig dazu sein, spaeter wird es sehr voll vor allem auf den einfacheren Routen. Der Eintritt von 18 Eur wirkt erstmal recht teuer, ist aber im Nachhinein voll gerechtfertigt, leider kann man nur mit Bargeld bezahlen, es ist halt mitten im Wald. Nach dem Bezahlen, bekommt man das Geschirr umgehängt und erklärt wie die Haken, Rollen funktionieren, wie man sich umhakt und natürlich die Sicherheitshinweise, alles recht nett und hilfreich, man versteht es recht schnell und das Umhaken geht bald wie von selbst. Es gibt 8 Parcours wobei der Schwierigkeitsgrad ansteigt. Am Besten man fängt mit Parcours 1 an, (deswegen sehr früh da sein, sonst wirds da sehr zäh). Dabei kann man sich gut an das Prinzip gewöhnen. Es ist auch nicht langweilig, ich frage mich ob wirklich alle Kinder dort komplett durch gehen, die Route ist für Kinder ab 8 Jahre ausgeschrieben. Aber ich kann mir nicht vorstellen das Lily sich traut da rüber zu gehen, vielleicht irre ich mich auch. Dann haben wir uns für Parcours 6 entschieden, wobei der Sprung am Seil in ein Netz geboten wird. Wobei sehr viel Mut aufgebracht werden muss abzuspringen, der Hinweis des Mitarbeiters einfach loszuspringen ohne zu überlegen ist ein sehr guter Rat, wenn man erstmal nachdenkt wird es immer schwieriger und Angst einflößender. Nachdem hier schon einige ziemlich fiese Übergänge sind, z.B. frei hängende Reifen oder Holzscheiben am Seil sind wir auf den Parcours 7 gewechselt.
Und wow das ist wirklich schwierig, nach dem Aufstieg am Seil an einem Baumstamm mit Steighilfen (wobei Kletterschuhe gut gewesen wären) kamen einige recht einfache aber kraftraubende Übergänge kam mein persönlicher Hammer, man läuft nur auf einem Stahlseil, welches nicht sehr stramm gespannt ist dadurch natürlich sehr gut schwingen kann. Zum festhalten hängen jeden Meter oder so Seile nach unten echt anstrengend und sehr schwer, vor allem ist zwischendurch ein Abstand sehr viel groesser. Man kann zwar auch das Halteseil benutzen (und das tut man auch instinktiv ab und zu) aber viel helfen tut es oft nicht, macht es sogar schwerer da man an einigen Stellen mitten zwischen 2 Plattformen umhaken muss (normalerweise hakt man nur auf den Plattformen um). Die 18 Euro berechtigen für 3 Stunden Aufenthalt, was auch besser ist, ich war jedenfalls nach den 3 Stunden dermassen kaputt. Die Sicherheit ist sehr hoch aber man kann sich schnell irgendwo verletzen, vor allem an den Händen, Handschuhe sind dringend zu empfehlen. Also ich werde da auf jeden Fall nochmal hingehen. Mehr Informationen und Bilder unter: http://www.abenteuerpark-schlosslichtenstein.de
Ich habe heute „Gwyddion“ entdeckt ein aehnliches Programm wie WSxM, es ist scheinbar noch nicht ganz so fortgeschritten, dafuer ist es GPL und kann auch auf Linux/MacOSX benutzt werden. Ich werde mir dieses Programm mal etwas genauer ansehen, scheinbar kann es die Counter Daten vom Omicron Scala auch nicht oeffnen, aber da es GPL ist, kann ich das ja vielleicht selbst dazutun :). Heuristic Import habe ich auch noch nicht gefunden… das ist sehr schade, da dies SEHR hilfreich ist bei WSxM.
Gwyddion
WSxM
Noch 4 Wochen dann kommt Vanilla, ich habe wiedermal etwas umgeraeumt. Speziell wiedermal Lilys Zimmer, alle Computer entfernt. Ich habe ja noch 4 Wochenenden Zeit das alles zu organisieren. Vielleicht sollte ich eine List machen, was alles noch zu tun ist, sonst vergesse ich irgendwas. Was natuerlich nicht so schlimm waere, aber ich moechte es gern perfekt 🙂 oder nahezu perfekt.
Ich habe heute das erste mal Wii mit einem Beamer gespielt, ganz anderes Spielgefühl 🙂 Tennis macht viel mehr Laune und auch bei Splitscreen wird es nicht all zu klein, obwohl sich der Ball immer noch recht oft ausserhalb des Bildschirms befindet.Bei Excite Truck fühlt sich das Spiel viel schneller und schwieriger an… naja gut man ist es halt nicht gewöhnt 🙂 Aber ich glaube ein anständiger grosser Fernseher tut es auch so ein Beamer ist doch recht laut und teuer.