defect in TCustomForm.GetMonitor

Issue #33 resolved
Friedrich Westermann created an issue

the result from TCustomForm.GetMonitor will always be Nil. these is a new problem since 0.2.228 will be called in SetWindowToMonitor for show a form with DefaultMonitor different from dmDesktop

Comments (3)

  1. Friedrich Westermann reporter

    I have found the Problem: in the Formcreate i had these code: ClientWidth := Image1.Picture.Width; ClientHeight := Image1.Picture.Height;

    But for test i have cleared the Image.picture so Clientwidth and ClientHeight was 0 and there is the problem..

    In these case the GetMonitor is not working. After commenting out these lines all is working again

  2. Log in to comment