Re: Popup Button bug??

2025-01-27 Thread Bob Sneidar via use-livecode
Not at all. I have a File Server Agent that uses socket communications. I first get a list of files from the user, then I query the server or a list of what I call Profiles which right now are just a name and a file path on the server. I want to present the client user with a list of the names

Re: Popup Button bug??

2025-01-27 Thread Craig Newman via use-livecode
Bob. What are you trying to accomplish that the native buttons do not do for you? The popUp command, to me, is simply a tool to invoke a display of resident menuItems that do not necessarily have to live at the button location itself, and that button not even needing to be visible. Are you add

Re: Popup Button bug??

2025-01-27 Thread Bob Sneidar via use-livecode
Interesting, the dictionary didn’t mention mouseUp. But some kind of mouse up or down handler has to be what makes the call. It turns out that rolling your own blocking popup “menu” is not very straightforward. Here is what I came up with: on popupMenu pMenu, pItems, pLocation -- anything

Re: Popup Button bug??

2025-01-27 Thread Craig Newman via use-livecode
It also works with any style of menu-style button, combobox, pulldown, etc. Craig > On Jan 27, 2025, at 12:39 PM, Craig Newman via use-livecode > wrote: > > Bob. > > It works just fine in a mouseUp handler as well. I just did it. > > Craig > >> On Jan 27, 2025, at 12:31 PM, Bob Sneidar via

Re: Popup Button bug??

2025-01-27 Thread Craig Newman via use-livecode
Bob. It works just fine in a mouseUp handler as well. I just did it. Craig > On Jan 27, 2025, at 12:31 PM, Bob Sneidar via use-livecode > wrote: > > Understood. That is why I wrote, I assure everyone there *IS* a button called > “mnuLocations”. As I posted later, this command can only be us

Re: Popup Button bug??

2025-01-27 Thread Bob Sneidar via use-livecode
Understood. That is why I wrote, I assure everyone there *IS* a button called “mnuLocations”. As I posted later, this command can only be used in a mouseDown handler. I think I knew this many, many years ago, but I forgot. Bob S > On Jan 27, 2025, at 9:28 AM, Craig Newman via use-livecode >

Re: Popup Button bug??

2025-01-27 Thread Paul Dupuis via use-livecode
Is this new and occurring on macOS Sequoia? I ask as I have some popup (and other) menu weirdness happening that is new to Sequoia. On 1/27/2025 12:17 PM, Bob Sneidar via use-livecode wrote: Hi all. I have the command: popup pMenuButton at pLocation pMenuButton contains: button “mnuLocatio

Re: Popup Button bug??

2025-01-27 Thread Craig Newman via use-livecode
Bob . “popup” is not a command that creates a button. It only works with an existing button, opening its contents at a location of your choice. That button can be hidden, but its menu will appear anyway. Craig > On Jan 27, 2025, at 12:17 PM, Bob Sneidar via use-livecode > wrote: > > Hi all.

Re: Popup Button bug??

2025-01-27 Thread Bob Sneidar via use-livecode
Okay, it appears that this command can only be used in a mouseDown handler. That isn’t entirely clear in the dictionary. I am simply trying to present a menu to the user. I will use a different kind of menu button then, and just show and hide the button. Bob S > On Jan 27, 2025, at 9:17 AM,

Popup Button bug??

2025-01-27 Thread Bob Sneidar via use-livecode
Hi all. I have the command: popup pMenuButton at pLocation pMenuButton contains: button “mnuLocations" pLocation contains: 55,303 I am getting the error: stack "moduleCardBehavior": execution error at line 360 (subwindow: can't find stack or button), char 1 I assure everyone there *IS* a