[haXe] Arctic 0.9.2 released with simple dialog support

Asger Ottar Alstrup asger at area9.dk
Fri Aug 24 10:17:22 CEST 2007


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.

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.

Regards,
Asger



More information about the Haxe mailing list