CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-09-2004, 01:50 PM
bdining bdining is offline
Registered User
 
Join Date: May 2003
Location: Chicago, IL.
Posts: 65
sd-hide-graphical-browser

This will open the docked structure browser with browser bar just like F12
(sd-show-graphical-browser "parcel-gbrowser")

Can someone tell me why this is not working.
(sd-hide-graphical-browser "parcel-gbrowser" :ignore-pin 1)

This method will turn off structure browser but leave the browser bar open.
(sd-hide-graphical-browser "parcel-gbrowser" :ignore-pin 1 :inclTab t)

With docked browsers I would like to hide the browser bar using an after-input call

Running ver OSD_Modeling_11.60.2.0 on win2000 OS

Thanks
Bill Dining
Reply With Quote
  #2  
Old 06-09-2004, 09:25 PM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Hi Bill,

Pressing F12 calls one of the system commands, which, according to the docs, are "Windows specific commands which are not defined as LISP functions or action routines." Executing the same function here would be the most desirable, but I am not aware of how this can be done at the dialog level. If anyone knows how, I'm sure there are at least two of us that would love to know!

It is very strange that the (sd-hide-graphical-browser...) doesn't work -- it certainly seems that it should! (and it didn't work here, either)

Here is a potential workaround that may do what you want (you need to be using the :oli package to access this function, but you're obviously doing that):
Code:
(sd-undock-graphical-browser "parcel-gbrowser" :show nil)
The above function worked under 11.60C, so I hope it works for you!

Note, however, that to show it in its previous state, you must use:
Code:
(sd-dock-graphical-browser "parcel-gbrowser")
since (sd-show-graphical-browser "parcel-gbrowser") will display the (now undocked) browser, and the above call will "re-dock" it...

I hope this helps! (I'm still puzzled why your initial solution doesn't work, though!)


Good luck!

andy
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!
Reply With Quote
  #3  
Old 06-10-2004, 10:39 PM
Markus Markus is offline
Registered User
 
Join Date: Oct 2002
Location: Sindelfingen, Germany
Posts: 88
You can't drive the complete Browser Bar with sd-show/hide-graphical-browser. These commands only work on one specific browser e.g. the Structure Browser, but even if you hide the Structure Browser, the Browser Bar will remain on the screen since this Browser Bar serves as container for all graphical browsers in OSDM.

To toggle the visibility of the Browser Bar you can call the supported function:

(oli:sd-call-win-command-by-sysid 32776)

You have noticed that the Browser Bar available command (F12) has a sysCmdId defined as action. To call this specific Windows command you can use the above mentioned documented and supported IKit function.

There are a few unsupported and not documented functions which may work better in your case:

(win-show-browserbar)
(win-hide-browserbar)
(win-browserbar-visible-p)


Best regards,
Markus
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:21 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.