We help IT Professionals succeed at work.

is there a way to do this?

wiredmind
wiredmind asked
on
Medium Priority
146 Views
Last Modified: 2010-04-04
i am doing a proj on financial planner..
i got one midi master form which has the midi child forms etc..i want to change these midi child forms into icons..
like minimised them into icons..
is there a way to do it? help me pls.
Comment
Watch Question

Commented:
Well, you can try to use some icon holding list and when an icon is clicked in it you show the forms. It's not hard, I think.

Good luck!
Matvey
Commented:
Yo,

here is a code snippet that should fit your needs :

procedure TMDIParentForm.MinimizeChildWindows;
var Index : Integer;
begin
  for Index := 0 to MDIChildCount - 1 do
   begin
     // suppose a MinimizeOK function that returns true if
     // the form should be minimized
     if MinimizeOK(MDIChildren[Index])
      then MDIChildren[Index].WindowState := wsMinimized;
   end;
end;

Slash/d003303

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
is there a way to do this in visual basic too?

Author

Commented:
the code u show me does not tell me how to show the forms
as icons...like in program manager

Commented:
Well, to get what you want you have to mix what I said with the answere given.

Matvey

Commented:
Right, Matvey. In Win3.x a minimized window was displayed as an icon. Thats why I associate iconized and minimized. Hence, in Win95, a minimized window is not an icon anymore.
If you want to have a look like program manager, take an image list with icons and a list view in vsIcon view style.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.