Jump to content

Jascha

Members
  • Content Count

    21
  • Joined

  • Last visited

  1. Jascha

    Using ECMA.Promise

    Is there somewhere an example how to use ECMA.Promise in the alpha version? I only find the example of Warleyalex but he uses a different Promise unit. If possible I would like to use the one shipped with SMS.
  2. Hello, I want to use the SQLite Database (TSQLiteDatabase) and save and load it to the local storage (TW3LocalStorage). Now the local storage works with strings, but the SQLite with Streams. How can I convert between string and stream? Thank You
  3. Jascha

    Can not use more than 5 Forms

    Thank you that worked.
  4. Jascha

    Can not use more than 5 Forms

    Hello, ich if I have an Application with more than 5 Forms. With Application.GotoForm I can switch to the first 5 forms. If I switch to the 6th form i get an error. Is there a way to solve this? I have attached an example Thanks FormCount.zip
  5. Jascha

    Problem with asm in Version 1.1

    Something strange with the Forum, I tried to post the full function but always get a message like "Your message can not be postesd the this time"
  6. Jascha

    Problem with asm in Version 1.1

    Hello, I just installed the latest Version 1.1.0.911. Afterwards one of my asm blocks did not compile anymore. Error: Syntax Error: Invalid character (found "&") Line: var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); I took the code from: http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
  7. Jascha

    FileAPI

    Hallo, is there any RTL support for the HTML5 File API? Thank You Jascha
  8. Jascha

    Edit with autocomplete

    Hallo, is there some support for an autocomplete in edit fields. E.g. with a dropdown box which shows suggestions? (like in http://jqueryui.com/autocomplete/) Thank YOu Jascha
  9. Jascha

    Deploy page in UTF8

    Hallo, is it possible to deploy the HTML Page in UTF8? I can change the charset of the Content-Type in the index.html resource file. But all strings, which I code in pascal are still ISO-8859-1. I need UTF8 for some external Javascript libraries which except the input to be UTF8. Thank You
  10. Jascha

    Bug in FormatDateTime

    I think there is a bug in FormatDateTime when I use 'd.m.yyyy' as format string, the month in the string is one to early FormatDateTime('d.mm.yyyy',29620) returns 3.1.1981 instead of 3.2.1981 I think the error lies here in FomatDateTime case "m": res+=dt.getUTCMonth(); break; case "mm": res+=pad2(dt.getUTCMonth()+1); break; case "mmm": res+=fmtShortMonthNames[dt.getUTCMonth()]; break; case "mmmm": res+=fmtLongMonthNames[dt.getUTCMonth()]; break; With "mm" the month is increased by 1. When I use mm the month is correct. I think in all cases the month has to be increased by 1.
  11. Jascha

    Enable Scrollbars in PC Browsers

    Ah thank you, this works perfect! I use 'auto' instead of 'scroll' so the scrollbars only appear when necessary: w3_setstyle(Handle,'overflow','auto');
  12. Jascha

    Enable Scrollbars in PC Browsers

    Hello, My target platfrom is a normal PC Browser. I realized, that it does not display scrollbars when the content does not fit the page. The main reason for this on the HTML side is, that every tag has overflow:hidden. I have read some similiar question here in the forum, but the solutions there do not really satisfy me. E.g. using an extra TW3ScrollControl inside the Form. This has 2 drawbacks 1. You cant use the form designer 2. You have to give it a height it does not stretch to the content. Is there a simple solution for this problem? The best would be a property in the from something like Scrollable:=true.Or any workaround for this problem? Thank You Jascha
  13. Jascha

    Initialization

    It seemd that the compiler does not know initialization sections in units. The editor highlights the word but I get a Syntax Error. Are there plans to support initialization?
  14. Jascha

    Source Files

    I am looking for the source files (.pas) of the RTL Units. In beta times there where under the Smart directory. Now I can not find them anymore. It was very usefull to have them as files, so it was easy to see what units are available.
  15. Jascha

    Key Events in GameProject

    Czar, you already figured it out. Config.keys is just record which holds the key values 37,38,... I used this to make it easy to change the keys.
×