Search found 1911 matches

by [-hh]
Wed Feb 20, 2019 4:31 pm
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 9
Views: 171

Re: Drawing Hexagons

Here a LCB handler for computing the points of a regular N-gon. handler regularPoints(in pA as List) returns List -- pA = [ N, radius, xLoc, yLoc] variable tI as Number variable tP as Number put 2*pi/pA[1] into tP put [] into tM repeat with tI from 1 up to pA[1] push point [pA[3]+pA[2]*sin(tI*tP),pA...
by [-hh]
Wed Feb 20, 2019 4:08 pm
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 9
Views: 171

Re: Drawing Hexagons

You could try: Option (1). Compute the polygon path when an update is needed, not with every paint. Then use translate in OnPaint. Option (2), similar to LC Script. Compute all polygon paths when an update is needed, not with every paint. p.s. You could also draw the hexagons as regular polygons. Se...
by [-hh]
Tue Feb 19, 2019 4:55 pm
Forum: LiveCode Builder
Topic: Popup field?
Replies: 2
Views: 119

Re: Popup field?

You could modal a temporary substack with a field and set the text property of the widget from it.
by [-hh]
Tue Feb 19, 2019 4:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rounding dollar value to nearest $5
Replies: 10
Views: 268

Re: Rounding dollar value to nearest $5

Craig. You and others are (some closely) right with your answers. Here a simple "mathy" approach. If N is a positive integer and x is a non-negative number then you are searching for the nearest multiples of N for x ... ... rounded down (use below "floor" instead of "ceil") ... rounded (use below "r...
by [-hh]
Mon Feb 18, 2019 4:50 pm
Forum: Internet
Topic: revBrowserCEF on LC 9
Replies: 3
Views: 501

Re: revBrowserCEF on LC 9

From Dict > revBrowserOpenCEF
In LiveCode 8.0+, this function is no longer supported on Mac.
Also it is not updated since then (no HTML5 support).

I can't imagine anything that worked in CEF that does not work in the browser widget (libbrowser). What is it what doesn't run?
by [-hh]
Mon Feb 18, 2019 4:03 pm
Forum: Internet
Topic: VLC network stream
Replies: 6
Views: 186

Re: VLC network stream

The player control isn't the appropriate control for streaming. But you can use browser widgets. As follows is a minimal setup with an audio-example. It's similar for video. on mouseUp put "browser1" into bb if there is no widget bb then create widget bb as "com.livecode.widget.browser" set rect of ...
by [-hh]
Tue Feb 12, 2019 4:23 am
Forum: iOS Deployment
Topic: Override mute switch?
Replies: 19
Views: 693

Re: Override mute switch?

Why does a special class of developers (incl. some of the Apple guys) always believe that they must think for the user? The probability is very high that a lot of the users are much more clever than that whole class of developers ... After a few trials I don't use iTunes any more. This is an app for...
by [-hh]
Tue Feb 12, 2019 4:17 am
Forum: LiveCode Builder
Topic: Community widgets
Replies: 39
Views: 17737

Re: Community widgets

[#59] Community LCB widget "ImageWidget" v1.3.5 [v1.3.5 Adds new features: The two images are saved with the stack, you can scale/resize the widget and you can set rotation axes also at the images left, top, right and bottom.] TurnImage is a pure LiveCode Builder widget (there is no essential scrip...
by [-hh]
Sun Feb 10, 2019 4:28 am
Forum: iOS Deployment
Topic: Override mute switch?
Replies: 19
Views: 693

Re: Override mute switch?

You could fire a dialog instead of overriding or add a note at top that sound should be unmuted. The philosophy is "If some developers are idiots (overriding mute for all if they have some simple minded users) you don't have to be an idiot too (overriding mute for all if you have some simple minded ...
by [-hh]
Sat Feb 09, 2019 9:15 pm
Forum: iOS Deployment
Topic: Override mute switch?
Replies: 19
Views: 693

Re: Override mute switch?

Increasing the system volume settings without user interaction is a trial to do bodily harm and should be punished.
by [-hh]
Thu Feb 07, 2019 4:07 pm
Forum: Talking LiveCode
Topic: KeyDown is just a message
Replies: 23
Views: 537

Re: KeyDown is just a message

Good old mechanical typewriter ... I have still one in the darkest edge of my cellar.
by [-hh]
Thu Feb 07, 2019 12:29 pm
Forum: Talking LiveCode
Topic: KeyDown is just a message
Replies: 23
Views: 537

Re: KeyDown is just a message

Craig, you are a LC "extremist"... I always read your contributions with interest. Script a field with on keydown k answer k end keydown This answers every char you pressed in a short interval defined by your keyboard system prefs (especially regarding the repeat rate), try to press several keys at ...
by [-hh]
Sun Feb 03, 2019 1:30 am
Forum: Bug Triage
Topic: Variable check not correct?
Replies: 11
Views: 635

Re: Variable check not correct?

In order to support your steep learning curve. This does the same as your script.

Code: Select all

on mouseUp
  put the short name of the target into sn
  if sn begins with "rdo"
  then put "/" & lower(char 4 to -1 of sn) & ".html" into tmpSortBy
  openStack
end mouseUp
by [-hh]
Sat Feb 02, 2019 11:27 pm
Forum: Bug Triage
Topic: Variable check not correct?
Replies: 11
Views: 635

Re: Variable check not correct?

Why don't you simply script the group as follows?

Code: Select all

on mouseUp
   answer the hilitedButtonName
end mouseUp
or replace in your script the last two lines with:

Code: Select all

answer tmpVar
Then you see the quoted content of tmpVar.
by [-hh]
Thu Jan 31, 2019 1:41 am
Forum: Raspberry Pi
Topic: RaspberryPi Stacks
Replies: 116
Views: 61004

Re: RaspberryPi Stacks

Raspberry Pi stacks collection #108 = timeLapseCamera6789 Download TimelapseCamera from "Sample Stacks" or http://livecodeshare.runrev.com/stack/928/ The stack works with all editions of LC 6/7/8/9 on Mac/Win/linux and on Raspi 2/3 (with LC 651 and 704) TimelapseCamera lets you ... select one of th...

Go to advanced search