Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Releasing the "Task Pane Manager - Start' Window?

Status
Not open for further replies.

stanlyn

Programmer
Sep 3, 2003
945
US
Hi,
How do I release the ""Task Pane Manager - Start" window? All of theses queries are returning .F.

? WEXIST("Task Pane")
? WEXIST("Task Pane Manager")
? WEXIST("Task Manager")
? WEXIST("Task")
? WEXIST("Tasks")
? WEXIST("Task Pane Manager - Start")
? WEXIST("Pane Manager - Start")
? WEXIST("Pane Manager")

Any ideas?

Thanke, Stanley

 
?WEXIST('frmPaneManager')
&& assuming its the only form active.
lcform = _screen.ActiveForm
lcForm.Release()

or go thru all the active forms using _screen.formcount


Ali Koumaiha
TeknoSoft Inc.
Michigan
 
This is the kind of question that makes me wonder what you're really trying to do.

Why not just turn off the task pane manager?

Task Pane -> Options -> Task Pane Manager
Uncheck "Open Task Pane at startup
 
Hi Dan,

>>This is the kind of question that makes me wonder what you're really trying to do.

I've got all these windows open in my dev environment and its time to do a test run of the program by running the do main.prg. In the main.prg, it releases all of the windows except the "Task Pane Manager" and I've been manually closing it, which I wanted the main.prg to it along with the other windows...


>>Why not just turn off the task pane manager?

I use it...


>>Task Pane -> Options -> Task Pane Manager
>>Uncheck "Open Task Pane at startup"

Then, after restarting VFP I'd have to go and undo this in order to use its functionality. If I turned it off, then I'd have to waste more time turning it back on.

Thanks, Stanley

 
Thanks Ali,

Never though of it being a form, as it was acting like a window or a form, its that BFP normally uses windows...

Thanks, Stanley

 
Hi Ali,

Still not working, as it needs cleared at the top of the main.prg, before any forms are opened. This form is surviving and shown after the menu and _screen is shown and no other forms loaded.

Using the code above I get: "Activeform is not an object" The ?WEXIST('frmPaneManager') is returning .T. and _screen.formcount is returning 1.

Thanks, Stanley
 
I use it...

Reason enough!

Then, after restarting VFP I'd have to go and undo this in order to use its functionality. If I turned it off, then I'd have to waste more time turning it back on.

You do know it's on the Tools menu, yes? (Just making sure!)

It still strikes me as a curious question because I know there are others that use it and I've never seen this question asked before. VFP (and the task pane) isn't exactly a new product, so a brand new question always perks up my ears.

As with most of the Xbase components, the TP relies on a public variable: _oTaskPane, so:

Code:
_oTaskPane.Release()

Just be sure to test for Type()!="U" and not Isnull().

Dan
 
Hi Dan,

I've tried this unsuccessfully,

IF Type('oTaskPane')!="U" and not Isnull('oTaskPane')
_oTaskPane.Release()
ENDIF

This is at the top of the main.prg.

I also tried it without the isnull(), and it also fails to close the form/window...

Thanks, Stanley




 
Sorry Dan,

I see the missing "_" in the object name. Ant that fixed it......


Thanks, Stanley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top