[Cuis-dev] I have some issues running the conf. script file at startup

Nicola Mingotti nmingotti at gmail.com
Sun Aug 1 06:40:23 PDT 2021


Hi Hiliaire,

your method works. Thank you. It is better then my fork+delay.

Could you explain me a bit why the "doOneCycle" work ?

I put my script here, maybe somebody else wants to peek and adapt.
https://pastebin.com/UKUdySxY

bye
Nicola






On 8/1/21 12:41 PM, Hilaire Fernandes via Cuis-dev wrote:
>
> Inserting this instruction below in your script at some point may 
> help, try out and tell us.
>
>     self runningWorld doOneCycle.
>
> It helped me for a correct computation of the RealEstate agent after 
> changing the scale of the taskbar.
>
> Hilaire
>
> Le 28/07/2021 à 18:56, Nicola Mingotti via Cuis-dev a écrit :
>>
>> I found a fix, just an hack.
>>
>> My conjecture was that the .st config script was running before GUI 
>> items were actually ready on the World.
>> So i tried to put a little timeout copying from my old Squeak notes 
>> on fork and Delay ;)
>>
>> ------------ working -----------------
>>
>> [ |list tbar|
>>  (Delay forMilliseconds: 3000) wait.
>>  Transcript show: 'hello world'.
>>  list _ UISupervisor ui submorphs reject: [ :aMo | aMo is: 
>> #TaskbarMorph ].
>>  list do: [ :x | x delete ] .
>>  Preferences veryBigFonts .
>>  tbar _ (UISupervisor ui submorphs select: [ :x | x is: #TaskbarMorph 
>> ]) first.
>>  tbar scale: 1.4.
>> ] fork.
>>
>> -----------------------------------------
>>
>> Please update the Cuis book ;) that is really important !
>>
>> bye
>> n.
> -- 
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210801/867ef2d9/attachment.htm>


More information about the Cuis-dev mailing list