Solved

Tabset upside down, delphi 1.0

Posted on 1997-05-26
4
845 Views
Last Modified: 2008-03-06
Is it possible to do tabset drawing upside down, so that tabset control could be placed on a top.

It needs to be done with tabset or similar control. Not with the tabbednotebook.

And other controls that could make this happen in delphi 1.0
0
Comment
Question by:olmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:sleach
ID: 1336600
It is possible, but it might be a bit difficult.

You would have to draw the TabSet yourself.

To do this, set the Tabset.style property to tsOwnerDraw.

Then write your code in the OnDrawTab event.
The OnDrawTab event includes a TRect object in its list of parameters.  You can use it to get the client area that needs to be drawn.

It would be FAR easier to just go ahead and use the TabbedNotebook component - If that is an option.


0
 
LVL 1

Expert Comment

by:sleach
ID: 1336601
Please reject my answer.  I made a mistake. The OnDrawTab event will only give you the Rect for the actual text.  NOT  the whole TabSet.

My apolagies

0
 
LVL 1

Author Comment

by:olmy
ID: 1336602
no problemos sleach.
0
 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
ID: 1336603
Two ways to do this:

1)  Flip your monitor 180 degrees.
2)  Create your own component.

Other than those two methods, there is no way to do what you
want without writing you own component to do it.  Sorry.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question