Solved

Tabset upside down, delphi 1.0

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

9 Experts available now in Live!

Get 1:1 Help Now