Detecting height of dock and taskbar

Richard Gaskin ambassador at fourthworld.com
Thu Sep 29 18:13:37 EDT 2005


Chipp Walters wrote:
> Nope, sorry Richard, it can't be obtained correctly from the registry. I 
> know, I've tried. There's a specific API call for it. See:
> <http://lists.runrev.com/pipermail/use-revolution/2003-December/027437.html >

That post contains something I don't understand:

------------------
I've searched and found Ken Ray's:

function TitleBarHeight
   get queryRegistry("HKEY_CURRENT_USER\Control
Panel\desktop\WindowMetrics\CaptionHeight")
   if it is not empty and isNumber(it) then
     put round(it / -15) into tHeight
     return tHeight
   end if
end TitleBarHeight

but, sadly, this isn't reliable. It doesn't take into account double row
taskbars or unlocked taskbars, etc..
------------------

Why would taskbar variances affect window title bar height?

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list