Search found 1808 matches

by [-hh]
Sun Dec 09, 2018 6:15 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 4
Views: 114

Re: Default handler list

There is no direct connection between LCS editor and LCB-widgets. The only way I can see is that you build a template with all the properties (may be based on the manifest.xml file of the widget) and set the script of an LCS object to that template. For adding handlers to the "insert"-List you have ...
by [-hh]
Sun Dec 09, 2018 6:07 pm
Forum: LiveCode Builder
Topic: Updating a widget in use
Replies: 1
Views: 58

Re: Updating a widget in use

Insert step 4b: Close and restart LiveCode. If this doesn't help make sure your OnLoad handler is downward compatible, that is use always a keys-check: public handler OnLoad(in pP as Array) if <key> is among the keys of pP then ... end if end handler p.s. Did you think of the incompatibility of LC 8...
by [-hh]
Sun Dec 09, 2018 5:52 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 4
Views: 114

Re: Default handler list

Import examples:
use com.livecode.math
use com.livecode.library.iconsvg

In case you mean with "custom handlers" public handlers of other widgets:
Such handlers aren't really "public". This is not (yet) implemented in LCB.
by [-hh]
Thu Dec 06, 2018 2:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: distorted graphics when using move or set loc
Replies: 29
Views: 697

Re: distorted graphics when using move or set loc

  • On windows try
    set the lowResolutionTimers to true
  • Also try in the line before "move"
    lock messages
  • Draw a polygon instead of using a "regular" style of the graphic.
    Regular polygons are clipped if the linesize increases.
    (Bug reported long ago)
by [-hh]
Sat Dec 01, 2018 12:26 am
Forum: LiveCode Builder
Topic: Browser widget and loading animation
Replies: 0
Views: 243

Browser widget and loading animation

This is the answer to a post in the use-list: http://lists.runrev.com/pipermail/use-livecode/2018-November/251777.html The following works tested here on desktop, should work everywhere where the browser widget works. 1. Overlay browser widget "browser" with a browser widget "loader" (that displays ...
by [-hh]
Wed Nov 28, 2018 12:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Storing thumbnails of uploaded JPEG images
Replies: 5
Views: 149

Re: Storing thumbnails of uploaded JPEG images

0. if there is no img "thumb1" then create img "thumb1" 1. put url("binfile:"&filePath) into img "thumb1" 2. set rect of img "thumb1" to (0,0,desiredWidth,desiredHeight) 3. set imagedata of img "thumb1" to the imagedata of img "thumb1" step 3 makes the new size permanent (and changes the fileLength ...
by [-hh]
Tue Nov 27, 2018 11:56 pm
Forum: Android Deployment
Topic: Browser Scroll/Zoom in&out not smooth
Replies: 2
Views: 120

Re: Browser Scroll/Zoom in&out not smooth

I tested on a simple Xperia Z1 a browser widget that loads your gif as URL.
Here it zooms (pinch) and pans fine.
by [-hh]
Tue Nov 27, 2018 11:50 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

Widget imageWidget does not work on mobile. I tested an early version only, sorry. I don't know what's the problem now...
by [-hh]
Tue Nov 27, 2018 12:41 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

@Panos Possibly this is not special to the browser widget but relates to tsNet? I have regularly problems with "https:"-downloads, at least if if the file is large, for example put url(https://www.raspberrypi.org/magpi-issues/MagPi71.pdf) into pdfdata (36Mbyte) cancels at once in LC 9 but it works i...
by [-hh]
Tue Nov 27, 2018 1:17 am
Forum: Raspberry Pi
Topic: MagPi
Replies: 1
Views: 253

MagPi

Great source for working a Rasberry Pi.

https://www.raspberrypi.org/magpi-issues/

Of special interest for Android developers:

Run Android on Rasperry Pi, see
https://www.raspberrypi.org/magpi-issues/MagPi71.pdf
by [-hh]
Mon Nov 26, 2018 11:44 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

This should work also in one go. But it's better to separate the call for the htmltext. You could also use "load url" on openCard, so users with a slow connection get more time. And later on (when the image is no longer needed) use "unload url". Then the image is loaded (fast) from cache every time ...
by [-hh]
Mon Nov 26, 2018 10:30 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

Rotate an image in the browser widget. on mouseUp set htmltext of widget "browser" to fld "HTML" put "var d=document.getElementById('youks1');" & \ "d.setAttribute('style','" & \ "-webkit-transform:rotate(90deg); transform:rotate(90deg);" & \ "transform-origin:50% 50%;')" into js do js in widget "Br...
by [-hh]
Mon Nov 26, 2018 10:02 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

Hi Youks, please report the address of the image that didn't load by "https:" to https://quality.livecode.com so that they can look into it. Or post the address here. This is probably a situation when "ordinary" browsers open a security dialog... (I checked just now that for example on Mac the widge...
by [-hh]
Mon Nov 26, 2018 9:10 pm
Forum: Android Deployment
Topic: widget Browser not opening URL with picture
Replies: 19
Views: 349

Re: widget Browser not opening URL with picture

Sometimes the browser widget can't load "https:"-addresses. Try as "http:" or try to set the userAgent of the widget.
Images in the browser can be rotated directly in the browser using CSS (do "..." in widget "browser").

Go to advanced search