Article View: borland.public.cppbuilder.nativeapi
Article #16867OnHint Event Question
From: Rusty
Date: Tue, 22 Apr 2003 20:40
Date: Tue, 22 Apr 2003 20:40
34 lines
2301 bytes
2301 bytes
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:
<3ea5a8d3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4e7e69e794af9eed,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-22 13:45:15 PST Reply-To: "Rusty" <rustyr@redstorm.com> From: "Rusty" <rustyr@redstorm.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: OnHint Event Question Date: Tue, 22 Apr 2003 16:40:52 -0400 Lines: 36 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: 208.221.166.2 Message-ID: <3ea5a8d3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051044051 208.221.166.2 (22 Apr 2003 13:40:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail