Jump to content

Sherzod

Moderators
  • Posts

    19654
  • Joined

  • Last visited

  • Days Won

    634

Everything posted by Sherzod

  1. Здравствуйте, К примеру: \FMSoft\Framework\uniGUI\Demos\Desktop\URLParameters
  2. Try this 1. Uses list: uses uniGUIVars , MainModule , uniGUIApplication , System.IOUtils , System.StrUtils , ServerModule , ExtPascalUtils //<----------- ; 2. ... ACmd := '.execCmd(' + '''' + 'InsertHTML' + '''' + ' , ' + StrToJS(AHtml) + ')'; //<----------- UniSession.AddJS(UniHTMLMemo1.JSName + ACmd); end;
  3. Hello, Can you make a simple testcase for this (maybe with UniHTMLMemo)?!
  4. Hi Dominique, One possible solution (CSS) 1. UniServerModule -> CustomCSS: body:after { content: attr(title) ""; font-family: Times New Roman; font-size: 36px; position: absolute; top: 10px; left: 10px; } 2. LoginForm -> OnCreate event: procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.select("body").elements[0].setAttribute("title", "UniGUI LoginForm")'); end; 3. MainForm -> OnCreate event: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.select("body").elements[0].setAttribute("title", "")'); end;
  5. Здравствуйте, Какую версию и сборку используете?
  6. Hello, Is this acceptable to you? 1. procedure ChBoxsChange(Sender: TObject); procedure TMainForm.ChBoxsChange(Sender: TObject); begin if (Sender as TUniCheckBox).Checked then (Sender as TUniCheckBox).Color := $00F9CD87 else (Sender as TUniCheckBox).Color := clNone end; 2. How to use, for example: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniCheckBox1.OnChange := ChBoxsChange; UniCheckBox2.OnChange := ChBoxsChange; DynamicCheckBox.OnChange := ChBoxsChange; end;
  7. procedure TMainForm.UniPanel1MouseEnter(Sender: TObject); begin UniPanel1.Width := UniPanel1.Width + 50; end; procedure TMainForm.UniPanel1MouseLeave(Sender: TObject); begin UniPanel1.Width := UniPanel1.Width - 50; end; ?
  8. Если Вы имеете в виду на стороне клиента, то это невозможно. За исключением случая если не используется IE с ActiveX...
  9. Здравствуйте, Простите, а что за функция?
  10. The default message that appears in the confirmation box, is different in different browsers. However, the standard message is something like "Are you sure you want to leave this page?". This message cannot be removed. However, you can write a custom message together with the default message. See the first example on this page. Note: This only works in Internet Explorer. https://www.w3schools.com/jsref/event_onbeforeunload.asp
  11. Здравствуйте, MainForm -> OnScreenResize событие
  12. https://www.w3schools.com/jsref/event_onbeforeunload.asp
  13. Sherzod

    BUG ?

    Hello, Can you please make a simple testcase or how can we reproduce this issue?
  14. Hello, Can you please specify which edition and build of UniGUI are you using?!
  15. Hi, Try: 1. UniImage -> function beforeInit(sender, config) { config.cls='avatar'; } 2. CustomCSS: .avatar img { vertical-align: middle; width: 80px; height: 80px; border-radius: 50%; }
  16. Sorry, how or where? You can use the MainModule -> OnDestroy event for this I think (without MessageDialogs of course)
  17. Sherzod

    TUniDBGrid

    For the grid header as a whole: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniDBGrid1.JSInterface.JSConfig('enableColumnHide', [False]); end;
  18. Sherzod

    TUniDBGrid

    Have you tried with? uniDbGrid1.Columns[index].Menu.MenuEnabled := False;
  19. Sherzod

    TUniDBGrid

    Or do you want to completely hide the menu?
  20. Sherzod

    TUniDBGrid

    Hello, One possible solution I think UniDBGrid1.JSInterface.JSAssign('hideable', [False], UniDBGrid1.Columns[1].JSColumn); UniDBGrid1.JSInterface.JSAssign('hideable', [True], UniDBGrid1.Columns[1].JSColumn);
×
×
  • Create New...