I would like to request the option for a right-justified button would be suitable.
Alternatively, ToolBarButtonWidth() and ToolBarSeparatorWidth().
What is it?
* #PB_ToolBar_Right_Justify could work with ToolBarxxxButton() commands, OR'd with the Mode--or whole new button commands.
Alternatively,
* ToolBarButtonWidth() returns the # of pixels a ToolBar Button uses.
...and...
* ToolBarSeparatorWidth() returns the # of pixels a ToolBarSeparator uses.
Why?
To get a right-justified ToolBar button (i.e. "File Close"), you currently have to use API, or draw it manually. If you draw it manually, you assume the user has not changed their operating system settings (or with Linux, that all of the different gui's are the same).
You cannot use ToolBarHeight, because (on my w7 box) the Height is 28, but the actual spacing of the buttons is 23--who knows if that "-5" calculation would be consistent across all platforms?!? (Rhetorical.)
Implementing one of the two options here will allow a quick & easy calculation for spacing out a "Close File" button that is platform independent.
Thank you.