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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]How to hide or show standar toolbars of VFP6 programatically[/b]

Status
Not open for further replies.

thuvan1957

Programmer
Oct 29, 2003
29
0
0
VN
My stand along EXE file on VFP6.0 run on custumer computer (not from VFP6.EXE) and standard tool bar is displayed on screen. How to hide it programatically?
Please have me.
Thanks
 
The toolbars are really just windows. If you undock the "Standard" toolbar in VFP IDE you will see it as a window. So, to hide it is like the following which you can try out in VFP from the command window...

Code:
*!* Make it disappear
HIDE WINDOW "Standard"

*!* Make it re-appear
SHOW WINDOW "Standard"

*!* Let's try a different one and show how to check for it's existence and visibility
if WEXIST("Report Designer") and WVISIBLE("Report Designer")
     HIDE WINDOW "Report Designer"
endif

if WEXIST("Report Designer") and !WVISIBLE("Report Designer")
    SHOW WINDOW "Report Designer"
endif

...one other thing you may wish to consider is the _systoolbars class in the _app.vcx that you'll find in the FFC folder of VFP. This class was designed to help VFP Developers manage system toolbars.


boyd.gif

[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
Thanks craigsboyd,
that really help me,
I don't thing standard toolbars is window!!!
ThuVan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top