No, I don't use a descendant base form. But I did think of that as a solution. Problem is, if you anchor a control to the bottom, changing the form size doesn't change the problem with the control.
Dave. -----Original Message----- From: Max Nilson [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 10:06 a.m. To: Multiple recipients of list delphi Subject: RE: [DUG]: Resizing for XP title bars David O'Brien asks: > Any easy way of dealing with XP's title bar size change? Apart from > leaving a gap at the bottom of the form? Just thinking about that myself. I think the best solution would be some code in in you base forms CreateParams that detects XP and increments the height of the window being created if theming are currently activate. The increment would be the difference between the an unthemed window title bar and the current themed one. Note that users running Stardock's Windows Blinds have more than just the basic themes available to them. I suspect that you'll have to store the unthemed height as a constant in the code as its going to be ugly to try and ask for it if a theme is active, if I remember the theming API and its effect of the system metrics results... You do have all your forms decending from one base form class right? Cheers, Max, --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
