/*	
 //!GFG è //!\GFG  are commentary attributes generated by 
 the Gentee form editor. You should neither delete them 
 nor make any changes into the source code from the beginning 
 of the commentary attribute //!GFG to its end //!\GFG
*/
/*
//!GFG include
include {
	"app.g"
	"picture.g"
	"url.g"
	"panel.g"
	"btnpic.g"
	"label.g"
//!\GFG

}
*/
//!GFG form
type vfAbout <inherit=vForm> {
	vPicture	iAbout
	vBtnPic	bOK
	vLabel	lCopyright
	vURL	uSite
	vPanel	pAuto
	vLabel	lAuto
	vURL	uAuto
	vLabel	lVersion
 //!\GFG

}

global {
   vfAbout fAbout
}

//!GFG method onok evparEvent
method uint vfAbout.onok <alias=fAbout_onok>( evparEvent evn )//!\GFG
{
   .Close()
   return 0
}

//!GFG method oncreate evparEvent
method uint vfAbout.oncreate <alias=fAbout_oncreate>( evparEvent evn )//!\GFG
{
   ustr utemp ut
   
   .lVersion.Caption = utemp.fromutf8( "\( g_name ) \( ?(*g_version, 
                             " v\(g_version)", "" ))")
   if *g_website
   {
      .uSite.Caption = utemp.fromutf8( g_website )
      .uSite.URL = .uSite.Caption
   }  
   else : .uSite.Visible = 0
   if !*g_author : g_author = "Unknown"
   
   defmacro[ "param" ] = utemp.fromutf8( g_author )
   App.Lng.getlang( "copyexe", ut )
   defmacro.replace( ut )
   .lCopyright.Caption = ut    

/*   defmacro.set( "param", g_author )
   App.Lng.getlang( "copyexe", utemp )
   .lCopyright.Caption = utemp.fromutf8( defmacro.replace( str( utemp ) ))*/   
   return 0
}

//!GFG includeinit
include { $"about.gi" 
}//!\GFG

