|Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread|
|Messages 11 to 15 of 15 total|
|Mon, Oct 29 2007 12:48 PM||Permanent Link|
That was my first thought - didn't work. What I'm doing now is sending a custom message to the form which in turn fires the FormActivate event - cacky but it works.
|Mon, Oct 29 2007 2:08 PM||Permanent Link|
Tim Young [Elevate Software]
Elevate Software, Inc.
<< I've just discovered one problem with the embedded forms approach -
FormActivate doesn't fire. What do you do about that? >>
I don't use it, so I didn't run into that issue.
|Tue, Oct 30 2007 12:57 AM||Permanent Link|
Roy Lambert wrote:
> I've just discovered one problem with the embedded forms approach - FormActivate doesn't fire. What do you do about that?
Sorry to jump in. May be I'm wrong but I found, if the PageControl have
a close button, FormClose also not fire when I close the tab by clicking
the close button. I'm using DevEx's PageControl.
> Roy Lambert
|Tue, Oct 30 2007 4:48 AM||Permanent Link|
I'm using TMS and the FormClose event does fire when I click the close button - here's the code I'm using
procedure TMainForm.FormControllerClosePage(Sender: TObject; PageIndex: Integer; var Allow: Boolean);
TagNo := FormController.ActivePage.Tag;
Allow := TagNo > tagCallbacks;
if FormController.Tag = 1 then begin
for Cntr := 0 to Application.ComponentCount - 1 do begin
if (Application.Components[Cntr] is TForm) and (TForm(Application.Components[Cntr]).Tag > 0) then begin
if TForm(Application.Components[Cntr]).Parent = FormController.ActivePage then begin
if (not Allow) and (not IsCreated[TagNo]) then begin
end else begin
I use the button to close the form if its created, and create it if it isn't
|Tue, Oct 30 2007 8:30 AM||Permanent Link|
Roy Lambert wrote:
My fault, I don't write a Close method
|« Previous Page||Page 2 of 2|
|Jump to Page: 1 2|