Jump to content

Simple Desktop


Recommended Posts

Hi,

 

To Minimize form

 

procedure TUniServerModule.addMinimize(form:TUniForm);
var name:string;
begin
  if not(biMinimize in form.BorderIcons) then
    form.BorderIcons := form.BorderIcons + [biMinimize];
  name := StringReplace(form.WebForm.ExtWindow.Id,'_id','',[rfReplaceAll] +[rfIgnoreCase]);
  form.Script.Add(name +'.on('+#39+'minimize'+#39+',function(w){w.toggleCollapse();w.setVisible(!w.isVisible());});');
end;

 

 

OnCreate new Form add event addMinimize

 

UniServerModule.addMinimize(self);

 

to Maximize

 

form.show

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...