User Form alternative to PMP (Property Manager Page) for selection box?

After successfully implementing my first PMP macro (VBA), I am embarking on new project that will require a selection box. For this project, the limitations that the PMP presents regarding the layout of controls make a PMP inappropriate for this effort. I need the flexibility to layout UI controls that a user form provides.

Adding a home-grown selection box to a user form seems straight forward enough, but one thing I learned from writing a PMP is that there are sometimes situations that require some crafty coding to create a UI where selection boxes behave as a user would expect.

I am wondering if anyone knows of a macro or library of handlers that can help in implementing a selection box in a SolidWorks user form.\

Thank You,

Can you use the task pane instead of a Property Manager Page? You can put an entire user form in a task pane.

1 Like

Jim,

Do Task Panes provide Selection Box functionality, unlike user forms which do not?

Based on this tutorial, it looks like most VBA controls are available.

SolidWorks API Tutorial 3 of 5: Creating Task Pane Controls

Selection box is not a VBA control. It’s a PMP-specific control. I don’t think they are available outside a PMP.

1 Like

Can you clarify what you mean by selection box? Are you referring to a list box containing selections like this:

or a graphical selection box like this:

It’s the first one. The second has nothing to do with forms or controls.

Right, a List Box.

It looks like I’m going to have to recreate a selection box using a VBA User Form. I wonder if anyone has done this before? Would be nice to not have to recode all that from scratch!

Maybe something here will be helpful.

Thanks, I’ll check it out.