Search found 28 matches

by glenn9
Fri Mar 27, 2020 11:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting 'fit to content'
Replies: 5
Views: 168

Re: Scripting 'fit to content'

apologies, my question didn't make sense, what i meant to ask is it possible to script the property browser option 'fit to content'!

Thanks,

Glenn
by glenn9
Fri Mar 27, 2020 11:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scripting 'fit to content'
Replies: 5
Views: 168

Scripting 'fit to content'

Hi everyone,

is it possible to script in the property browser 'fit to content' (when I hover over it the tooltip just shows either width or height but no 'fit to content' command?)

Thanks for any help.

Regards,

Glenn
by glenn9
Fri Mar 20, 2020 8:06 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a flashing effect
Replies: 21
Views: 844

Re: Creating a flashing effect

Klaus,

Many thanks for this - I was unaware of the 'any' command and I like its simplicity and clarity.

Regards,

Glenn
by glenn9
Thu Mar 19, 2020 4:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a flashing effect
Replies: 21
Views: 844

Re: Creating a flashing effect

Just wanted to say a big thank you to everyone for all the hints and tips. The ideas have enabled me to eventually produce the effect that i had originally imagined which was to have multiple graphics blinking independently random colours. My learning points from his project were: - now aware of the...
by glenn9
Wed Mar 18, 2020 12:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a flashing effect
Replies: 21
Views: 844

Re: Creating a flashing effect

Another way is using the send command: local t1, Nrepeat on mouseup -- flash put 0 into t1 put 2 into Nrepeat send "flash2 +5" to me in 0 end mouseup on flash2 deltaChange add deltaChange to t1 if deltaChange > 0 and t1 > 200 then put "-5" into deltaChange else if deltaChange < 0 and t1 <= 0 then s...
by glenn9
Wed Mar 18, 2020 12:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a flashing effect
Replies: 21
Views: 844

Re: Creating a flashing effect

Hi Glenn, I only see that you are "flashing" ONE object!? Where is the other one? Of course you will need to out this into the same repeat loop. And your SEND script: 1. The repeat loop will be too fast to notice 2. Since you SEND this command every 500 millisecs you will have an eternal loop you w...
by glenn9
Wed Mar 18, 2020 8:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a flashing effect
Replies: 21
Views: 844

Creating a flashing effect

Hi, I'm trying to get an object's background colour to 'flash' and can achieve this with a 'wait' command as below: on mouseup put "red, orange, yellow, green, blue, violet" into vColors repeat for each item x in vColors set backcolor of graphic 1 to x wait .5 seconds end repeat end mouseup However,...
by glenn9
Mon Mar 09, 2020 4:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: replacing mathematical operators with a variable
Replies: 7
Views: 558

Re: replacing mathematical operators with a variable

We've done simple comboboxes & variables before... and I thought just swapping an operator for a variable would easily work.....!

having said that I'm still finding LC so much more enjoyable and understandable as a hobby coder than even python...
by glenn9
Mon Mar 09, 2020 2:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: replacing mathematical operators with a variable
Replies: 7
Views: 558

Re: replacing mathematical operators with a variable

Klaus, Craig, Brilliant, it works - thanks! (the background is that I'm trying to teach my daughter some LC through building a mental arithmetic training app, and wanted to be able to change the operator through a comboBox choice, so had to have the operator as a variable!) Thanks again, Regards, Gl...
by glenn9
Mon Mar 09, 2020 1:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: replacing mathematical operators with a variable
Replies: 7
Views: 558

replacing mathematical operators with a variable

Hi, I'm trying to replace a mathematical operator (+, *, -, /) with a variable but LC doesn't seem to like it! Not sure where I'm going wrong with the logic! local tANumber, tOperator, tAnotherNumber -- instead of: put value(1 + 2) into field 1, I tried this put value(tANumber tOperator tAnotherNumb...
by glenn9
Mon Mar 09, 2020 12:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Open source english dictionary availability
Replies: 4
Views: 526

Re: Open source english dictionary availability

bogs,

many thanks, that was really helpful - I guess I wasn't asking the correct question in the search engine!

Kind regards,

Glenn
by glenn9
Mon Mar 09, 2020 9:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Open source english dictionary availability
Replies: 4
Views: 526

Open source english dictionary availability

Hi,

I'm interested to see if I can develop a simple 'dictionary' app to look up the definition of a word, and wanted to check if it was known whether there is an open source English dictionary file that can be used to provide the data for this?

Many thanks for any advice.

Kind regards,

Glenn
by glenn9
Fri Mar 06, 2020 8:25 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling list field handling
Replies: 11
Views: 708

Re: Scrolling list field handling

Many thanks to all, I think I now get it! It's the 'not visible' section of the scrolling list field that is the reason why I need to scroll, ie I need to scroll to make it 'visible', and therefore to determine the height of this 'invisible' section I need to subtract the 'visible' height (height of...
by glenn9
Thu Mar 05, 2020 10:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling list field handling
Replies: 11
Views: 708

Re: Scrolling list field handling

Hi Bernd,

have just tried looking at the vscoll but still not getting it yet!!

I think I'll need to ponder on this a bit more but thank you and Craig for trying to help.

Kind regards,

Glenn
by glenn9
Thu Mar 05, 2020 9:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling list field handling
Replies: 11
Views: 708

Re: Scrolling list field handling

Bernd, Craig, Many thanks, this works perfectly and I understand all of the code except why formattedHeight of me - the height of me is needed (apart from the fact it doesn't work without it!) ie I'm not understanding why I need the difference between the formatted (the full content height) and heig...

Go to advanced search