Jump to content
uniGUI Discussion Forums

Search the Community

Showing results for tags 'runtime'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • uniGUI 1.x
    • Beta Releases
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 15 results

  1. Hello everyone, When creates a control (ex: uniEdit) in runtime mode and then adds "ClientEvents.ExtEvents" this events don't fire but If I add the same event in runtime mode but in a control created at design time then fires ok. Exemple: procedure TMainForm.UniFormCreate(Sender: TObject); const after_render_Event = 'afterrender=function afterrender(sender, eOpts) { sender.allowBlank = false;}'; begin //Works ok //************ // UniEdit Control (Created in Design mode) // Add client event in runtime fires ok UniEdit1.ClientEvents.ExtEvents.Add(after_render_Event); //No Works!!!!!!!!!! //******************* // UniEdit Control (Created at Rumtime time) FRunTimeUniEdit := TUniEdit(InsertControl(TUniEdit.Create(Self))); with FRunTimeUniEdit do begin Left := 72; Top := 122; Width := 200; // Add the same client event in runtime mode not fires ClientEvents.ExtEvents.Add(after_render_Event); end; end; Someone knows why this happens? Thank you.
  2. arilotta

    Change LayoutConfig.Flex at runtime

    Hi all, apparently it is not possible to change the flex at runtime, for example for a panel. Is there a magic JS script that let the component redraw himself using the new flex set ? Thanks Andrea
  3. zanona

    beforeinit in runtime

    I need to load the beforeinit event in runtime but it does not work! Follow the code below! Procedure TMainmForm.setColorBack (vpComp: TUNIMDBNUMBEREDIT); Var VrsStr: string; Begin VrsStr: = 'beforeInit = function beforeInit (sender, config)'; VrsStr: = vrsStr + '{'; VrsStr: = vrsStr + 'config.maxLength = 10;'; VrsStr: = vrsStr + 'config.clearIcon = false;'; VrsStr: = vrsStr + 'config.inputCls =' 'DataeditMobile yellowBG' ''; VrsStr: = vrsStr + '}'; VpComp.ClientEvents.ExtEvents.Clear; VpComp.ClientEvents.ExtEvents.Add (vrsStr); End; I call the event in the wind form create SetColorBack (SP_Esf_L_OD); Thanks Zanona
  4. jonas@pcsupport.nu

    TUniHTMLFrame - adding html at runtime

    I have a project where I need to build some html att runtime. A part of the contents I'm trying to show is a Facebook timeline plugin. The html code for the plugin is creaed at https://developers.facebook.com/docs/plugins/page-plugin. If I set the html code at design time the contents is shown correctly, but if I set i dynamically at runtime the contents isn't show correctly - there is just an empty space with the url to the facebookpage, see the attached screen dump. The html code: <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/sv_SE/sdk.js#xfbml=1&version=v3.1&appId=1802520233141884&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); </script> <div class="fb-page" data-href="https://www.facebook.com/sbkattila"data-tabs="timeline" data-width="300" data-height="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"> <blockquote cite="https://www.facebook.com/sbkattila"class="fb-xfbml-parse-ignore"> <a href="https://www.facebook.com/sbkattila">SBKAttila</a> </blockquote> </div> The program code: procedure TMainForm.UniButton1Click(Sender: TObject); var MemStream: TMemoryStream; begin MemStream:= TMemoryStream.Create; HTMLFrame1.HTML.SaveToStream(MemStream); MemStream.Position:=0; HTMLFrame2.Html.LoadFromStream(MemStream); MemStream.Free; end; I have tried to use Repaint, Refresh, ReAilgn, Update methods for the UniHTMLFrame. I have also tried to put the script spart of the html code in UniHTMLFrame.BeforeScript. I have tried to use bothe Google Chrome an d Internet Explorer with the same result. I'm using Delphi 10.2 Enterprise Update 3 and UniGui (full license). I have attached a sample project(project1.zip) that shows the problem. Project1.zip
  5. diego@grv.com.br

    Create series in TUniChart at runtime

    Hello, I would like to know how to create "series" within the "TUniChart" component at run-time. I searched and found several links related to the subject: http://forums.unigui.com/index.php?/topic/9065-create-cahrt-series-at-runtime/?hl=chart http://forums.unigui.com/index.php?/topic/7578-chart-dynamic-series/?hl=chart http://forums.unigui.com/index.php?/topic/3567-dynamic-series-in-tunichart/?hl=chart&do=findComment&comment=38665 http://forums.unigui.com/index.php?/topic/6180-add-dynamic-series-to-unichart/?hl=chart http://forums.unigui.com/index.php?/topic/3567-dynamic-series-in-tunichart/ http://forums.unigui.com/index.php?/topic/9377-pie-chart-2-series-created-at-runtime-with-same-datasource-help/?hl=chart But none of them has a definitive answer. Is it possible to create series within a graphic at runtime or not? If so, how is it done, in a way that works? Please, post a sample. Thanks
  6. Hi How to can remove column selection from UniDbGrid In RunTime? Best Regards.
  7. Would someone be so kind as to show me an example of "creating and setting up a unimChart Series" in code at runtime - thanks in advance.
  8. As can be seen via the attachment I am trying to pretty up the form (I want to make cpScreen hide white space, also size and align objects etc.). cpScreen.AlignmentControl:= uniAlignmentClient; messes everything up. I have a TUnimContainerPanel (cpScreen) with child objects and when an iPhone or iPad etc. is rotated (even on startup) I want to re-size, re-position and re-align my objects. Can someone please advise with a Delphi code example - thanks. // AjaxEvent Fires On Rotation procedure TLoginmForm.UnimLoginFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var i, p, w, h: Integer; s, JSName: String; ss: TUniStrings; begin if SameText(EventName, 'vpsize') then begin w:= 0; h:= 0; ss:= Params; for i:= 0 to ss.Count-1 do begin s:= ss.Strings; p:= Pos('w=', s); if p > 0 then begin w:= StrToInt(Copy(s, p+2, Length(s)-p-1)); end; p:= Pos('h=', s); if p > 0 then begin h:= StrToInt(Copy(s, p+2, Length(s)-p-1)); end; end; // for if ( (w > 0) and (h > 0) ) then begin JSName:= cpScreen.JSName+'_id'; s:= QuotedStr('w='+IntToStr(w))+'; '+QuotedStr('h='+IntToStr(h))+';'; //UniSession.AddJS(JSName+' Color = red;'); // this test fails (I need to set width and height) // edtEmail: TUnimEdit; // then I need to center child objects on portrait, left align on landscape etc. end; end; // vpsize end;
  9. Kratov

    Create Cahrt Series at runtime.

    Hi, I'm trying to create series at run time, It updates titles but not graphic bars. Need Help Please. procedure CargarGrafica< T: TUniChartSeries >(); procedure TFrmConGrupo.CargarGrafica<T>(); var Serie : T; begin DBChart1.SeriesList.Clear; DmoConsultasConta.QrySaldoGru.First; While not DmoConsultasConta.QrySaldoGru.Eof do begin Serie := T(TUniChartSeries.Create(DBChart1)); Serie.Name := ''; Serie.Parent := DBChart1; Serie.Add(DmoConsultasConta.QrySaldoGruSALDO.AsInteger,DmoConsultasConta.QrySaldoGruDESCRIPCION.AsString); DmoConsultasConta.QrySaldoGru.Next; end; end; procedure TFrmConGrupo.BtnPastelClick(Sender: TObject); begin inherited; CargarGrafica<TUniPieSeries>(); end; Best Regards,
  10. I like the look and feel of the mobile stuff. I would like a little extra space vertically. And as such, I am trying to figure out how to.... Make browser tool bar at the top invisible. For example: On Android phone, I see the chrome tool bar with the URL etc... Dynamically set ShowTitle to FALSE so that I don't lose that quarter of an inch at the top with the dark blue bar.... In landscape mode this is important. Less important in portrait mode. Change some kind of scaling property so that my whole screen is smaller (smaller font, smaller graphics etc... just like changing resolution of your desktop). Change the row height or column header height of a unimDBGrid I have explored #4 by using all kinds of EXTevents and UNIevents and placing code in the onCreate method etc.. No luck of any kind. I would imagine that this is a popular question. I don't even mind if it's as crude as chaning the whole display resolution. IE: The whole screen is affected, as opposed to just a particular control. I just need a few more rows of display space. I am using version Thanks Davie
  11. Hello, could you explain how to add at runtime new calendar in calendar list. I try the .add function and . Create function without success. additional question : is it possible to manage the calaendars listed (hide, color, ...) Regards
  12. skafy

    Selection of themes in runtime

    How come that selection of theme is limited in runtime (package for server). There seems to be only 4 while in local are up to 10+ or something?
  13. Good afternoon. Before, in Delphi 7 for desktop I created the forms at runtime with the following command: if Fm_Client = nil then Fm_Client: = TFm_Client.Create (Application); Fm_Client.ShowModal; And to close the form I released the memory with the command: Fm_Client: = nil; How to do this same procedure in uniGUI? I tried to do and XE5 did not accept the command. Just like the previous Delphi, I create forms at runtime. Tks, see ya later. ------------------------------------- Boa tarde. Galera, antes, no Delphi 7 para desktop eu criava os formulários em tempo de execução com o seguinte comando: if Fm_Client = Nil then Fm_Client := TFm_Client.Create(Application); Fm_Client.ShowModal; E ao fechar o formulário eu liberava da memória com o comando: Fm_Client := nil; Como fazer esse mesmo procedimento no uniGUI? Eu tentei fazer e o XE5 não aceitou o comando. Assim como o delphi anterior, quero criar os formulários em tempo de execução. Obrigado, até mais.
  14. I am trying to create a TuniImage at runtime, but I could not. I've seen the demo "Dynamic" and I can create other components at runtime, but not a Tunimage this is ok. with TUniEdit(InsertControl(TUniEdit.Create(Self))) do begin Left:=10; Top:=40; Text:='Text'; end; but this no with TuniImage(InsertControl(TuniImage.Create(Self))) do begin Left:=10; Top:=40; Picture.LoadFromFile('Hydrangeas.jpg'); end; (The picture is in the same directory).
  15. David Oliveira

    Problem to set UniEvents run-time

    Problem to set UniEvents runtime, example: procedure TFmeCadastroMestre.UniFormCreate(Sender: TObject); ... uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('afterrender=function afterrender(sender, eOpts)'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('{'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add(' sender.emptyText = "123";'); uniGUIClientEvents.TUniClientEvents(EdtCodigo.ClientEvents).UniEvents.Add('}'); or EdtCodigo.ClientEvents.UniEvents.Text := 'afterrender=function afterrender(sender, eOpts)'#13#10'{'#13#10' sender.e' + 'mptyText = "123";'#13#10'}'; ... end;