Jump to content

Mohammad Hamdan

Members
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Mohammad Hamdan

  1. Yes i want to use that in local network, make a server and waiter app connected to local DB 
    I use SQL server. 

    This app will work by side with POS system .

    The waiter will order the items, print in the kitchen, then this order is closed by cashier through the POS system.

     

    @

    mohammad is that a uniGUI or android app ?


     

    • Upvote 1
  2. Sorry, but i'am not familiar with Javascript in uniGui

     

    but how to Replace the "This is some text"

     

    I have used the code, but should i add this code to every element on my forms?

     

     

    Could you send a sample? 

     

    I used the code as follow:

     

       For those controls and text that i want user to copy, 

           >> OnClick on uniEdit  

                        CopyEvent(edit1.text)

     

    procedure TMainForm.CopyEvent(FText: string);

    begin
       UniSession.AddJS(
        'var isIe = (navigator.userAgent.toLowerCase().indexOf("msie") != -1 ' +
        '           || navigator.userAgent.toLowerCase().indexOf("trident") != -1); ' +
        ' ' +
        'document.addEventListener("copy", function(e) { ' +
        '    var textToPutOnClipboard = "' + FText + '"; ' +
        '    if (isIe) { ' +
        '        window.clipboardData.setData("Text", textToPutOnClipboard); ' +
        '    } else { ' +
        '        e.clipboardData.setData("text/plain", textToPutOnClipboard); ' +
        '    } ' +
        '    e.preventDefault(); ' +
        '}); '
      );
    end;
     
     
    In IE, this code is not working.
  3. How can i copy text to clipboard in Web mode

     

    I  have used these two lines

     

    Clipboard.AsText := 'Some Text';

     

    Clipboard.setTextBuf('Some Text');

     

     

    works while running in the IDE, but when i deploy, this not works

     

    Please any help

     

     

    Delphi XE5

    uniGUI 0.95.0.1046

  4. This is a Sample Project of using String Table as mentioned in my last replay

     

     

    String table Example

         stringID   LanguageID   String Description

            1                   1                         Hello

            1                   2                         ¡hola

            2                   1                         OK

            2                   2                         bueno

     

    in this sample i used the ClientDataset to load the String table,  so you can replace that from Data Base as you need

     

    Note:

       Look at the control Tag Property

                      the Hello labe tag = 1    -- meets the Hello string ID

                      the OK button tag = 2    --  meet the OK string ID

     

     

     

    Project10.rar

  5. For this thing, i have a "String table" in the DataBase where i have all strings used in forms for multiple languages

    , When start the application and choose the language, i load all strings from database according to the language ID

     

    then i have a function that loops through controls and set the caption for each control

     

    I use the TAG property of the control(such as LABEL.tag)

     

    String table Example

         stringID   LanguageID   String Description

            1                   1                         Hello

            1                   2                         ¡hola

            2                   1                         OK

            2                   2                         bueno

     

    then, the Hello label tag will be 1 

    • Upvote 1
  6. I have a uniGUI application which supports two language of UI, the log in form have a user login name and password, and have a drop down menu for selecting the language

       1- English  2- Arabic(RTL)

     

    the Arabic language needs the MainModule RTL property to be True

     

    How can i set the RTL property to MainModule after checking the log in information and view the Main form

     

    uniMainmodule.RTL := true  is not working;

  7. In Main Form, OnShow Event, i have called the FlipChildren(true); this raise an ERROR

     

    uniGui 0.94  1024

    Delphi XE5

    Windows 8.1

     

     

    Note: I have Called the RTL := True; onShow Event and this works.

  8. I want to Flip children of my forms, but this raise an error, can any one help me doing that?

     

     

    Access violation at address 005C3A3A in module 'MyApp.exe'. Read of address 00000018

     

  9. I have uploaded  a sample project on my FTP and configured all setting on the IIS, when i want to run the project in the browser, the browser shows " Loading..." msg and nothing happend after that, Do i miss something in the setting or Paths?

×
×
  • Create New...