I wanted to have titles in my Canvas, like those Group components in Delphi. Here – http://code.google.com/p/jwopitz-lib/ – there’s something like this, but it extends a Box. I need a Canvas because I want to use absolute layout.
I was thinking that probably I would have to draw masks to a Canvas, remove its scrollRect, get styles from the canvas to pass the Label… I was ready to begin when I read about the includeInLayout property (in judah’s blog!). Now I have what I need and – better! – no sweat.
Update: added dashed border support. The dashing script is laaaaaaaame, but it is in the right place (extends HaloBorder). As I dont code for money, I wont improve it. If you do, please let me know.
*******************************************************
Pois eu queria um Canvas com título, como aquele Group do Delphi… Estava até me preparando (psicologicamente) para extender, sobrescrever, medir… aiaiaiai. Aqui – http://code.google.com/p/jwopitz-lib/ – tem algo parecido com o que eu queria, mas ele extende um Box. Eu queria ter layout absoluto.
Quando eu fiquei sabendo da propriedade includeInLayout (no blog do judah!). Muito melhor…
Update:acrescentei suporte para borda dashed. O script de dash está muuuuuuito porco, mas está no local correto. Como eu não programo por dinheiro, não vou melhor o código. Se você fizer isso, me avise.





Recent Comments