UserForm - Detect if document changed or if MultiPage regains focus?

Hi Loeb,
When using SetStatusBarText it overwrites the standard statusbar text. If I remember correctly just setting it back to an empty string makes SolidWorks take control again.
I prefer using MyStatusBarPane.text because you can see both: the default and your own info. :slightly_smiling_face:

2 Likes

LOL, I just came back here to ask that. Indeed, setting MyStatusIFrame.SetStatusBarText to β€œβ€ gives control of its content back to SW. I agree that it’s probably better form to use StatusBarPanes over the StatusBarText

To elaborate for others:
MyStatusIFrame.SetStatusBarText edits the bottom left status bar that normally shows your version of SW unless you overwrite it.
MacroStatusBarPane.text edits one of 5 status bars at the bottom right of the SW interface.

it actually shows much more than that depending on what you are doing (editing assembly, editing part) or what is active/selected.
fi. It shows if a sketch is fully constrained or not.
fi. if an edge on a part is selected it shows the edge length (this is much faster than measure in a lot of cases)
fi. if a view on a drawing is selected it shows the scale
…

1 Like