CubicDesign wrote: > I use a small TPanel to simulate a tool tip for a TMyStringGrid (derived > of course from TStringGrid). > When the user moves the cursor over the cells I display information or > content of the cell in this fake 'tool tip'.
Why don't you use a real tool tip? > I worked pretty well until I decide to move/integrate that 'tool tip' > inside the TMyStringGrid component. Because the panel is now a child of > TMyStringGrid it does not stay in top of it. More exactly, when I move > the mouse on the last row, the tool tip is hidden bellow the scroll bar > (yes, TMyStringGrid has a horizontal scroll bar). > > Anybody have any idea how can I keep on top of TMyStringGrid and its > scroll bar? Of course, BringToFront don't work in this case. Don't make the panel a child of the grid. It shouldn't be a child of anything since it needs to be able to extend beyond the bounds of the main window, too. It needs to be a popup window, in Windows API terms. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

