Search found 3293 matches

by bn
Thu Aug 16, 2018 7:10 pm
Forum: LiveCode Builder
Topic: Wrap Text in Rect
Replies: 8
Views: 1627

Re: Wrap Text in Rect

Greg, as far as return is concerned I resorted to this solution create some new variables and put a linefeed character into your list of words as a test. I assume that if you pass the widget a string with a return from LCS it will be linefeed (ASCII 10). variable tReturnChar as String get the char w...
by bn
Thu Aug 16, 2018 4:31 pm
Forum: LiveCode Builder
Topic: Wrap Text in Rect
Replies: 8
Views: 1627

Re: Wrap Text in Rect

Greg, regarding alignment I only found this solution variable tAlign as String put "center" into tAlign and then if tAlign is "center" then fill text tLine at center of pTextBox on this canvas else if tAlign is "top left" then fill text tLine at top left of pTextBox on this canvas else if tAlign is ...
by bn
Tue Aug 14, 2018 7:57 pm
Forum: LiveCode Builder
Topic: Default Script
Replies: 11
Views: 1969

Re: Default Script

Greg, your default script has some typos this compiles on mouseUp end mouseUp --Sent if mType is "Action", need to add more cases as needed on actionSelected switch the buttonSelected of me case 1 --Put Actions here break case 2 --Put Actions here break end switch end actionSelected function getSele...
by bn
Mon Aug 06, 2018 7:59 pm
Forum: Talking LiveCode
Topic: Invisible syntax error?
Replies: 5
Views: 838

Re: Invisible syntax error?

Hi Craig, if you use http://livecodeshare.runrev.com/stack/825/TinyDictionary as a plugin then you have for each version of Livecode starting with 8.1 the current dictionary of that version. I.e. if you have both LC 8.1 open and 9.0 open and you open TinyDictionary in each of those you will have the...
by bn
Mon Aug 06, 2018 8:02 am
Forum: Rich Media
Topic: frame-byframe with Video Formats
Replies: 15
Views: 2247

Re: frame-byframe with Video Formats

Hi Klaus, Xero,

I did not test enough and did not read the dictionary well. I fell afoul of thinking that "currentTimeChanged" was related to a frame change. This assumption did not work out.

I will leave the stack here as a "bad" example.

Kind regards
Bernd
by bn
Sun Aug 05, 2018 11:28 am
Forum: Rich Media
Topic: frame-byframe with Video Formats
Replies: 15
Views: 2247

Re: frame-byframe with Video Formats

Hi Xero, here is a stack that attempts to implement a step forward and step backward button. It works most of the time. To determine the frame duration I have to "calibrate" the movie for 1 second. I then take the time units in the timescale and divide by number of frames. The logic is almost all in...
by bn
Sun Aug 05, 2018 9:29 am
Forum: LiveCode Builder
Topic: Parse to number error
Replies: 5
Views: 1041

Re: Parse to number error

Hi Greg, the problem here is that "as Number" has to be lower case "as number". Uppercase is for casting types in variable declarations. Note "log" which is very helpful for debugging. You can log anything if you put it into square brackets [] like log [tVariable1, tVariable2], for strings you can o...
by bn
Thu Aug 02, 2018 2:16 pm
Forum: Feature Requests
Topic: Add pref for renaming behiors
Replies: 21
Views: 2951

Re: Add pref for renaming behiors

Hi Jim, as outlined in the link to the forum you posted it is probably not possible to reassign the behaviors when you rename the stack where the behavior buttons live. In addition to the problems mentioned in the other thread you mentioned there is the problem of nested behaviors which can consist ...
by bn
Thu Jul 26, 2018 11:21 pm
Forum: Engine Contributors
Topic: relative image paths and custom controls
Replies: 13
Views: 4426

Re: relative image paths and custom controls

unfortunately I made a mistake in the code snippet. I should read on newGroup resolve image "redQMark" relative to button "bOne" of me if it is not empty then set the hilitedIcon of button "bOne" of me to the short id of it end if resolve image "greenRound" relative to button "bOne" of me if it is n...
by bn
Sat Apr 28, 2018 8:48 pm
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 3540

Re: FFI Help wrapping ObjC

Hi Paul, I installed the library and the .mid files and .sf2 files Works like a charm once I understood that not all .mid files play with all sound files. Nice to have "boing" back... It feels like a miracle, kind of, to me. And I imagine you felt the same. I am _almost_ tempted to look into ObjC an...
by bn
Wed Apr 25, 2018 6:57 am
Forum: LiveCode Builder
Topic: FFI Help wrapping ObjC
Replies: 16
Views: 3540

Re: FFI Help wrapping ObjC

Paul,

thank you for posting this. This is really cool, instructive and useful.

Kind regards
Bernd
by bn
Sat Apr 07, 2018 9:14 am
Forum: Talking LiveCode
Topic: background processing and mergBLE
Replies: 16
Views: 2131

Re: background processing and mergBLE

Hi Doug, unfortunately I can not help with mergBLE but maybe this can help you. Monte is not regularly scanning the Forum. But as you might have found out already he has a web-site dedicated to the merg externals. http://mergext.com/home/mergble/ I suggest that you contact him directly via http://go...
by bn
Wed Mar 07, 2018 8:06 pm
Forum: Feature Requests
Topic: A darker Background editor ! Or more colors to the existing one.
Replies: 83
Views: 14833

Re: A darker Background editor ! Or more colors to the existing one.

Hi terlibi, I made this little stack that you put into your plugins folder in "My Livecode" i.e. the user provided plugins I suggest to remove the other one. Then do as bogs said: when livecode is started go to the development menu -> plugins, choose settings. make the plugin start at startup, make ...
by bn
Wed Mar 07, 2018 2:36 pm
Forum: Feature Requests
Topic: A darker Background editor ! Or more colors to the existing one.
Replies: 83
Views: 14833

Re: A darker Background editor ! Or more colors to the existing one.

HI bogs, terlibi, if you set your plugin up as bogs suggested so it get the "revEditScript" message then you could try in the script of your stack script as only scripts (no startUp handler) on revEditScript if not (the optionKey is down) then send "doInverse" to me in 300 milliseconds -- give edito...
by bn
Mon Feb 05, 2018 8:32 pm
Forum: Bug Triage
Topic: widget format switched
Replies: 8
Views: 2291

Re: widget format switched

here is a stack that helps a bit with the problem of recompiling when switching between LC 8 and LC9 DP11 It hacks the IDE on the fly, not permanently. If you close LC the script is hack gone. It works both ways, it forces a recompile on LC 8 for LC 9 compiled community widgets and also when working...

Go to advanced search