Jump to content

andyhill

uniGUI Subscriber
  • Posts

    1266
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by andyhill

  1. I am trying to force GoogleMaps to FullScreen via code (MainFormDisplayMode:= mfPage;). Please advise how - Thanks in advance

    Played with <div

      s:= '<div id="uni_map_canvas" style="position: absolute; width: 100%; height: 100%"> '+
          '  <iframe '+
          '    src="https://www.google.com/maps/embed/v1/place?key=xxx" '+
          '    width="100%" '+
          '    height="100%" '+
          '    style="border:0;" '+
          '    allowfullscreen '+
          '    referrerpolicy="no-referrer-when-downgrade" '+
          '    loading="lazy" '+
          '  > '+
          '  </iframe> '+
          '</div>';
      UniHTMLFrame1.HTML.Add(s);

    Played with CSS

      s:= '.google-maps ' +
          '{ '+
          '  position: relative; '+
          '  padding-bottom: 75%; '+
          '  height: 0; '+
          '  overflow: hidden; '+
          '} '+
          '.google-maps iframe '+
          '{ '+
          '  position: absolute; '+
          '  top: 0; '+
          '  left: 0; '+
          '  width: 100% !important; '+
          '  height: 100% !important; '+
          '} ';
      CustomCSS.Add(s);

      s:= '.box '+
          '{ '+
          '  height: 100%; '+
          '} '+
          '.box iframe '+
          '{ '+
          '  width: 100%; '+
          '  height: 100%; '+
          '  border: none; '+
          '} '+
          'html, body '+
          '{ '+
          '  margin: 0; '+
          '  padding: 0; '+
          '  width: 100%; '+
          '} '+
          'body '+
          '{ '+
          '  font-family: "Helvetica Neue", sans-serif; '+
          '  font-weight: lighter; '+
          '  height: 100%; '+
          '} ';
      CustomCSS.Add(s);

     

  2. I have a Mobile Application that uses the TUnimCalendarPanel and I want to print a Desktop Emulation Month View on A4 Landscape Paper.

    So with a Mobile Device running the Mobile Application I want to invisibly create a Desktop Emulation Month View and print the HTML Contents -or- convert to PDF.

    Don't worry about the printing or PDF processes, I just need access to the HTML that painted the Desktop Emulation Month View.

    Please advise - thanks in advance.

     

×
×
  • Create New...