Solved

blue fontcolor on tabs in pagecontrol

Posted on 2003-11-20
2
354 Views
Last Modified: 2010-04-05
I have tried something here, but it doesn't work exactly as I want it to.
I want it to work like the tabs in the Delphi 7 IDE. The fontcolor becomes blue when mouseover, and black when not mouseover. highlighted does not make the fontcolor blue. Also, the IndexOfTabAt(x,y) does NOT return -1 if no there are no tabs in mouseover

can anyone help me finish this? I bet it's easy for you guys

procedure TIRForm.PageControl1MouseMove(Sender: TObject;
  Shift: TShiftState; X, Y: Integer);
var
i: integer;
begin
case Pagecontrol1.IndexOfTabAt(X,Y) of
 -1:RemoveBlueFonts;
  0:pabegynt.Highlighted := true;
  1:FerdigRegistrert.Highlighted := true;
  2:IkkeGodkjent.Highlighted := true;
  3:UnderBehandling.Highlighted := true;
  4:Godkjent.Highlighted := true;
  end;
end;
0
Comment
Question by:Darth_helge
[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 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 35 total points
ID: 9787215
??
just set the HotTrack-property to true
-> no coding needed

meikl ;-)
0
 
LVL 5

Author Comment

by:Darth_helge
ID: 9787287
darn-diddely-doo.

I'm so embarrased..
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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