Peping:
Another way, if you truly want a right justified title caption, is to eliminate the title bar altogether.
Then if want the appearance of a true title bar, add a textbox the width of the form. Add the desired 'caption' text to the textbox value property and set the textbox's alignment to right aligned. The text box should be disabled and of course make it's disabled color properties the same as a title bar would be for the form's color scheme.
Caveat:
You'll need to add some intelligence in the form' activate/deactivate methods to change the color of the textbox between the appropriate 'form active' / 'form inactive' mode to mimic the behavior of a true title bar. Otherwise, you may confuse your users when they switch between other forms you may have on the screen.
Add a small square commandbutton to the right of the textbox to mimic the form close button if you like, with code to release the form.
Also, if you add the command button, you'll need to adjust the width of the textbox butt up against the left edge of the command button and place another textbox underneath the command button; with appropriate colors and disabled properties set. And of course it will have to be managed by the active/deactivate code.
Convoluted I know, but it works. I've done it.
Hope helps...
Darrell