Jump to content
uniGUI Discussion Forums

Search the Community

Showing results for tags 'listener'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • uniGUI 1.x
    • Beta Releases
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 2 results

  1. Geovane Silveira

    TUniMemo how to handle paste event?

    So, I have a customer that copy/paste info on the memo that a client of his always send to them whenever they want to buy something. Problem is, this info is separated by line breaks, and my client doesn't want it to. I saw a lot of techniques using event listeners and alikes but I couldn't figure out how to make it work with unigui. This is a js fiddle that I found (changed a bit) with exactly how I want my memo to behave. I don't know, nor did I found out, how to translate this to use in unigui and where/when to put it. My application is desktop based.
  2. I have searched the forum and found some entries that dont' work for me (Self.OwnerWebForm.JSInterface etc. I want to add a Listener to a form, simulate the event call (in code) and then catch the event and do something - please advise - thanks. // Listener procedure TMainmForm.UnimFormReady(Sender: TObject); begin //Self.OwnerWebForm.JSInterface.JSAddListener('camera', JSFunction('me', 'var frmWin=' + MainmForm + '.window; ajaxRequest(frmWin, "_photo", [])')); MainmForm.JSInterface.JSAddListener('camera', JSFunction('me', 'var frmWin=' + MainmForm + '.window; ajaxRequest(frmWin, "_photo", [])')); end; ... // Simulate UniSession.AddJS('Ext.form.Panel.form.ajaxCallback(MainmForm, ''_Photo'');'); ... // Catch procedure TMainmForm.UnimFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if SameText(EventName, 'camera') then begin // do something here if 'camera' end; if SameText(EventName, '_photo') then begin // do something here if '_photo' end; end;