Thanks for your exhaustive explanation in the previous topic,
Sylvain! I have one more issue:
I want to show several lines of text with spaces as first
characters, like:
but the adesklets implementation forbids me to do so. What is
the best workaround you can imagine?
I came up with this crappy solution, which I would like to
simplify:
Split text into lines
For each line, prepend a dummy character (I use the '.' character). ' Hello' becomes '. Hello'
Create a temporary buffer
Draw each line at a negative x position, so that the dummy character ends up outside the buffer.
Blit the buffer on the desklet.
Initially I thought of using a clipping rectangle, but it
seems to be buggy, so I ended up with this ugly hack.
Thanks for your help,
Diego