Jump to content

Harry Rogers

uniGUI Subscriber
  • Posts

    237
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Harry Rogers

  1. Just upgraded to build 1481 and vertical scroll bars are now not shown for forms that had them on build 1424. 

    Didn't notice until I was running an app on a clients (1024x768) screen - only option I could find was to zoom browser view, which got me out of a hole but need a solution to this pretty quickly.

    Thanks

    FMSoft_uniGUI_Complete_Professional_1.50.0.1481

    XE8 Enterprise

  2. Hi

    Whats the way to save a png image file to disc from a Tuniimage that gets its image from a url?

    Dragging the image to the desktop from the browser creates a png file in the desktop directory yet

    the standard programmatic file and stream based methods just result in a zero length file.

    e.g.

     uniimage1.picture.savetofile('afile.png')

     uniimage1.picture.graphic.savetofile('afile.png')

     uniimage1.picture.bitmap.savetofile('afile.png')

     

    So far I've used an additional  TidHttp to Get the data from the same url as the Tuniimage and write it to a filestream which works fine but it would be nice to just use the one resource if possible.

     

    Thanks

  3. Hi

    In a Unidbgrid Is there a means to turn the cell highlight on and off at run time.

    I have a child grid that populates with the change of its parent. It should not have any cells shaded when first drawn but allow subsequent selections with the usual visual feedback of cell highlighting.

     

    Thanks

  4. Hi

    I would like to show a calendar to allow a user to select a date that will always be in the past - it would be nice to not display the  'Today' button of a Unicalendar. Is there some js that can do this magic?

    Thanks

  5. That's great - thanks

     

    n.b.

    Already had this (to get ideal column widths)

      columns.forEach(function(el){el.flex=1})

    in the reconfigure function.

     

    need to ensure this is now called after the

      sender.headerCt.getMenu......

    to avoid an ajax undefined error

  6. Hi

    When a user access a url that is protected with this mechanism they are presented with a username & password dialog - by the browser.

    A client can included the credentials in the request header.

     

    The simplest implementation (basic access authentication) uses the authorization header field of the http request

    e.g. the request header contains

     Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l

    where QW.... is the username and password string, base64 encoded.

     

    Subsequent versions have been defined e.g. Digest access authentication

    in which the username and password are hashed.

     

    I wanted to prevent the 'browser', a TUniURLFrame in my case, from popping up the dialog to request credentials, and have them silently presented via the request header.

     

    Thanks 

  7. Hi

     

    Is there a means to set the authorization header when using a TUniURLFrame?

    I need to access some resources in a unigui app that are 'protected' by http authentication and I don't want the user to have ready access to the credentials / or require them to type anything in.

    - it used to be possible to enter these in the url (//username:password@theurl) but that's been long deprecated.

     

    Thank you

  8. There are a number of Geolocation APIs - Some free

    e.g. a 'Get' to  http://freegeoip.net/json/ipAddressHere

     

    returns this json [N.B.  It's not that geographically accurate but for me it's the correct country and within 10-15  miles!]

     

    {
      "ip": "xxx.xxx.xxx.xxx",
      "country_code": "GB",
      "country_name": "United Kingdom",
      "region_code": "ENG",
      "region_name": "England",
      "city": "Bromley",
      "zip_code": "BR1",
      "time_zone": "Europe/London",
      "latitude": 51.4,
      "longitude": 0.05,
      "metro_code": 0
    }
  9. I think a customer may have had a similar thing last week, started after various server updates had been performed - including an update to the server's Kaspersky based protection. The Unigui system was relocated to another server - without Kaspersky and it's all good again. So I never got a chance to investigate any further.

  10. Hi

     

    In the OnCreate of ServerModule

     FilesFolder := paramstr(1)

     

    In a session you can then refer to 

     UniServerModule.FilesfolderPath 

     

    which correctly reflects the path as the 1st parameter supplied to the exe when it starts.

     

    if I start a standalone exe server with a parameter of 'c:\test\'

    FilesFolderPath is indeed c:\test\

     

     However

     

     UniServerModule.FIlesFolderURL does not reflect this it still shows the default '/files/'

     

    How to get the URL of the FilesFolder in this case?

     

    Thanks

     

×
×
  • Create New...