Search found 85 matches

by PBH
Sat Jul 18, 2015 3:17 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: mouseMove before mouseDown [FIXED, hilite and/or drag object
Replies: 6
Views: 1727

Re: mouseMove before mouseDown

The mouseMove command seems to be blocking the mouseUp, I tested LC 5.5 too and it causes the same problem, so probably a long standing issue. In a simple experiment I found that I could get the mouseUp message to fire reliably by adding an 'exit mouseMove' step to the end of the mouseMove handler, ...
by PBH
Fri Apr 03, 2015 8:13 pm
Forum: LiveCode Builder
Topic: Handlers - Optional parameters syntax
Replies: 4
Views: 1226

Re: Handlers - Optional parameters syntax

AFAIK all parameters passed to a handler can be optional, but what is important, is the order that they are passed. If your handler requires a particular parameter then you just need to handle the case where it may be empty. Here's a couple of button scripts to demonstrate: # Place in a Button Scrip...
by PBH
Fri Apr 03, 2015 2:21 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Maybe this is a noob question...
Replies: 7
Views: 1391

Re: Maybe this is a noob question...

If you haven't cracked this yet, it looks to me like you were very close with your original script. I just made a couple of small changes and this works fine as far as I can see… #create stack create invisible stack pNewStackName put it into tTheNewStack put the screenMouseLoc into gMousePos set the...
by PBH
Sun Jan 25, 2015 5:04 am
Forum: Raspberry Pi
Topic: Arduino?
Replies: 7
Views: 3049

Re: Arduino?

Arduino is not a computer, it's a microcontroller ; on the contrary raspberry Pi is a computer: there is a huge difference. You can use livecode to send instructions to arduino board, and Arduino will execute the instructions. You can send and receive data from Arduino, but it is not a pc where you...
by PBH
Thu Jan 22, 2015 5:23 am
Forum: Raspberry Pi
Topic: Arduino?
Replies: 7
Views: 3049

Re: Arduino?

Anyone here interested in grabbing the LiveCode source and seeing what would be needed to compile it for Arduino's CPU? AFAIK the Ardiuno is not capable of running LC, or even LC apps. The only version I know of that does have a Linux type OS installed is the Ardiono Yun and I believe it's no match...
by PBH
Fri Jan 16, 2015 3:09 am
Forum: Raspberry Pi
Topic: Arduino?
Replies: 7
Views: 3049

Re: Arduino?

You can't run LC on an Arduino, although I see the Yun has Linux running on it, so that may be a possibility, however, you can communicate with Arduino. I'm currently working on a project to build an iOS/Android/Mac control centre for my Mitsubishi HVAC unit, it's very much in the early stages right...
by PBH
Fri Jan 16, 2015 2:05 am
Forum: Talking LiveCode
Topic: Can I sell programs made with LC Community edition?
Replies: 3
Views: 867

Re: Can I sell programs made with LC Community edition?

Can I? Yes you can. What does it means "it's open source"? You must provide the original source code (or at least a reliable link to it), this includes all stacks and all code intact that was used to build the standalone .exe file, just check the LC Community licence carefully. Somebody can see my ...
by PBH
Thu Jan 01, 2015 6:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building Standalone Application
Replies: 10
Views: 2303

Re: Building Standalone Application

That's great news, Happy LiveCoding New Year! :D

Paul
by PBH
Thu Jan 01, 2015 2:26 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building Standalone Application
Replies: 10
Views: 2303

Re: Building Standalone Application

Judy, that should be easy to sort… Click the "Add Entry" button, answer "4.3 or later" at the next prompt, then in the window that opens next navigate to your main Applications folder and click on the Xcode.app application to highlight it then choose the "Open" button at the bottom of the window. No...
by PBH
Thu Jan 01, 2015 1:41 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Building Standalone Application
Replies: 10
Views: 2303

Re: Building Standalone Application

Just tested this and it works fine here: Mac OS X 10.10.1 - LC7.0.1 - Xcode 6.1.1 Go to LiveCode > Preferences > Mobile Support, if you see a red square to the right of "Available Device SDKs" then you just need to click on "Add Entry" and locate your copy of Xcode. If you already have a bright gree...
by PBH
Tue Aug 26, 2014 3:35 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Preferences?
Replies: 2
Views: 701

Re: Preferences?

Larry, On a Mac you've probably noticed that the menus change depending on which window is active, so if your Stack window is active, look under the "Development" menu and check the "Script Debug Mode", or if your Script Editor window is active, look under the "Debug" menu to check the "Script Debug...
by PBH
Mon Jul 21, 2014 1:58 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Dropping coloured text on a field
Replies: 7
Views: 1686

Re: Dropping coloured text on a field

Andy, This works for me for dragging coloured text from a PDF into a LC field… --Field Script on dragEnter if the dragData["rtf"] is not empty then set the dragAction to "copy" -- Shows the drag copy cursor end if end dragEnter on dragDrop if the dragData["rtf"] is not empty then set the rtfText of ...
by PBH
Thu Jun 19, 2014 2:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Find/Replace removes text style
Replies: 2
Views: 747

Re: Find/Replace removes text style

Sefro, There is a note about this behaviour in the dictionary, so it's not seen as a bug. Here's the note… Important! You can use the replace command on a field, but doing so removes any formatting (fonts, styles, colors, and sizes) in the field. To work around this limitation, use the field's htmlT...
by PBH
Fri May 02, 2014 5:35 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Make Icon in Button appear to the left of text?
Replies: 6
Views: 2328

Re: Make Icon in Button appear to the left of text?

Hi Chris, If I understand this correct, it looks like this should be scriptable fairly easily, it just involves a little simple maths with the margin values. Tried this in a 300 px wide button… Apply the icon & set the label for the button then in the Property Inspector set the text to left align an...

Go to advanced search