MDIChild Help! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

MDIChild Help!

dos anyone know or can help me on how I can stop my MDIChild from being minimized?
Slewis

Comments

  • zibadianzibadian Posts: 6,349Member
    : dos anyone know or can help me on how I can stop my MDIChild from being minimized?
    : Slewis
    :
    Remove the minimize button from the title bar, using the BorderIcons property.
  • DevelopmentDevelopment Posts: 222Member
    : : dos anyone know or can help me on how I can stop my MDIChild from being minimized?
    : : Slewis
    : :
    : Remove the minimize button from the title bar, using the BorderIcons property.
    :
    I want to disable the button with out removing it
    Slewis

  • zibadianzibadian Posts: 6,349Member
    : : : dos anyone know or can help me on how I can stop my MDIChild from being minimized?
    : : : Slewis
    : : :
    : : Remove the minimize button from the title bar, using the BorderIcons property.
    : :
    : I want to disable the button with out removing it
    : Slewis
    :
    :
    If you place the following code in the OnMessage of a TApplicationEvents object, then the minimize button won't work for the MDIChild "ChildForm".
    [code]
    if ChildForm <> nil then
    if (Msg.hwnd = ChildForm.Handle) and
    (Msg.message = WM_NCLBUTTONDOWN) and
    (Msg.wParam = 8)
    then begin
    Handled := true;
    end;
    [/code]
    If you need more children to be disabled, you should use a for-do loop to check if the message handle matches one of the child handles.
Sign In or Register to comment.