Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-12

Tabbed control text orientation

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Assuming GTK2, is there an easy way of changing the orientation of the text on the tab of a TPageControl etc.?

I'm not looking for it to be pretty, but I'm trying to save a bit of space by putting tabs at the RHS, and would like the text to run vertically since I know there will be no more than one or two.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

zeljko
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 6 lines
Assuming GTK2, is there an easy way of changing the orientation of the text on the tab of a TPageControl etc.? I'm not looking for it to be pretty, but I'm trying to save a bit of space by putting tabs at the RHS, and would like the text to run vertically since I know there will be no more than one or two.

Afaik you can change tab orientation , but text orientation inside tab isn't possible without introducing OnPaint() for TCustomTabControl (issue is already opened, and it will be implemented for Delphi compatibility) , so you can draw text on your own.

zeljko

Reply by email

Mark Morgan Lloyd
to zeljko
zeljko wrote 12 lines
On Friday 28 of December 2012 19:28:43 Mark Morgan Lloyd wrote: > Assuming GTK2, is there an easy way of changing the orientation of the > text on the tab of a TPageControl etc.? > > I'm not looking for it to be pretty, but I'm trying to save a bit of > space by putting tabs at the RHS, and would like the text to run > vertically since I know there will be no more than one or two. Afaik you can change tab orientation , but text orientation inside tab isn't possible without introducing OnPaint() for TCustomTabControl (issue is already opened, and it will be implemented for Delphi compatibility) , so you can draw text on your own.

Thanks, I'll put up with it for the moment then :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email