Hi,
Is it possible to draw text at a 90? angle ?
Michael.

Mailing lists / lazarus / 2008-10
10 messages · 6 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
Is it possible to draw text at a 90? angle ?
Michael.
Take a look at TOvcRotatedLabel
Is it possible to draw text at a 90? angle ? Michael.
2008/10/23 Michael Van Canneyt :
Is it possible to draw text at a 90? angle ?
We support the winapi CreateFontIndirectEx for that (that's what TOvcRotatedLabel uses). It's in the LclIntf unit. Read the winapi docs.
It is planned to also support something like TFont.Orientation, but I think it wasn't yet implemented.
Is it possible to draw text at a 90? angle ? Michael.
Michael Van Canneyt wroteHi, Is it possible to draw text at a 90? angle ?
Yes. Gtk1 does not support it but win32, qt and gtk2 supports.
You can find an example in the TDockHeader.Draw method (ldocktree.pas).
Best regards,
Paul Ishenin.
I use GTK 1 :(
You can find an example in the TDockHeader.Draw method (ldocktree.pas).
OK, thank you. I'll have a look.
How can one detect the used widget set in a binary ?
Thanks to everyone for the answers !
Michael.
2008/10/24 Michael Van Canneyt :
How can one detect the used widget set in a binary ?
That one is easy:
ldd myexecutable
If it links to gtk1, it must be using the gtk1 widgetset =)
This one I could have found myself :-)
But what I meant:
There is no property in the LCL that can be checked ?
Michael.
Michael Van Canneyt wroteBut what I meant: There is no property in the LCL that can be checked ?
But you asked "in a binary"
Did you mean "at run-time"?
The usual way is with ifdefs, but that would be compile time.
This one I could have found myself :-) But what I meant: There is no property in the LCL…
i think you can use WidgetSet.LCLPlatform (unit interfacebase).
henry
On Fri, Oct 24, 2008 at 9:10 AM, Michael Van Canneyt But you asked "in a binary" Did you…
An embedded and charset-unspecified text was scrubbed... Name: not available
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081024/af4b98f3/attachment.pl