How do I find the width of the window in character units?  If I am using
a 10 point font, is that 10 dialog units or 10 pixels or something else?

The following does not position it correctly:
 titleBarText = self~getWindowText(hwnd)
 size = .size~new(self~pixelCX, self~pixelCY)
 sizefix = Pos("  ",titleBarText)
 if sizefix = 0 then
   sizefix = length(titleBarText)
 sizetxt = size~width % self~fontSize
 sizedb = length(message)
 sizetxt = sizetxt - sizedb - 4
 titleBarText = left(titleBarText,sizefix)
 titleBarText = left(titleBarText,sizetxt,' ') message
 self~setWindowText(hwnd,titleBarText)

The content of the var message appears toward of the middle of the 
window text area.

--
  Art Heimsoth - artst...@artheimsoth.com

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to