There is a difference in how the captions are displayed on Property Sheet tabs when they are provided explicitly, or supplied as a character string. The following code demonstrates this
winapp
program main
integer propsheet(3) ! handle to the property sheet
integer ii
character*13:: caption=' caption '
ii = winio@('%sh%ca[ caption ]sheet 1',propsheet(1))
ii = winio@('%sh%ca@Sheet 2',propsheet(2),caption)
ii = winio@('%2ps[ms_style,hot_track]',propsheet(1),propsheet(2))
end
The first sheet will have the caption displayed with all the characters; that is, the spaces present before and after the text are displayed. The second sheet using a character variable does not have the trailing spaces displayed.
While this is perhaps a minor issue, because captions are used to identify the tabs, it is not possible to do an equivalent of 'centering' by supplying spaces before and after the caption. I could dynamically build the caption in a local character string, then have winio@() execute it, but now brackets that I use in captions cannot be displayed. So, I am stuck...
Bill