Jump to content
uniGUI Discussion Forums

Kattes

uniGUI Subscriber
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Kattes

  1. Kattes

    Alternative for MessageDLG

    Yes, sure - that's it's main purpose! You can also feel free to make any adaptions / modifications to your need. This is just a little gift from me to the UniGui community without any limitations from my side.
  2. I was looking for an alternative for the default message dialog, which gets shipped with uniGUI. Goal was to have something which fits 100% to the design of my pages. I am sure that somebody will now say "Use CSS styles" to achieve what you are looking for. But to be honest digging for the right CSS settings finally would take even more time than my little development and finally is not as flexible. Below is a screen shot of the message dialog I tailored for my needs. As you can see it also is already adjusted to my native language (German). If you are interesting to get the code for an alternative message dialog, just let me know.
  3. Kattes

    Windows 10 ntdll.dll EExternalException

    I had exactly the same problem - and this trick solved it for me, too. Thank you so much sharing this information!
  4. Kattes

    api rest in an unigui project

    Ok, my fault - I used a forbidden Keyword in my header (Authorization). In case of using anything else it works fine. Header values can be accessed easily. For example if I define a key "test" with a value "88" the following call will set "s" to "88". s := ARequestInfo.RawHeaders.Values['test'];
  5. Kattes

    api rest in an unigui project

    @GerhardV: I just tried what you suggested and it works fine as long as I do not add any header information. If I enter for example the following cURL command: curl "http://localhost:8077/report/sleep" -H "Authorization: ffff" I do not even enter the event handler and get the response curl: (52) Empty reply from server Do you have any idea, how to pass header information to the UniGUIServerModule and extract them?
  6. Hi, When I use a UniDBGrid and feed it with data from an external MySQL server, cell text gets limited i.e. truncated after 30 characters (as shown in the figure below). Is there any property which controls this behavior?
  7. I am currently running a bit out of time with my project and unfortunately all DB examples, which get shipped with uniGui do not work under XE5 and crash my IDE. At the moment I just changed the columns order as an interim solution. But please keep an eye on this bug for any of the next planned updates.
  8. The SQL statement I used in the first case was quite simple: select * from schools I made a lot of further tests and finally found out that the reason for the behavior must come from uniDBGrid. For whatever reason the Grid truncates text, which is in the second column of the grid (and longer than 32 characters). After changing the order of columns in the grid by manipulating the sql statement to: select Ort, Email, Name, Id_School from schools the email column now was affected by this effect. School names, which were truncated before are complete now - only by shifting them to a different column. I am pretty sure that this is not somehow related to SQL DB and that this effect can be reproduced with any kind of DB. Are there some settings in uniDBGrid to change / stop this behavior?
  9. Sorry, can anybody help me here, please?
  10. Kattes

    Alternative for MessageDLG

    Ok, please find now attached my message dialog solution. For better understanding, I put it into a simple test environment. Finally it can be used very similar to the origin MessageDLG procedure. It supports already various settings, but still can be easily tailored to whatever needs you have. Any feedback & comments are welcome P.S. I just uploaded a new version with new options to change fonts, colors, icons (awesome font) and button content very easily from your application. Its a complete replacement of the existing messagedlg procedure. Just import the unit "uDialog.pas" and replace existing messagedlg calls with messagedlgA. P.P.S. Happy New Year to everybody of this great community uniGUI - MsgDLGDEmo.zip
  11. Hi, I tried following without any success: procedure TuSeatingDesignerFrame.UniPanel2Click(Sender: TObject); var s : string; begin // s := ' document.getElementById("' + UniSpeedButtonUndo.JSName + '_id").disabled = true; '; s := '$(''#'+UniSpeedButtonUndo.JSId + ''').disabled=true'; MessageDlg('JS: '+s, mtInformation, [mbOk], nil); UniSession.AddJS(s); end;
  12. Ups, after playing a bit with my sample code, I was able to solve the problem by myself. For the sample code the solution is: MainForm.UniSpeedButtonRedo.setDisable(true); ..and for my special case using uniFrame it is: uSeatingDesignerFrame.UniSpeedButtonRedo.setDisable(true); with uSeatingDesignerFrame as Name of the used TUniFrame.
  13. Firstly, thank you for your compliment - I am just trying my best to satisfy my customer (who is my own son ;)) Secondly, attached you will find the requested testcase for my current problem BTW thank you very much for your support ! JS_Sample.zip
  14. Thank you, this is working fine: procedure TuSeatingDesignerFrame.UniPanel2Click(Sender: TObject); var s : string; begin s := UniSpeedButtonUndo.JSName + '.setDisabled(true)'; UniSession.AddJS(s); end; ..but finally does not really help me to solve my current problem, which I want to explain you a bit more in detail. Picture below describes my current configuration. I am using a MainForm, which uses the great UniTreeMenu component. Each tree-item click will dynamically create a TUniFrame, which finally allows my to struct my project, because each TUniFrame uses its own Delphi unit. Current module I am working on is a seating manager, which is also running in his own frame. The graphically components I am using is FabricJS - a very cool JS graphic engine. All needed Fabric routines including my own JS interfaces are running in the UniHTMLFrame. As long as I simply want to control from the tool bar (e.g. deleting a selected object, by clicking the litter bin symbol) routines defined in the HTMLframe this is easy and possible. But now I want to control the buttons from the tool bar from the HTMLframe side. In my case I want to enable and disable the Undo and Redo buttons depending of the status of a JS variable I created in the HTMLframe. Is there any way to do that?
  15. It is one of the latest versions. It was bought about a month ago.
  16. Kattes

    New themes...Work in Progess

    This looks really cool! Are there any updates on this project - seems to be very quiet within the last month?
  17. Kattes

    UniTreeMenu font size

    By crawling through the uniGUI sources I found another nice one for me: .x-treelist-nav .x-treelist-item-selected>.x-treelist-row:before { background-color: #c0d4ed } For own experiments i recommend a closer look into the file "theme-classic-all_1.css".
  18. Kattes

    Reponsive WebApp?

    I think real responsive Design can only be achieved on client side. Using the server side is much easier, but will users not give due to loading times real responsive feelings.
  19. Kattes

    *EDIT* solved - Fabric.js

    Hi Wicket, I am also very interested in your Fabric component. Can you please give some more details about its planned functions and when you plan to release it?
  20. Kattes

    Using JS with TUniHTMLFrame

    Here is an example I just created using ChartJS showing random data in two line charts: http://kattes.bplaced.net/download/ChartJS-Demo.zip Have fun !
  21. Kattes

    Rebuild Sencha Dashboard Example

    I want to build a Dashboard which looks like the one you can find at the current Sencha Ext JS demo page. My focus is on the main menu at left hand side. I found already an example here: .. but for some reasons I cannot get the full example to start - I always get an empty web page in Chrome browser. After deleting all other panels next to the main menu panel, I at least got the remaining items correctly opened in the browser, but unfortunately everything looks static in the menu. My first attempt was to get some hover effects with this trick: procedure TMainForm.UniFormShow(Sender: TObject); var i: Integer; UniPanelMenue : TUniPanel; begin for i := 1 to 7 do begin UniPanelMenue := TUniPanel(FindComponent('UniPanelMenue'+IntToStr(i))); UniPanelMenue.ClientEvents.ExtEvents.Add('OnMouseover=function OnMouseover(sender)' + ' { sender.setBodyStyle("background-color","#303030"); }'); UniPanelMenue.ClientEvents.ExtEvents.Add('OnMouseout=function OnMouseout(sender)' + ' { sender.setBodyStyle("background-color","#414141"); }'); end; end; This works fine, but before investing more time in that direction I want to ask you guys, how you would solve this task.
  22. Kattes

    Rebuild Sencha Dashboard Example

    Yes ! This is exactly what I was looking for!! Thank you!!! Best regards, Carsten
  23. Kattes

    Rebuild Sencha Dashboard Example

    Can you please tell me how? Will this solution also work with the latest uniGui / ext JS versions which are available now?
×