This snippet will detect if the title is bigger than the traditional one. If it's bigger then the window is resized.
[local function declaration] FUNCTION integer GetSystemMetrics ( int nIndex ) LIBRARY "user32.dll" [window open event] CONSTANT integer SM_CYCAPTION = 4 integer li_pixels, li_pbunits li_pixels = GetSystemMetrics(SM_CYCAPTION) li_pbunits = PixelsToUnits(li_pixels, YPixelsToUnits!) this.height = this.height + ( li_pbunits - 76 )
Written and compiled by Réal Gagnon ©1998-2005
[ home ]