Author Topic: Trying to create a Pop-Up toolbar  (Read 2244 times)

0 Members and 1 Guest are viewing this topic.

HelpLispinSeattle

  • Guest
Trying to create a Pop-Up toolbar
« on: April 20, 2009, 02:59:20 PM »
Hi there,

Is there a way for visual lisp to know the name of the toolbar
whose button you've just selected. I've been looking at "reactors"
but I dont think it has one for the toolbar selection.

I've created a toolbar called Pop-Up. I plan to "show" or Pop-up the toolbar
with this expression..
(command "-toolbar" "POP-UP" "f" (strcat x "," y) noofrows)

x and y......will be coordinates of cursor (results from a sub-routine)
noofrows.....will be number of rows

Now I will dropping & dragging different buttons from different toolbars, the ones
I use the most .  But I have to add this to each button I add..(command "-toolbar" "POP-UP" "h")

Is there a way wherein I dont have to add this to each button I add. I would
like the program to close a toolbar named "POP-UP" every time one of its buttons
is selected.

Any help would be appreciated.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Trying to create a Pop-Up toolbar
« Reply #1 on: April 20, 2009, 03:29:50 PM »
Careful with reactors,  you can not use "command" or "vl-cmdf" inside of a reactor.
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

HelpLispinSeattle

  • Guest
Re: Trying to create a Pop-Up toolbar
« Reply #2 on: April 20, 2009, 03:33:35 PM »
Tim,

Hmm, So I guest I cant use reactors...I'll wait for more suggestions or comments.

GDF

  • Water Moccasin
  • Posts: 2081
Re: Trying to create a Pop-Up toolbar
« Reply #3 on: April 20, 2009, 03:42:47 PM »
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

HelpLispinSeattle

  • Guest
Re: Trying to create a Pop-Up toolbar
« Reply #4 on: April 20, 2009, 03:58:32 PM »
Gary,

Its not really what I'm looking for but it sure gives me ideas/projects that I may work on..Thanks.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Trying to create a Pop-Up toolbar
« Reply #5 on: April 20, 2009, 04:03:02 PM »
This might provide some help/ideas.

[ http://www.theswamp.org/index.php?topic=10611.0;all ]
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

HelpLispinSeattle

  • Guest
Re: Trying to create a Pop-Up toolbar
« Reply #6 on: April 20, 2009, 04:17:07 PM »
Tim,

Thank you! This looks interesting.