Jump to content

Recommended Posts

Posted

in the example "uniGUI \ Demos \Desktop\Windowless"

UniServerModule.MainFormDisplayMode = mfPage

if I add to the source

MainForm.OnAfterShow = UniFormAfterShow

procedure TMainForm.UniFormAfterShow(Sender: TObject);
begin
  UniMemo1.Lines.Add('--- > OnAferShow');
end;

the OnAfterShow event is called 2 times.

Why?

 

Posted

Ciao Freeman35

I need this adjustment ...
in many cases I start the Query in this event .. in order to display the form first and then the request for the data for the grid.
Is there a post-show event even after the AftherShow?

PS: 
Since it cannot be obtained even by paying uniGUIForm.pas.
At least is it possible to have uniGUIForm.int ?
an .int file where you only see the Interface part of Unit not shipped with source,

 .. example of the probable file:

unit uniGUIForm;

interface

uses
  Controls, Classes,...;

type
   TUniForm = class(TUniCustomForm) 
  private
    FOnReady: TNotifyEvent;
    ..
  protected
    function GetOnShow: TNotifyEvent; virtual;
    procedure OnAfterShow(Value: TNotifyEvent); override;
    ...   
  public
    constructor Create (AOwner: TComponent); 
    destructor Destroy; 
    ...
  published
    property OnCreate;
    property OnReady;
    property OnBeforeShow;
    property OnShow;
    property OnAfterShow;
    ...
  end;

implementation
end.

 

Posted
1 minute ago, Sherzod said:

Fixed, please wait for the next build.

Grazie .

Also think about giving documentation in int files..
if you provide the files uniImageList.int .. uniCanvas.int .. uniGUIForm.int ..
facilitates the ability to create custom components
trying to create override procedures ..

I will wait for a next version soon

Posted

Given that I do not understand why not have the source of all the files ...:sad:

where the pas source is not provided ...
give only the definition part of interface ..

Posted

hi @gerardocrisci

quick & short way, before Farshad fix this bug,

Can add this code to where trigger twice.
 

procedure TMainForm.UniFormAfterShow(Sender: TObject);
begin
if Self.Tag<>0 then exit; // or use any flag
  UniMemo1.Lines.Add('--- > OnAferShow');
Self.Tag:= 1;
end;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...