Jump to content

Mohammed Nasman

uniGUI Subscriber
  • Posts

    340
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Mohammed Nasman

  1. Hello,

     

      I'm trying to use Sweetalert library to show better alerts, but when I try that, it became behind the form, as following:

    function click(sender, e, eOpts)
    {
         swal("Good job!", "You clicked the button!", "success");
    
    }
    post-1329-0-51984600-1525689625_thumb.png
     
    I'm using build 1421
     
     

    post-1329-0-51984600-1525689625_thumb.png

  2. Hi Farshad,

     

      I'm not sure yet, if we can use one toolkit  (Modern or Classic) to work on both platforms(Mobile or Desktop) as I saw on latest trial (build 1450) when start project as mobile, you have the layout of mobile, and you star with classic, the mobile view isn't good fit.

     

    so the question, if I want to start new project that fit the two platforms(desktop & mobile) what should I use, and how to work with them properly?

  3. Some time ago I started creating some demos showing how to migrate from Delphi VCL to uniGUI.

    You can find some of them in BitBucket

     

    David

     

    That's really great one David, Thanks for your effort.

     

    If you want to create it as a real Book, I will BUY It ;)

    • Upvote 1
  4. I am $32 years old. :rolleyes:

     

    I started my journey in programming with BP somewhere around 1987...

    And almost 27 years from my 1st project on Windows 3.0 with Turbo Pascal for Windows...

     

     

    attachicon.gifTP.jpg

     

    Wow, so you wrote your first project when you were 5 years old :blink2: :blink2: :blink2:

  5. I did notice those yes, they're ideal, just having trouble finding an example on how to do the checks and implement that with encrypted passwords. Still reading on that. I'm using user and passwords saved in a table, they're plaintext at the moment but I'd like to use the password as encrypted somehow, not to save it plaintext.

     

    You can use System.hash to hash passwords, as:

    uses
      System.Hash;
    
    ....
    
     MyHashedPassword = THashSHA2.GetHashString('MyPassword',THashSHA2.TSHA2Version.SHA256)

    so you can store it to database as hashed, and when user login, you will hash the password and compare it to the one on database, and for more secure, please follow what Delphi Developer suggested.

  6. Have you looked at the Demo folder, there are two demos:

     

    - LoginForm

    - LoginForm Cookies

     

    Now these demos aren't related to authenticate users from database, but it's not hard to change that to check from database, are you using database users, or users stored on table?

    • Upvote 1
  7. There's another project from Free Pascal team, with RTL written in JS

     

    http://wiki.freepascal.org/pas2js

     

    There is a basic Object Pascal RTL, several units from the FPC Packages are also available

    • system
    • sysutils
    • Math
    • strutils
    • rtlconst
    • classes
    • contnrs
    • DB (yes, TDataset)
    • fpcunit testsuite
    • custapp
    • restconnection
    • js (javascript system objects)
    • web (browser provided objects)
    • libjquery (jquery is available too)
    • nodejs (basic node runtime environment)
    • typinfo
    • objpas
    • browserconsole (support writeln)
    • dateutils
    • browserapp
    • nodejsapp

     

    •  
  8. Hi All,

     

     I have multiple projects that share same images, I can view images without problem giving the physical path to the UniImage.

     

    The only problem I have with event OnFieldImageURL isn't accepting the physical path, it's convert any path to full URL with the path giving, which lead to not viewing the image.

     

    for example using GridImage Demo:

      if (Column.Tag = 255) and SameText(AField.FieldName, 'shift') then
      begin
        if AField.AsBoolean then
          OutImageURL := 'files/sun.jpeg'
        else
          OutImageURL := 'files/moon.jpeg';
      end;

    Changing any OutImageURL to looks like this:

          OutImageURL :=  UniServerModule.StartPath + 'files/moon.jpeg';
    

    it will be converted on runtime to the following

     

    post-1329-0-46602600-1513694290_thumb.png

     

    This can works fine with

    TuniImage.picture.Loadfromfile(UniServerModule.StartPath + 'files/moon.jpeg');

    Is there any way to override this behavior of OnFieldImageURL?

     

    Regards,

    Mohammed

    post-1329-0-46602600-1513694290_thumb.png

  9. I'm not good at Android development, but if I'm not wrong, when you rotate the phone, the activity recreated, and that cause it to reopen the link again so switch to the login screen.

     

    it may require you to save state for the activity, so it will resume it, or if there's something to prevent the activity to not be created when rotating the phone

×
×
  • Create New...