Search found 24 matches

by dpatterson
Wed Jan 25, 2017 8:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: DataGrid LayoutControl message being sent many, many times
Replies: 1
Views: 606

DataGrid LayoutControl message being sent many, many times

In working with the DataGrid and trying to understand the various messages, I observed what seems to me to be very odd behavior and I'm hoping someone can explain it to me. I added some logging to the LayoutControl message handler so that I could observe the order and content of the messages. Specif...
by dpatterson
Sun Jan 22, 2017 6:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How do I remove a custom column behavior
Replies: 1
Views: 521

How do I remove a custom column behavior

Hello again. Making progress. Yay! Along the way to creating a default column behavior for a datagrid, I created a custom behavior for a single column in that datagrid. Now that I have the default behavior working, I want to remove the column-specific behavior. Seems like it should be simple (and it...
by dpatterson
Thu Jan 19, 2017 8:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: In what context does a backscript run?
Replies: 2
Views: 655

In what context does a backscript run?

I am attempting to place a card script into back.
It appears that it when it is called, it is no longer in the context of the card that owns it.

So, the question is: What is the context?

TIA,
Dave
by dpatterson
Thu Jan 19, 2017 7:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Best practices - Where to put update code
Replies: 5
Views: 923

Re: Best practices - Where to put update code

Klaus wrote:Hi Dave,
since this is a question about the message path in Livecode, here a very good article about this topic, very good read:
(URL prevented due to account restrictions)
Best

Klaus
Klaus, Great article. Thanks for the link.
by dpatterson
Thu Jan 19, 2017 6:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Best practices - Where to put update code
Replies: 5
Views: 923

Re: Best practices - Where to put update code

Lots to think about.
LiveCode is very different from any of the other languages I've worked with.
Thanks for the insights.
by dpatterson
Wed Jan 18, 2017 11:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Best practices - Where to put update code
Replies: 5
Views: 923

Best practices - Where to put update code

I'm making progress on my first LiveCode project and have a question regarding best practices when it comes to where code should be located. I currently have the following code: on mouseUp lock screen put empty into lineNo put the dgHiLitedLines of group selectComponentGrid into rowNumbers put the d...
by dpatterson
Wed Jan 18, 2017 11:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How can I edit a field in an arbitrary row in a DataGrid
Replies: 2
Views: 656

Re: How can I edit a field in an arbitrary row in a DataGrid

Sri, Thanks! I found that particular syntax in a post somewhere. It did seem a bit odd to me, but... Oddly enough, while that one change did open a field for editing, it was not in the correct row. A bit of experimentation later and I wound up with the code below which seems to work as desired (in c...
by dpatterson
Wed Jan 18, 2017 8:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How can I edit a field in an arbitrary row in a DataGrid
Replies: 2
Views: 656

How can I edit a field in an arbitrary row in a DataGrid

First post here. First, a quick bit about me. I'm new to LiveCode, but have been doing software architecture, design, and development professionally for well over 30 years so I have a pretty good understanding of the concepts. :) I'm working on a LiveCode project that displays a modal with a DataGri...
by dpatterson
Wed Jan 18, 2017 6:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: encrypted by php does not decrypt in lc
Replies: 8
Views: 2050

Re: encrypted by php does not decrypt in lc

If I recall correctly, the encryption functions can return binary strings.
Don't know if this is the actual cause, but you might try adding the binary option to the PHP fopen() statement.
$myfile = fopen($filename, "wb") or die("Unable to open file!");

Go to advanced search