Skip to content

Panel and forms

galatians2v20

Asked Apr 7, 2004, 4:11 PM EDT1 answer
Share
LinkedInX
I want to create an application and have the same main menu for each screen. I'm going to have a welcome screen, menu screen, login screen..etc and I want to basically just load those screens into one form. Is the best way to do that through panels? If it is how do i set certain panels to be visible on button clicks, otherwise, how should i go about that. Thanx

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    For the menu, you can create a menu object, which runs delegate functions on the form it is placed on. eg: mnuFileNew will always call frm.new(), the form can implement new() however it wants. as for the different screens, I would think it makes more sense to use an MDI frame with childeren, as opposed to hiding and showing different panels. But, if you want, you can make your different panels, and create/destroy them with the click of a button.
    0