Jump to content

All Activity

This stream auto-updates

  1. Earlier
  2. Hmm... there seems to be an offset. It's probably because I paste controls with an offset. Gotta see how Delphi does that and add the offset only if it makes sense.
  3. Hi, I have two forms, is it possible to copy some controls on the first form to the second form with exactly same left and top positions?
  4. There's a small update available. It adds a possibility to change TW3ListBox line text.
  5. Decided to start working with SMS again, but I needed better tooling, so I started creating them. I have also decided to share some of them. Here are bindings for the browser-ui-state library: Bindings for the browser-ui-state lib and a small demo showing you how to both the library and the bindings Cheers
  6. Yes this works. Thanks
  7. Hi @COMFIED, I'm not sure if the following answers your question or not. Add System.JSON to your uses clause and run the following. Some follow up questions would be, is the object you are passing always a single key/value pair and is the name of the key known or not known? There are many ways to do this; some type safe, others not - just depends on your use case really. var aString : String; anObject : variant; begin aString := '{"v" : "this is sample text"}'; anObject := TJSON.parse(aString); Showmessage(anObject.v); end;
  8. I am try to clean up a JSON string from {"v":"this is sample text"} with the aim of obtaining the text value: this is sample text I have tried JSON.parse as follows, but it doesn't seem to work string_value := JSON.parse('"'+string_value+'"'); What is the correct way of doing this?
  9. Blade

    License Code Issue

    Thanks to Jarto and Jörn this issue has been totally resolved and I'm very pleased
  10. Thank you Jarto and Jörn for resolving the issue. I was worried, but guys have relieved any fears. It also appears that the e-mail exchanges were going into SPAM, so glad that was corrected. Please keep up the good work and looking forward to the Smart Mobile Studio 4 release.
  11. I just sent an e-mail to Jörn about this and asked him to solve the issues. They are license and payment related, which is in his domain. I hope he will solve it fast.
  12. I have sent multiple e-mails to support and have gotten no response, going on weeks now. Sent messages to "Contact Us" of this website and no response. Posted a message on the support sub-forum and it has gone unanswered. Is this software no longer being supported? Customers and the general public should know.
  13. Reading the forums, I thought the issue of when the license code expires, that users can still use that version of the program and not update. It appears from reading the forum that this flaw in the program was supposed be fixed, but appears not. Upon the my license expiring, the program no longer works and asks for a new license code? How is this to be resolved?
  14. The listbox items map to the <input type=text> html element, which are single line items (EditBox) A multi line item would have to map to say a <textarea> element (Memo) In this case you would have to roll your own listbox component, which generates html like below You can delve a bit in the SmartCl.Controls.ListBox unit to see how this component has been put together. For instance Height can be set by coding W3ListBox.ItemHeight := 60;
  15. Hi, I want listbox items word-wrapped, i want long text displayed as two lines, can i do that? And another question: can i change item font, color, size, height etc. ?
  16. There is no expiration date on local storage However, users can manipulate local storage themselves, or the browser can decide to purge when it needs memory, so there is no guarantee it will always exist. Local storage is also specific per protocol, so http:// and https:// point to different storage objects. Also storage in private browsing mode gets handled with specific rules. You can set an expiration yourself if necessary though
  17. How long does the local storage values are kept in browser's local storage? Is there a expiration time that is automatically deleted?
  18. How can i declare a function or procedure which is accessible to all forms? I tried uses ..., public declaration but it didn't work.
  19. If you want to make sure that the files are unmodified, it's best to calculate check sums of them and compare to values that you store in your app. Smart RTL does not have native function for this but searching for javascript md5 gives lots of options.
  20. I've always loved the basic data-structures as described in this link. Since I needed a double linked list the other day, I transcribed all of the major basic structures from js into object pascal : Array Hash Table Set Singly Linked List Doubly Linked List Stack Queue Tree Graph Source and test-files here
  21. Another code security question - is there a way of detecting if the files in the \res folder have been modified? How can I access timestamps, files size and other parameters of graphics and html resource files?
  22. Basically, there's next to no way to prevent this. Because people can run your code in a debugger and circumvent the code that checks if it's been tampered. They can also make the code feed the right values to your server no matter what. So when you're making a client that interacts with a server, you should plan it so that the server does not trust a single piece of information that is passed to it without checking it. And make it so that the server takes these pieces and does all the calculations and database writes.
  23. https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity is probably a good starting point
  24. I am building a financial transaction system on sms. Is there a way to detect/prevent code tampering? - so that in case the compiled HTML/ JS code is modified it will refused to run.
  1. Load more activity
  • Create New...