Two more questions:
#1. It seems that the Alignment of text in the TextBoxW doesn't work. Neither setting in the IDE, nor setting it at runtime in code gives another result than left align.
#2. I have a statusbar with 5 panels. Panels 1, 4, and 5 are fixed. The remaining space is divided between panels 2 and 3. For the standard CC statusbar, I updated the width of panels 2 and 3 in the form resize event. When I do that now with the CCR statusbar, the width of the panels is not calculated correctly.
My original code:
I also tried with:Code:With brStatusBar .Panels(2).Width = (frmMain.ScaleWidth - .Panels(1).Width - .Panels(4).Width - .Panels(5).Width) / 2 .Panels(3).Width = (frmMain.ScaleWidth - .Panels(1).Width - .Panels(4).Width - .Panels(5).Width) / 2 End With
Code:With brStatusBar .Panels(2).Width = (.Width - .Panels(1).Width - .Panels(4).Width - .Panels(5).Width) / 2 .Panels(3).Width = (.Width - .Panels(1).Width - .Panels(4).Width - .Panels(5).Width) / 2 End With
Last, but not least, I also tried moving this to the form Paint event. Unfortunately to no avail.
Any suggestions?




Reply With Quote