Solved

Tabset upside down, delphi 1.0

Posted on 1997-05-26
4
835 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

862 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now