Purevision Question.

Just starting out? Need help? Post your questions and find answers here.
MPrimal
User
User
Posts: 15
Joined: Fri Nov 11, 2005 4:54 pm
Location: England

Purevision Question.

Post by MPrimal »

I cannot for the life of me see the answer to what is probably a really silly question.

I have a window setup in Purevision with 3 windows. When I run the code it creates the first window is opened and useable.

How do I close this window and call one of the other windows into use when needed?

Sorry for such a silly question but I cannot see the answer in the help file.

Andy
Real Power Comes From Sharing It With Those Who Think They Have It All.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

You can simply call the next form and hide or close the first form.

Code: Select all

Case #Gadget_Form1_Button
  If Window_Form2()
    HideWindow(#Window_Form1,#True)
  EndIf
Don't forget to look for your new windows in your "#PB_Event_CloseWindow" event.
-Beach
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Purevision Question.

Post by PB »

> I cannot see the answer in the help file

viewtopic.php?t=17787
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Its not really a PureVision question - that's why I responded. The title should be "Window/form question".
-Beach
Post Reply