Author Topic: Adding a Tray Button  (Read 2879 times)

0 Members and 1 Guest are viewing this topic.

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Adding a Tray Button
« on: July 28, 2013, 08:27:27 AM »
I would like to add a button in the Tray at the bottom of the screen along side the "SNAP" "ORTHO" etc. buttons.  Is there a way to accomplish this?

I want to add a "FRAMES" button for toggling wipeout frames on & off. (The button needs to execute a lisp function that I have written)
 

Thanks

kruuger

  • Swamp Rat
  • Posts: 637
Re: Adding a Tray Button
« Reply #1 on: July 28, 2013, 09:11:44 AM »
I would like to add a button in the Tray at the bottom of the screen along side the "SNAP" "ORTHO" etc. buttons.  Is there a way to accomplish this?

I want to add a "FRAMES" button for toggling wipeout frames on & off. (The button needs to execute a lisp function that I have written)
 

Thanks
i don't think so.
try this
http://www.cadtutor.net/forum/showthread.php?38370-Wipeout-Frames-system-variable
kruuger

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Adding a Tray Button
« Reply #2 on: July 28, 2013, 09:35:21 AM »
I am using this as a toggle, would like to add button to tray to activate.

Code - Auto/Visual Lisp: [Select]
  1.       (setq data (entget  (cdr (assoc 350 (member '(3 . "ACAD_WIPEOUT_VARS") (entget (namedobjdict))))))
  2.             stat (if (= 0 (cdr (assoc  70 data)))1 0)
  3.             txt  (if (= 0 stat) "off" "on")
  4.             object (subst (cons 70 stat) (assoc 70 data) data)
  5.             )
  6.       (entmod object)
  7.       (vl-cmdf  "regen")
  8.       (princ (strcat "  <Wipe-Out Frames " txt ">"))
  9.       (princ)
  10.  
  11.  

Bruce
« Last Edit: July 28, 2013, 09:47:44 AM by snownut2 »

Crank

  • Water Moccasin
  • Posts: 1503
Re: Adding a Tray Button
« Reply #3 on: July 28, 2013, 09:47:47 AM »
I haven't tried this, but you should look at Owen's tool (R14-R2013; Bricscad 9 - 13).
Vault Professional 2023     +     AEC Collection

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Adding a Tray Button
« Reply #4 on: July 28, 2013, 09:56:38 AM »
Thanks Crank, I'll take a look at "Owen's Tool"

Bruce

BlackBox

  • King Gator
  • Posts: 3770
Re: Adding a Tray Button
« Reply #5 on: July 28, 2013, 11:08:30 AM »
Just use DOSLib; it has a tray LispFuncion Method... Or you'll have to step up into .NET API
"How we think determines what we do, and what we do determines what we get."

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Adding a Tray Button
« Reply #6 on: July 28, 2013, 11:34:56 AM »
Just use DOSLib; it has a tray LispFuncion Method... Or you'll have to step up into .NET API

I just looked through DOSLib help file, could not find any reference to Tray Buttons,  any guidance where it may be.

BlackBox

  • King Gator
  • Posts: 3770
Re: Adding a Tray Button
« Reply #7 on: July 28, 2013, 01:58:00 PM »
Apologies - they provide a tray notification bubble, and not a tray button. Methinks that will require .NET/ObjectARX API.
"How we think determines what we do, and what we do determines what we get."