CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Dynamic GUI

  1. #1
    Join Date
    Jul 2003
    Posts
    21

    Unhappy Dynamic GUI

    hello

    From the beginning of my programming life in java, all I learned is how to hard code the gui into the windows. But now I need to do soemthing that need the help of dynamic GUI. Let say I have 3 buttons that I need to put onto the interface, but the next time I run it program , I might only need 2 button...I tried searching but nothing is found....Is there some information on how to program this kind of GUI on the net that I can read?...

    sorry for my poor grammer

  2. #2
    Join Date
    Dec 1999
    Location
    North Sydney, NS
    Posts
    445

    Re: Dynamic GUI

    Since buttons are created at runtime I'd guess this would be a pretty easy problem to solve. I'd have a loop that tested for some condition for how many buttons I needed to create. Then in the loop I'd create the button and add it to a linked list. Then add the button to the container for display.

    This would be my best first guess.
    I know how to build. What to build is a completely different story.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured