我曾经采用新建一个窗体,将borderstyle设为bsnone;
然后在oncreate事件中加入setwindowspos(handle,hwnd_topmost,left,top,width,height,
            swp_noactivate or swp_nosize)
使之处于最上面,这样你就可以加入你想要的东西了在窗体上
效果不错,但要注意控制

解决方案 »

  1.   

    在你的程序中
    用创建一个“子form”from上加上TListBox 
    在条件满足时 form显示 完后隐藏(form 的 borderstyle设为bsnone);
    窗体显示的位置 由程序动态控制
      

  2.   

    //pas
    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
      ExtCtrls, StdCtrls;type
      TForm1 = class(TForm)
        Memo2: TMemo;
        Panel1: TPanel;
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.DFM}end.//dfm
    object Form1: TForm1
      Left = 192
      Top = 107
      Width = 544
      Height = 375
      Caption = 'Form1'
      Color = clBtnFace
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      OldCreateOrder = False
      PixelsPerInch = 96
      TextHeight = 13
      object Panel1: TPanel
        Left = 0
        Top = 203
        Width = 536
        Height = 145
        Align = alBottom
        Caption = 'Panel1'
        DockSite = True
        TabOrder = 1
      end
      object Memo2: TMemo
        Left = 16
        Top = 73
        Width = 193
        Height = 96
        DragKind = dkDock
        DragMode = dmAutomatic
        Lines.Strings = (
          'Memo2')
        TabOrder = 0
      end
    end