Jump to content
uniGUI Discussion Forums

Kattes

uniGUI Subscriber
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    5

Kattes last won the day on August 26

Kattes had the most liked content!

Community Reputation

16 Good

About Kattes

  • Rank
    Newbie

Recent Profile Visitors

211 profile views
  1. Boa Noite, tem como vc disponibilidar para mim o MessageDLGDemo, gostei do modelo

    estou querendo implementar no meu projeto. Obrigado

  2. 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.
  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. 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.
  7. 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?
  8. Sorry, can anybody help me here, please?
  9. 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?
  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. 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.
  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?
×