Search found 1811 matches

by [-hh]
Thu Dec 13, 2018 3:04 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 5
Views: 210

Re: Default handler list

I now followed the defaultscript generating for a widget in detail. [1] There is probably a problem with Tools/Toolset/libraries/revidedeveloperextensionlibrary.livecodescript, line 639: put sExtensionDetailsA[pFolder]["name"] & ".__DefaultScript" into tExpectedName I think this should read "Default...
by [-hh]
Thu Dec 13, 2018 12:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: help
Replies: 7
Views: 198

Re: help

Craig. Yes. But he has it for any finite number of integers. All we need is GCD(x,y) for two integers (see above). -- L = one line of comma separated integers function LCMofList L put item 1 of L into z2 repeat with i=2 to the num of items of L put z2*item i of L/GCD(z2,item i of L) into z2 end repe...
by [-hh]
Wed Dec 12, 2018 10:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: help
Replies: 7
Views: 198

Re: [help] LCM and GCD of a list of integers

[Notation. LCM=Least Common Multiple, GCD=Greatest Common Divisor] Craig. You describe an algorithm that is better for understanding the problem. But the most efficient way to compute the LCM of TWO integers a and b is to use the formula (*)   abs(a*b)=LCM(a,b)*GCD(a,b) because the computation of G...
by [-hh]
Sun Dec 09, 2018 6:15 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 5
Views: 210

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: 68

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: 5
Views: 210

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: 33
Views: 896

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: 258

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: 152

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: 129

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: 372

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: 372

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: 306

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: 372

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: 372

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...

Go to advanced search