Wednesday, 25 August 2021

Unigui Global Variable

 Here the sample how to use global variables for other forms.


DataModule : dmDataModule

 public

    { Public declarations }      

    fMyGlobalVar_Userid    : string;

   

published

    property MyGlobalVar_Userid: string read fMyGlobalVar_Userid write                                 fMyGlobalVar_Userid;

  end;




Form1 : 

var 

   UserId : string;

begin

   dmDataModule.MyGlobalVar_Userid := UserId;

end;




Form2 : 

   unimLabel1.Text := dmAppModule.MyGlobalVar_Userid;



Friday, 20 August 2021

Unigui How to Setting Enter As Tab

 You must configure your form and enable Enter using these steps:


In Property of UniForm, 

    NavigateKeys --> Enabled = True

                           --> Next --> Key = 13

                                         -->  HandleBrower = True