I don't think that %tt is intended to line up with anything else but other %tt controls. The hint is in the expansion of %tt - 'textual toolbar'. If you use these buttons in their own toolbar, everything works. You will also find that %tt buttons are not infinitesmally scalable, they increment the x-size in quite large steps, unlike %bt which increments the x-size in smaller steps. Moreover the y-size of %tt is very different to that of %bt, and different again to %bb.
What is more, the whole shebang is predicated by the font size currently in use, as things are scaled according to a notional average character size block. You can see what this is by using the %gd grid control in your window. Not only does the positioning of controls depend on the font in use, you should note that the font changes between different versions of Windows, for example the system font in XP is different from Vista and 7 (who knows about 8), and this messes up careful positioning with %dy. If the target computer has large fonts enabled, this is also handled differently by dufferent versions of Windows.
If you want several %rf boxes to align vertically, then it is sometimes better to put the text to the right of them.
I had a little play with your code:
winapp
Program tryit
real*8 parama, paramb
parama = 1.0d0
paramb = 2.0d0
jj=winio@('%ww%bg[white]%ca[parameter window]&')
jj=winio@('%th&',1)
jj=winio@('%8rf Parameter #1%nl&',parama)
jj=winio@('%8rf Parameter #2&',paramb)
jj=winio@('%ff%nl%cn&')
jj=winio@('%tt[Help] &')
jj=winio@('%tt[Cancel] &')
jj=winio@('%`tt[Execute]')
write(*,*) jj, parama, paramb
end
resources
1 24 default.manifest
You can, of course, program what you want, but the standard in windows is to highlight the default button, not colour it in. If the 'Go' button closes this window, you don't need a callback for it, just test the return code on exit (it's in JJ, and 0 means the close box was used). Of course, you can have callbacks on some buttons, and use the callback return value to close the window.
You might find it more helpful (no pun intended) to attach Help info to a different kind of button, say of the %ib type, positioned out of the row of 'Cancel' and 'Go' - say at top right of the screen - using the standard Help icon (sadly, not one of the @si icons), as every Windows user will know what it does.
Eddie