## Search found 3432 matches

Fri Nov 13, 2020 1:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

For anyone interested in analog clocks:

I uploaded a "railwayclock" to Livecode share/Sample Stacks

http://livecodeshare.runrev.com/stack/978/railwayclock

have fun
Bernd
Fri Nov 13, 2020 11:46 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

Craig,

here is a way to hide part of a line graphic that does not use inks. It is a lot easier to handle.

drawSecondsHandClock2.livecode.zip

Kind regards
Bernd
Fri Nov 13, 2020 8:58 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

I haven't checked whether it/they have any similar techniques, look/feel or smoothness, but maybe one of Hermann's clock gizmos has something to investigate? Eg http://forums.livecode.com/viewtopic.php?p=146898#p146898 Those are LCB-widgets and it is easy to do this kind of stuff in Livecode Builde...
Thu Nov 12, 2020 11:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

Craig, I set a line graphic, not to the points of an oval graphic but to an imaginary point of a crircle with a radius of 200 pixel. That way I can generate a point at that distance that accepts decimal degrees from the milliseconds. The oval graphic has no points. I am hiding the length of the line...
Thu Nov 12, 2020 10:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

Gentlemen,
Here is a little stack that moves the seconds smoothly at a frame rate of about 25.

I do not recomend this for the "clock" because it is very hard to implement.

drawSecondsHandClock.livecode.zip

Kind regards
Bernd
Thu Nov 12, 2020 12:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rotating a graphic 360degrees in 60s
Replies: 36
Views: 3197

### Re: Rotating a graphic 360degrees in 60s

I'm trying to figure out, and not having much success, of how to have the arc of an oval rotate 360 degrees in 60 seconds, similar to that of the second hand of a clock. However, I don't want it pause at each second interval, ie it should sweep 360 degrees smoothly in 60s without stopping. Hi Glenn...
Wed Nov 11, 2020 11:12 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Analogue clock
Replies: 12
Views: 3740

### Re: Analogue clock

Glenn, I think what is confusing about the seconds handle is that in Livecode 0 degrees point to the right and an increase in degrees moves counter clockwise. That is what put (360 - tSecondsAngle + 90) into tSecondsAngle is for. I made a small stack that has a slider from 0 to 360 and that slider s...
Sun Nov 08, 2020 10:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Line customisation
Replies: 7
Views: 1232

### Re: Line customisation

have a look at the stack I posted recently that demonstrates the formatting addition introduced in LC 5.5 Richard mentioned. It was done by Livecode's Benjamin Beaumont at the time. I think it is a nice demo that unfortunately was never really given the publicity it deserves. http://forums.livecode....
Thu Nov 05, 2020 10:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Apply hanging indent style to only a specific line?
Replies: 5
Views: 1117

### Re: Apply hanging indent style to only a specific line?

Hi Michael, set the leftIndent to e.g 17 and the firstIndent to -17 for a paragraph. on mouseUp lock screen set the leftIndent of line 2 of field 1 to 17 set the firstIndent of line 2 of field 1 to -17 unlock screen end mouseUP See attachement "Paragraph Formatting Properties" LiveCode55DP1field.liv...
Tue Oct 27, 2020 5:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: SVG Icon - Quick hack
Replies: 29
Views: 9880

### Re: SVG Icon - Quick hack

Hi Mark, there are a couple of utilities out on Livecodeshare by Brian Milby and Devin Asay. http://livecodeshare.runrev.com/stack/872/SVG-Icon-Tool http://livecodeshare.runrev.com/stack/870/SVG-Icon-Family-Maker http://livecodeshare.runrev.com/stack/871/SVG-Icon-Picker Check those out how to add a ...
Tue Oct 27, 2020 5:28 pm
Forum: Multimedia
Topic: Steganography Coder
Replies: 7
Views: 2877

### Re: Steganography Coder

Hi Xero, chartoNum and numToChar are both deprecated. Use numToByte and byteToNum instead. That will speed up the whole thing considerably, I think that is what Richard meant. And of course when addressing use byte instead of char. You are working on byte stuff, not chars. For chars use numToNativeC...
Sun Oct 25, 2020 11:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: custom 'widgets'
Replies: 35
Views: 3800

### Re: custom 'widgets'

I left the red dot graphic that shows up in edit mode only now if you move into it it will open the substack as palette. From there you can configure the popover. Amazing, thanks Bernd!!! That's really close to what i was thinking... only how would i add this to another stack? I have a larger app i...
Sun Oct 25, 2020 9:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: custom 'widgets'
Replies: 35
Views: 3800

### Re: custom 'widgets'

Hi stam, I changed your stack a bit: I moved the logic of your main group into the card script of a sub stack. There I changed the reference to "me" to the long id of the "real" me in your main stack. See card script of sub stack. I left the red dot graphic that shows up in edit mode only now if you...
Sun Oct 25, 2020 1:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: custom 'widgets'
Replies: 35
Views: 3800

### Re: custom 'widgets'

Hi stam, If I understand you correctly what you want is: when being in edit mode and you want to configure your popOver via the the build in configurator you have to switch to browse mode for the right-click. As an exercise you want to do it all with the mouse, no keyboard. It is very tricky to get ...
Sun Oct 25, 2020 9:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Buttonbar
Replies: 11
Views: 1514

### Re: Buttonbar

You can change the icons of both the Navigation bar and the Header bar using the Properties Inspector by clicking on the icon and selecting another icon from font awesome. Font awesome is the SVG icon font used for the icons.

Kind regards
Bernd