Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9153537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:17:17+00:00 2026-06-17T12:17:17+00:00

I’m working on a personal project and I have been running into lots of

  • 0

I’m working on a personal project and I have been running into lots of issues lately resulting in many questions, but hey, thats what SO is for right? 😉

Anyhow I tried making a transparent TPanel which I achieved by making a custom component.
The app im making is about world of warcraft and I made a talent calculator like on the official website but in a windows application.
Talents are spells/skills and each talent has information which is displayed in a tooltip.

So I have a tooltip with info,

I have a grid with talents and when I hover on a talent I want to see the info.
Besides that, I want the info to be shown near the position of the cursor.

Almost works. The positioning works, it shows the correct info BUT! here is the problem.
Take a look at this image:
Talent screen

The black semi-transparent panel is my tooltip.
You see the talents (that little 4×6 grid) those are located in a dark grey panel called pnlTalents
The parent of that panel is the lighter grey panel that covers the entire form called Panel1.
The tooltip called TooltipTalent also has the parent Panel1.
I have tried sending pnlTalents to the back and bring TooltipTalent to the front but this made no difference at all.
I even tried TooltipTalent.BringToFront; the moment the position is changed.
Notice how the tooltip has no problem being on top of that darker grey panel at the top of the screen with the speedbuttons.
I compared both panels (the one at the top and the one with the talents) and found no difference in the properties.
I am seriously running out of ideas here. I have no clue what is causing it and how I can solve this problem.

As last resort I tried dropping another transparent panel that covers the entire form to see if that would help but the problem still persisted.

I could also post the code of my custom component but that would be a lot.
If you want to see the code let me know and i’ll find a way to show it 🙂

Can anyone help me on this?
Kind regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:17:17+00:00Added an answer on June 17, 2026 at 12:17 pm
    procedure TMyPanel.CreateParams(var params: TCreateParams);
    begin
      params.ExStyle := params.ExStyle or WS_EX_TRANSPARENT or WS_EX_TOPMOST ;
      inherited CreateParams(params);    
    end;
    

    With a Quickhackcode I get this result

    enter image description here

    Just as example, Image1 contains a Semitransparent png:

    unit Unit4;
    
    interface
    
    uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, ExtCtrls, StdCtrls, dxGDIPlusClasses;
    
    type
    
      TMyPanel=Class(TPanel)
         procedure CreateParams(var params: TCreateParams); override;
         procedure WMEraseBkGnd(var msg: TWMEraseBkGnd); message WM_ERASEBKGND;
      End;
    
    
      TForm4 = class(TForm)
        Panel1: TPanel;
        Button1: TButton;
        Image1: TImage;
        Button2: TButton;
        CheckBox1: TCheckBox;
        Panel2: TPanel;
        Button3: TButton;
        Label1: TLabel;
        procedure Button1Click(Sender: TObject);
        procedure Button3Click(Sender: TObject);
      private
        { Private-Deklarationen }
    
       Fmp:TMyPanel;
       fisInPaint:Boolean;
      public
        { Public-Deklarationen }
      end;
    
    var
      Form4: TForm4;
    
    implementation
    
    {$R *.dfm}
    
    { TMyPanel }
    
    procedure TMyPanel.CreateParams(var params: TCreateParams);
    begin
      params.ExStyle := params.ExStyle or WS_EX_TRANSPARENT or WS_EX_TOPMOST ;
      inherited CreateParams(params);
    end;
    
    
    
    procedure TMyPanel.WMEraseBkGnd(var msg: TWMEraseBkGnd);
    begin
      SetBkMode (msg.DC, TRANSPARENT);
      msg.result := 1;
    end;
    
    procedure TForm4.Button1Click(Sender: TObject);
    begin
    
      Fmp := TMyPanel.Create(self);
      With Fmp do
        begin
          Parent := self;
          left:= Panel1.Left -100;
          top:= Panel1.top -100;
          width := 300;
          Height := 300;
        end;
       image1.Parent := Fmp;
       Image1.Align := alClient;
       Image1.Stretch := true;
       Fmp.BringToFront;
       Label1.Parent := FMP;
       label1.Transparent := true;
       Label1.Left := 100;
       Label1.Left := 100;
    end;
    
    procedure TForm4.Button3Click(Sender: TObject);
    begin
       Fmp.Left := fmp.Left + 10;
    end;
    
    end.
    

    Can’t reproduce problem with XP either:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
This could be a duplicate question, but I have no idea what search terms
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have been unable to fix a problem with Java Unicode and encoding. The
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am currently running into a problem where an element is coming back from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.