Does someone have a better solution?
Best regards,
Otto
- Code: Select all Expand view
function onresize(oWnd)
local nSpaceWidth := oWnd:GetWidth(" ", )
local cCaption:= "RibbonBar Test " + FWVERSION
local nSpaces := 0
local nSpaceBTNs := 140
nSpaces := ( oWnd:nWidth - nSpaceBTNs - oWnd:GetWidth(cCaption, ) ) / 2 / nSpaceWidth
oWnd:cTitle( space( nSpaces ) + cCaption )
return nil