• Welcome to PlanetSquires Forums.
 

StatusBar Panel Width

Started by SeaVipe, November 18, 2023, 05:32:27 PM

Previous topic - Next topic

SeaVipe

Hi Paul,

Is there a way to set the width of a StatusBar Panel after the form with the StatusBar is visible?

This line:
frmMain.StatusBar.Panel(0).Width = 700
...works before the form is shown but any attempt to repeat the above with a different value has no effect once the form is visible.
Clive Richey

Paul Squires

hmmmm.... yeah, looks like there is a call missing after the Panel size is changed at runtime.

Try this:

   frmMain.StatusBar.Panel(0).Width = 700
   frmMain.SizeStatusBar
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

Clive Richey