Jump to content
uniGUI Discussion Forums

Leaderboard


Popular Content

Showing content with the highest reputation since 09/19/18 in all areas

  1. 2 points
    For the Form and Panel set AlignmentControl = uniAlignmentClient For the panel set the Layout = form. For the buttons set LayoutConfig.Margin =3 - or whatever you prefer
  2. 2 points
    You need to use a UniFieldContainer. See the images. Also remember for this to work the AlignmentControl must be "uniAlignmentClient".
  3. 1 point
    Hi. This example, show how to upload one or multiple files using javascript and ajax notification. the example show file upload progress and uploaded completed, and save the uploaded files in server folder. simply drag files into blue box. example using unigui 0.89 and xe2. MuploadSample_en.zip 05-12-2016: Modified for latest uniGUI version. (Farshad) MuploadSample_en.rar
  4. 1 point
    Hi Farshad, this is a preview of DBLookupCombo I need... :-) Thanks in advance! Stefano
  5. 1 point
    Attached is a simple wrapper for the SweetAlert2 library. (QUICK HACK.. No unit testing, no tidy up etc..) ** No warranty - Use at your own risk ** FREE for commercial use, etc.. (just don't remove the copyright header). 1) Compile the Package/Install 2) Make sure your path includes the control folder 3) Copy the files/sweetalert folder into your project 4) Drag/Drop the uniSweetAlert control onto your form. Simple usage like: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSweetAlert1.ShowMessage; // or like UniSweetAlert1.Error('Oops','Something went wrong'); // or like UniSweetAlert1.Error('Oops','Error again','FixMe',3000); // or like UniSweetAlert1.Question('Is this true','Please click one of the options below:','YES','NO',3000); // or like UniSweetAlert1.title := 'Hello'; UniSweetAlert1.text := 'Testing'; UniSweetAlert1.alertType := TAlertType.success; UniSweetAlert1.ShowMessage; end; // Events for Confirm or Cancel/Dismiss procedure TMainForm.UniSweetAlert1Dismiss(Sender: TObject); begin UniButton1.Caption := 'DIS'; uniMemo1.Lines.Add('Dis'); end; procedure TMainForm.UniSweetAlert1Success(Sender: TObject); begin UniButton1.Caption := 'CLICKED'; uniMemo1.Lines.Add('Clicked'); end; Either (1) set properties and call .ShowMessage; Or call the Error, Info, etc methods. Enjoy.. Regards Andrew 2017-07-29-uniSweetAlert V3.zip
  6. 1 point
    Standard Desktop Windows OS's only allows for a small amount of concurrent TCP/IP socket connections (if I remember correct in Win7 it is something like 20), which will be fine for a small user system. But for enterprise systems or large user bases you definitely want to use the server editions which comes with additional benefits and security. The connection limit is an enforced application session limit. Basically this is to prevent people from abusing Win7 as a public web server platform or file server for example. There are ways to increase that of course....just Google it.
  7. 1 point
    Good morning friends!!! Based on your idea of TreeView, I made a screen and it works perfectly !!! I'm finalizing the layout adjustments (because I did in test mode), and soon I'll post the solution !!! Thank you!!!
  8. 1 point
    procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniMemo1.JSInterface do begin JSConfig('enforceMaxLength', [True]); JSConfig('maxLength', [50]); end; end;
  9. 1 point
    An example showing how to incorporate Leaflet and OpenStreetMaps into UniGUI. The following lines must be added to the ServerModule | CustomFiles: https://unpkg.com/leaflet@1.3.4/dist/leaflet.css https://unpkg.com/leaflet@1.3.4/dist/leaflet.js See the Mapbox Tab in the application for more details. P.S. I am no expert with Leaflet - please see the following for more details: Getting started with Leaflet OpenStreetMap Mapbox - the accessToken used for this is a public one...you can register to receive your own. Leaflet Maps Example.zip
  10. 1 point
    В качестве одного из возможных решений, думаю Вы можете изменить тип picker'а на данный момент: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimSelect1.JSInterface.JSConfig('picker', ['floated']); end;
  11. 1 point
    Hi to all. I share the uniGMap component. [Desktop and Mobile versions] It is based on code I have used in several projects and actually developed to fulfill my needs. It can add , edit , remove , locate markers , lines , polylines , circles , polygons , rectangles , directions , KML, infoWindows , change several map properties like zoom , type , control visibility etc , notify about map events through AjaxEvent like zoom , click , markerclick and get some object properties like Length , Area etc. It is absolutely free and you can use it freely in your own software. If you make any changes that you believe can help other developers too, please send them to me to integrate them into uniGMap. You can see it in action here : http://79.143.178.31/lema/uniGMapDemo.dll Although it is not a requirement, I would ask you to send a postcard from your hometown so that you help me grow my collection! If also you write 2-3 words, it would be perfect! So, lick your stamp and send your postcard to: Lefteris Maronikolakis, Bohali 92, 11524 Athens, Greece. latest version: 2017-09-15 v1.4.8 uniGMap.v.1.4.8.zip
  12. 1 point
    Hi @hph download this example, it has the example you need. http://forums.unigui.com/index.php?/topic/10949-how-to-include-a-fontawesome-icon-in-unidbgrid/?p=57847
  13. 1 point
    From the "All about..." series, my second contribution to the community All about Form Transparency using images and gradients. That´s all folks ... AllAbourFormsTransparency.rar
  14. 1 point
    Hello to all, [Edit]: code/project was improved and uploaded. Here is a jQuery widget with animation and fully customized and fully responsive that I have written recently: Works excellent when resizing the browser window ! Code: $('#newTasks').circleProgress({ title:'15', caption:'New tasks', bgcolor:'#e1dddd', fgcolor:'#54c0fd', tfntcolor:'#54c0fd', cfntcolor:'#b0aeae', animationstep:1, rotateanimationstep:0.4, total:100, value:30, mstyle:0, thik:25, shadow:1 }); You may test is online (for limited time): http://80.179.68.220:8076 You can download project from here [port: 8076]: http://3msoft.net/mhmd/CircleProgress.rar
  15. 1 point
    There was few posts about reaplacing standard loading,gif in project: So in CustomCSS: 1) When loading web page image: #loading .loading-indicator { background: url(./files/loading.gif) no-repeat; background-color: white; color: black; font: bold 16px tahoma,arial,helvetica; padding: 5px 10px 10px 50px; margin: 0; text-align: center; height: auto; } 2) For screenmask with loading.gif eg. when connection is lost: .x-mask-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url(./files/loading.gif) !important; background-repeat: no-repeat !important; background-position: center !important; text-align: center; } Marcin
  16. 1 point
    Used: UniEdit1 UniButton1 UniNativeImageList1 CustomCSS 1. CustomCSS: .customTrgCls { border-radius: 0; border-left: 0; } 2. UniButton1: Caption = ''; iConAlign = iaCenter Images->UniNativeImageList1 ImageIndex = 0 LayoutConfig->Cls = customTrgCls 3. UniNativeImageList1 Add camera-retro IconCls
  17. 1 point
    It will rotate only 'UniImage1' or what you want.
  18. 1 point
    I'm 52 years old.I have used Basic,C,Dbase,finally Delphi.Delphi is the greatest progamming tool!
  19. 1 point
    I was very surprised when I found out that these components was developed by one man. No Embarcadero no somebody other with hundreds of developers and tens millions $ of budgets can't offer at the moment and half of what we have with unigui. Developing web application became for me the same simple and fast as a usual desktop application using Delphi. I think TMS would be save a lot money if bought these components from Farshad instead developing own from scratch, but I'm not sure how it is possible to scale this framework on for ex. 1000 simultaniously users and not sure that Sencha will provide the same license politic for TMS or somebody other as they did for Farshad. As I know, Devexpress now have nothing for VCL web, maybe they would be interested in buying and further promotion under their own brand (it just only if Farshad want to sell his work). Or DevArt - UniGUI are close by name with UniDAC
  20. 1 point
    Merhaba; Aşağıdaki gibi bir java ile çözdüm. function SendAPI(id, message) { var result = null; //var obj = document.getElementById(id); $.ajax({ url : address, type : 'get', dataType : 'json', data : JSON.stringify(message), success: function(data){ ajaxRequest(id, '_SendAPI', ['send=OK', 'actions='+data.data.actions, 'results='+data.data.results]); console.log(data.data.results); } }) .done(function() { console.log('Send - OK'); }) .fail(function() { console.log("Send - ERR"); ajaxRequest(id, '_SendAPI', ['send=ERR', '', '']); }); } procedure TForm1.btnNum1Click(Sender: TObject); begin UniSession.AddJS('SendAPI(Form1.form, {"data":{"actions": "test"}});'); end; procedure TForm1.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var x, actions, results: String; begin if EventName = '_SendAPI' then begin x := Params.Values['send']; end; end;
  21. 1 point
    Use css: font-size: 5.9vw;//screen width font-size: 5.9vh;//screen height I used this in my post: http://forums.unigui.com/index.php?/topic/7848-layout-advanced-tutorial/
  22. 1 point
    A few more fixes. - Z-Index for jToast fixed - buttonsStyling (typo / spelling incorrect in SweetAlert2) New css file added to jToast. (re-grab the files/jtoast and files/sweetalert folders in any code you use for the updated). Added 'custom' to jToast.. when 'Pos: custom' the Left and Top are used for positioning. *** If you are using an older version you may need to ignore the buttonStyling missing error and toggle the 'buttonsStyling' and save to fix. *** If you have Z-Index issues.. Clear your browser cache and try again. Enjoy. uniExtensions-V5.zip
  23. 1 point
    Extract content in resources folder Including in Server Module, Property Custom Files: ext-x.x.x.xx/resources/ext-theme-azzurra/js/azzurra.js x.x.x.xx = version of extjs Azzurra Ungui resources.rar
  24. 1 point
    1. UniSession.AddJS('$.ajax({' + 'url: "' + UniSession.CallbackUrl('$.ajax', self, []) + '",' + 'type: "POST",' + 'data: {username:"g", abc:123},' + 'dataType: "text",' + 'success: function(data){' + ' alert("OK!"+data);' + ' }' + '});'); procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;Params: TStrings); begin if EventName = '$.ajax' then begin UniEdit1.Text := 'AAAAAAA'; //Execution is not successful(Show no change)。 showmessage(UniEdit1.Text);(Display results correctly) This is why? UniSession.AResponse.ContentText := '{"success":true,"manager":[{"name":"xxx","userId":"222"},{"name":"yyy","userId":"333"}]}'; end; end; 2. unisession.AddJS('ajaxRequest(MainForm.window,"ajaxRequest",[]);'); procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;Params: TStrings); begin if EventName = 'ajaxRequest' then begin UniEdit1.Text := 'AAAAAA'; //Execution is successful(Show change) UniSession.Response := 'Ext.Msg.alert("","ok!");'; end; end;
  25. 1 point
    Field Validation as per Sencha examples: http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/form/adv-vtypes.html http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/statusbar/statusbar-advanced.html
×