Jump to content

GerhardV

uniGUI Subscriber
  • Posts

    385
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by GerhardV

  1. Think about this for a minute...you cannot use the optional character in the front as you are filling the mask from left to right thus you will need to use the mask at the end like this: (99) 9999[9]-9999.

    (00) 1234_-___

    And when you get to the 5th number you have to press the separator character (-) as the application does not know if you want to enter 4 or 5 numbers before the -, hence you need to indicate to the application that you only want 4 by pressing the separator (-). The application will then move the (-) one position left and let you fill in the remaining 4. 

    ;)

  2. I don't have an answer for you, but what you are trying to achieve might be all ok in a desktop app environment but certainly would be a killer in a web app. You do not want to send scroll events back to the server over the internet, what if the user scrolls up and down constantly? It is fine to handle the event on the client side though. So think carefully about the design approach I would suggest.;)

  3. If you look at the OnCreate code of the main form you will see my comments - both ways worked in the example.

    procedure TMainForm.UniFormCreate(Sender: TObject);
    var
      JSStr: TStringList;
    begin
      //Can load the JS here if you don't want to use CustomFiles in ServerModule
      (*
      JSStr := TStringList.Create;
      try
        JSStr.LoadFromFile('files\HighliteMultipleDates.js');
        UniSession.AddJS(JSStr.Text);
      finally
        JSStr.Free;
      end;
      *)
    end;

    Sorry can't help any more than this, the example works and only you know what your code does, so very difficult to debug like this.

  4. Not sure but might have to do with trusted sites:

    "Internet options - Security - Trusted sites - Sites
    Uncheck Require server verification (https:) for all sites in this zone
    Adding http://*.live.com fixed my problem."

    See this link: 1st one in search results with a Google searching for "The webpage you are viewing is trying to close the window."

    https://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/ie9-how-do-i-disable-the-ie-popup-the-webpage-you/0451d034-90d7-4de9-8757-a00b24e55b82?page=2

    You would need to add your domain as a trusted site for your customer.

  5. Did you run the example that was attached? And did it work as expected?

    Sorry I cannot help by just looking at that. You would need provide screen shots from where you have incorporated it into your project.

    Study the example project and make sure that you have every thing covered. If it works in the example project then something went wrong when you port it to your project, which I can not see, so very difficult to tell what is wrong. 

  6. @eduardosuruagy  Attached you will find an example.

    There is a "HighliteMultipleDates.js" file in the "files" folder which is set in CustomFiles of the ServerModule. See also the ClientEvents | UniEvents | Ext.picker.date [picker] of uniCalendar1.

    See the following methods in code:

    • procedure CreateHighlightDates;  <=== creates an array of dates
    • procedure HighlightDatesPush;  <=== this highlights an array of dates
    • procedure SingleHighlightDatesPush(ADt: TDate; ATitle: string);   <=== this one is behind the button to set one date at a time

    MultipleDates.zip

    opera_2018-09-13_14-41-06.png

  7. I suggest uninstall the run time version and re-install it and leave everything as is. Set the ExtRoot property back to what the default was and rebuild your application. Copy across and try again.

  8. You can add the following CSS to CustomCSS in the ServerModule....BUT remember this will only work for left collapsed panels and it will also screw up the calculations from uniGUI when you use server side alignment (uniAlignmentServer). It will also affect all panels that will collapse to the left.

    .x-panel-header-default-collapsed-left {
        padding: 10px 0px 10px 0px;
        width: 21px !important;
    }

    P.S. I have not tested this properly so I am not sure how this will affect any other areas.

     

    501085746_1.BeforeWidth31px.png.61cc9b7e950bb122350212a38d086606.png    1957440884_2.Width21px.png.5e216c73e5bf980e44acb2260d5bfe6e.png

     

×
×
  • Create New...