[haXe] Arctic 0.9.2 released with simple dialog support

KaalH! kaalh at smol.org
Fri Aug 24 11:05:04 CEST 2007


Asger Ottar Alstrup a écrit :
> On 8/24/07, KaalH! <kaalh at smol.org> wrote:
>   
>> Asger Ottar Alstrup a écrit :
>>     
>>> I just submitted arctic 0.9.2 to haxelib.
>>>       
>> could you add the smtg like the following block to improve padding/margin ?
>>
>> Borders(left : Float, top : Float, right : Float, bottom : Float, block
>> : ArcticBlock);
>>     
>
> You can try something like (untested):
>
>   function addMargins(left, top, right, bottom, block) {
>     var w = (left + right) / 2;
>     var h = (top + bottom) / 2;
>     return Border(w, h, Offset( left - w, top - h, block ) );
>   }
>
> I'll consider extending the Border block with explicit borders for
> each side, but the above should work. Let me know.
>
>   
it works
> Another common request is to align a (growing) block.
>
> Today, you often end up with something like LineStack( [ Filler,
> ColumnStack( [ Filler, block, Filler ] ), Filler) to center something.
> I have considering to add an
>
>   Align(xPosInPercent : Float, yPosInPercent : Float, block)
>
> block where xPosInPercent and yPosInPercent is between 0 and 1. To
> bottom, right align a block, you'd do Align(1, 1, block). If you
> wanted to center, you'd do Align(0.5, 0.5, block).
>
> Looking at this, it occurs to me that the slider almost provides this
> out of the box. All that would be required is to disable the active
> behaviour of the slider, and then we basically have this
> functionality. Hmm...
>
>   
>> so could you please add a way to globally disable scrollbars in arctic ?
>>     
>
> If you send a patch which adds an optional "?disableScrollbar : Bool"
> parameter to the LineStack block, and wrap lines 1076 to 1087 of
> ArcticView.hx with a check for this flag, I will apply it.
>
>   
attached, thanks
> Regards,
> Asger
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: disableScrollbars.diff
Type: text/x-patch
Size: 1999 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20070824/53fc9c0d/disableScrollbars.bin


More information about the Haxe mailing list