Watch, Follow, &
Connect with Us
Public Report
Report From: Kylix/VCLX/TForm    [ Add a report in this area ]  
Report #:  4501   Status: Open
Widget is recreated after DestroyHandle in OnHide
Project:  Kylix Build #:  4.186
Version:    3.0 Submitted By:   Martin Schreiber
Report Type:  Suggestion / Enhancement Request Date Reported:  5/20/2003 6:19:47 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    Kylix Pascal IDE Internal Tracking #:   166179
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
To save resources, i wish to call DestoyHandle in QForms.TCustomForm.OnHide, but the widget is recreated  after DestroyHandle in OnHide:

Problem:

procedure TCustomForm.DoHide;
begin
  if Assigned(FOnHide) then
    FOnHide(Self);
  QWidget_hide(Handle); <-!!! handle is recreated.
end;
Steps to Reproduce:
1. Run the attached Project1.
2. Click form2.show.
3. Close form2.

// Act: form2.handleallocated = true
// Exp: form2.handleallocated = false.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01