代码之家  ›  专栏  ›  技术社区  ›  Eugene Yokota

Delphi 2009:我如何防止框架儿童溢出到宿主形式?

  •  1
  • Eugene Yokota  · 技术社区  · 16 年前

    inline inherited object .

    2 回复  |  直到 16 年前
        1
  •  1
  •   Francesca    16 年前

    你的

    -保存Edit1和Label1的祖先框架,

    -一个放置在主窗体上的ChildFrame实例,我稍微移动了Label2。

    外观非常正常的dfm :

    object MyForm: TMyForm
      Left = 0
      Top = 0
      Caption = 'MyForm'
      ClientHeight = 286
      ClientWidth = 412
      Color = clBtnFace
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'Tahoma'
      Font.Style = []
      OldCreateOrder = False
      PixelsPerInch = 96
      TextHeight = 13
      inline ChildFrame1: TChildFrame
        Left = 8
        Top = 8
        Width = 313
        Height = 240
        TabOrder = 0
        ExplicitLeft = 8
        ExplicitTop = 8
        ExplicitWidth = 313
        inherited Label2: TLabel
          Left = 162
          ExplicitLeft = 162
        end
      end
    end
    
        2
  •  0
  •   Marco van de Voort    16 年前