🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16754

Re: OnHint Event Question

#16754
From: StarCinema
Date: Sun, 27 Apr 2003 14:52
51 lines
2784 bytes
You could try to use a method that I developed called The Component Method
You'll find an example here
http://www.geocities.com/rodolfofrino/HintsTheComponentMethod.html

You can specify the parent of the Hint, so that the hint will appear exactly
where you want

Rodolfo
StarCinema mediaplayer
http://members.optusnet.com.au/~rodolfofrino/
StarGate

"Rusty" <rustyr@redstorm.com> wrote in message
news:3ea5a8d3$1@newsgroups.borland.com...
> Greetings:
>
> I have a form that contains child forms (not MDI) that have the FormStyle,
> fsStayOnTop.  In one of those child forms,  I have a TPageControl object.
> At runtime, I add TTabSheet objects as needed, and, in each TTabSheet
> object, I add a TListView object.  The problem that I'm having is that
> whenever the TApplication's OnHint event fires that is triggered for one
of
> the TListView objects, the hint appears on the MainForm, not over the
> TListView object (or even over the window that contains the PageControl).
> Any ideas as to what I'm doing wrong?
>
> Here is the code I am using to add TTabSheet and TListView objects:
>
> sheet = new TTabSheet( this );
> sheet->Name = "TabSheet" + IntToStr( i );
> sheet->PageControl = PageControl;
> sheet->Caption = curTable->Name;
> view = new TListView( this );
> view->Name = "ListView" + IntToStr( i );
> view->ShowHint = true;
> view->DoubleBuffered = true;
> view->Parent = sheet;
> view->ViewStyle = vsReport;
> view->Align = alClient;
> view->GridLines = true;
> view->Columns->Add( );
> view->Column[ 0 ]->Caption = "String ID";
> view->Column[ 0 ]->Width = view->Canvas->TextWidth( "String ID" ) + 8;
> view->Columns->Add( );
> view->Column[ 1 ]->Caption = "Value";
> view->Column[ 1 ]->Width = view->Canvas->TextWidth( "Value" ) + 8;
>
> All the Best,
> Rusty
>
>
Technical Details
Message-ID: <3eabee79@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ea5a8d3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4e7e69e794af9eed
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-27 07:58:26 PST
From: "StarCinema" <starcinema@stargate.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ea5a8d3$1@newsgroups.borland.com>
Subject: Re: OnHint Event Question
Date: Mon, 28 Apr 2003 00:52:02 +1000
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 203.164.71.34
Message-ID: <3eabee79@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051455097 203.164.71.34 (27 Apr 2003 07:51:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail