Sebastian Mares
08-26-2005, 04:35 PM
Me again...
Can someone please tell me how I can align text on the left and right like it's done in the attachment? Notice that the first pane contains text one the far left and on the far right - it's one pane not two with one set to align left and one right.
While we're at it, can I remove the grip from a v6 StatusBar control?
Regards,
Sebastian
wakjah
08-26-2005, 04:52 PM
The text aligned right is simply another pane moved over to the right, just you can't see all the seperators in XP so as to make it look 'nice'. As for the grip, it should go if you change the form's BorderStyle to one which is non-sizable.
Sebastian Mares
08-26-2005, 04:55 PM
I don't think it's another pane since you can see the other separators (you see that the "168 (10:58:53 | 772,1MB" part is another pane).
I've also seen this in other C++ programs, like foobar2000 for example.
As for the grip, I would like to leave my form resizable. :)
Diurnal
08-26-2005, 05:33 PM
If you open the propeties dialog for the control and select the "Panels" pane, you can set the alignment for each panel using the Alignment property. In code it would look like this:
With StatusBar1
.Panels(1).Alignment = sbrRight
.Panels(2).Alignment = sbrCenter
End With
Sebastian Mares
08-27-2005, 02:38 AM
If you open the propeties dialog for the control and select the "Panels" pane, you can set the alignment for each panel using the Alignment property. In code it would look like this:
With StatusBar1
.Panels(1).Alignment = sbrRight
.Panels(2).Alignment = sbrCenter
End With
Did you read my post?