Jump to content

Sherzod

Moderators
  • Posts

    21367
  • Joined

  • Last visited

  • Days Won

    727

Sherzod last won the day on June 19

Sherzod had the most liked content!

About Sherzod

Contact Methods

  • Website URL
    https://t.me/uniguidevelopers - https://www.youtube.com/@uniguidevelopers

Profile Information

  • Gender
    Male
  • Location
     uniGUI )

Recent Profile Visitors

72123 profile views

Sherzod's Achievements

Advanced Member

Advanced Member (4/4)

2.4k

Reputation

  1. Hello, As far as I know, this is a general limitation of browser and web architecture.
  2. Even if you trigger printing manually via window.print() and use onafterprint, there’s still no way to detect whether the user actually printed the document or canceled the dialog. The browser does not expose that information for privacy and security reasons — you can only detect that the print dialog was closed.
  3. Hello, What kind of content is being displayed inside the TUniHTMLFrame? Is it a static HTML or?
  4. What's the reason you need to detect when the user clicks the browser's print button? Are you trying to log the action, prevent something, or trigger other logic? Or do you mean the Print button that's shown inside the PDF viewer toolbar?
  5. Thanks for the clarification! Just to better understand — are you using native uniGUI components to display the PDF, or is it embedded some other way (e.g., via <embed> or iframe)?
  6. I'm glad to see you’ve found a working solution!
  7. Hello, Could you please clarify which "Print" button you are referring to? Is it a custom button inside the page loaded in TUniURLFrame, or the browser's native print dialog (e.g., window.print())? Also, what kind of content is being displayed in the frame — a PDF, HTML page, or something else? Knowing these details would help provide a more accurate answer.
  8. Thank you. Can you make a simple testcase?
  9. Hello @irigsoft This solution might help — try analyzing and modifying the code. https://t.me/uniguidevelopers/6
  10. Добрый вечер! Уточните пожалуйста Ваш случай. Это событие срабатывает на любые входящие HTTP-запросы, вне контекста сессии.
  11. procedure TUnimLoginForm1.UnimLoginFormReady(Sender: TObject); begin UniSession.AddJS( 'Ext.defer(function(){ ' + 'var els = document.getElementsByClassName("x-formpanel-body-el");' + 'if (els.length > 0) {' + 'els[0].style.backgroundImage = "url(files/BKG.png)";' + //'els[0].style.backgroundSize = "cover";' + //'els[0].style.backgroundRepeat = "no-repeat";' + //'els[0].style.backgroundPosition = "center";' + '} else {}' + '}, 100);' ); end;
  12. Свойство background-repeat в CSS можно вообще не указывать тогда, так как у него есть значение по умолчанию — это repeat.
  13. Hello, Yes, you can try this: // my-module.js import { greet } from './greeting.js'; greet('Luca Cenci'); window.MyGreetFunction = greet;
  14. Hello, Yes, it only works at session start. You can find solutions using CSS and JS on the forum to change the background dynamically.
  15. Hello, Try this approach for now: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniDBGrid1.JSInterface.JSConfig('bufferedRenderer', [False]); end;
×
×
  • Create New...