Jump to content

COMFIED

Members
  • Content Count

    73
  • Joined

  • Last visited

About COMFIED

  • Rank

Contact Methods

  • Website URL
    https://comfied.com

Profile Information

  • Gender
    Male
  • Location
    Nairobi KE

Business

  • Company name
    COMFIED Mobile Media
  • Sector
    Information technology
  • Position
    Founder/ CEO

Smart Mobile Studio

  • Edition
    Professional

Recent Profile Visitors

238 profile views
  1. COMFIED

    Favicon

    Thanks!
  2. COMFIED

    Favicon

    Hi Is there a way to automatically add head links to a page favicon .ico in the root or res folder via code?
  3. COMFIED

    Copying Text to Clipboard

    Thanks a lot! This fixes the problem
  4. COMFIED

    Copying Text to Clipboard

    This works and copies text to clipboard browserapi.document.designMode := 'on'; asm navigator.clipboard.writeText("copy this text"); end; I'm still unable to introduce a string variable from label or input box to replace "copy this text" - Any idea how I can do that?
  5. COMFIED

    Copying Text to Clipboard

    Any help on how I can click a label/ text to copy to clipboard? Here is my code, but its not working. procedure TForm1.W3Label1Click(Sender: TObject); begin W3Label1.Caption:= '<id="ACC">1234'; var document.getElementById('ACC'); copyText.select(); document.execCommand('copy'); ShowMessage("Copied the text: " + copyText.value); end;
  6. COMFIED

    Long Press/ Taphold

    Hi Any ideas on how to detect long press or taphold on a panel or label?
  7. COMFIED

    Android Back Button (Cordova/ Phonegap)

    I have noted the problem - the event listener fires only once- on load, then ignores all events after that. I am calling bindEvents in the InitializeForm; Is there a way to listen to events as long as the app is running?
  8. COMFIED

    Android Back Button (Cordova/ Phonegap)

    I'm getting a type error, cannot read property preventDefault of null
  9. I have built a web app using smart mobile studio and compiled to android APK on phonegap. I'm trying to get the android back button to read a variable and either perform an action in the app or terminate the app. The code below minimizes/ hides the android app, but doesn't terminate it. How can I introduce a variable onBackKeyDown event and prevent app from minimizing? Here is my code: procedure TForm1.onDeviceReady; begin receivedEvent('deviceready'); end; procedure TForm1.bindEvents; begin document.addEventListener('deviceready', onDeviceReady, false); asm document.addEventListener("backbutton", onBackKeyDown, false); function onBackKeyDown(e) { e.preventDefault(); } end; ...more code... procedure TForm1.InitializeForm; begin inherited; // this is a good place to initialize components bindEvents; ...more code...
  10. COMFIED

    Working with Emoji data

    IT WORKS - Thanks!!!
  11. COMFIED

    Working with Emoji data

    I am storing and retrieving emoji in UTF16 format on a MySQL database. When I retrieve, i get the data results "\ud83d\ude0a" for smile emoji (😊) "\ud83e\udd37\u200d\u2640" (for🤷‍♀️) Is there a simple way to convert the UTF16 to unicode and render the emoji on a browser?
  12. COMFIED

    GOTO Equivalent

    I have instead modified my code to use timers - TW3EventRepeater - and achieve the same objective. On browser apps, I guess async timers are more elegant solution.
  13. COMFIED

    GOTO Equivalent

    Hi Is there a smartmobilestudio equivalent to the delphi GOTO command to jump to a label or loop within a procedure?
  14. COMFIED

    Translucent Panel Blur Effect

    Thanks. I'll try out the combination of opacity+stack blur.. I think it should work!
  15. COMFIED

    Translucent Panel Blur Effect

    Is there a simple way to get an image blur effect on a translucent panel placed over a background image? I am trying to make translucent pop up notifications over a game with lots of graphics - similar to attached .
×