Search found 843 matches
- Sat Mar 04, 2017 9:47 am
- Forum: Talking LiveCode
- Topic: Scripting Style - Backscript or start using
- Replies: 5
- Views: 3601
Scripting Style - Backscript or start using
Hi, I am in the process of refactoring one of my projects and wish to reduce the number of handlers in my main stack to aid clarity. A number of handlers deal with a single aspect (report generation) so I have moved these to a new sub-stack. I have use a start using mysubstack command in the main st...
- Fri Mar 03, 2017 7:45 pm
- Forum: Talking LiveCode
- Topic: Odd colours following Paste (Mac)
- Replies: 2
- Views: 2213
Re: Odd colours following Paste (Mac)
Hi Craig, Sorry for being confusing. What I meant was that if I copy a code snip from the IDE and paste it into Apple's TextEdit application the colours are changed. Its as if they have been turned up to maximum with the amber becoming yellow, subdued green getting bright and so on. The screen shot ...
- Fri Mar 03, 2017 7:32 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to stop a stack moving on screen following a resize
- Replies: 5
- Views: 3363
Re: How to stop a stack moving on screen following a resize
Hi All,
Thanks for all your inputs. I now realise that I fell into the trap of just looking at the properties listed in the stack inspector, I'm off to fashion a pointy hat with a "D" on it and will go and stand in the corner.
Skids
Thanks for all your inputs. I now realise that I fell into the trap of just looking at the properties listed in the stack inspector, I'm off to fashion a pointy hat with a "D" on it and will go and stand in the corner.
Skids
- Fri Mar 03, 2017 9:45 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to stop a stack moving on screen following a resize
- Replies: 5
- Views: 3363
How to stop a stack moving on screen following a resize
It was late and I was caught out by how Livecode works when changing the width of a stack in code. I thought it would be simple but although the button resize worked the stack jumped on the screen which looked most odd. So I though I would post my solution in the hope that it may be helpful to other...
- Wed Mar 01, 2017 4:47 pm
- Forum: Talking LiveCode
- Topic: Odd colours following Paste (Mac)
- Replies: 2
- Views: 2213
Odd colours following Paste (Mac)
When I copy a section of code from the IDE and paste it into another app the text colours and not being honoured. The text in the screen shot, attached, shows the feature where the top portion is a direct copy and paste and the lower portion is a copy from a PDF opened in Preview. While I can live w...
- Fri Feb 24, 2017 10:27 am
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Thanks saved me a task!
- Thu Feb 23, 2017 6:29 pm
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Thanks both : re IT, I've not checked but can its value be viewed in the debugger?
S
S
- Thu Feb 23, 2017 2:27 pm
- Forum: IDE Contributors
- Topic: Dictionary rewrite - thoughts, please
- Replies: 111
- Views: 298703
Re: Dictionary rewrite - thoughts, please
Excellent work! In my opinion Bernd's Dictionary Splitter Stack is so much clearer than the standard Dictionary supplied with LC8. I think it would be useful if it were possible to add example use cases either entered by the end user or from a community database, these would have to be carried over ...
- Thu Feb 23, 2017 10:03 am
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Hi Thierry, Thank you for your refactored version of my script. In it you have used constructs that I did not know were allowed e.g. put (pGroupName is empty) into ignoreInGroup and your use of the filter command to reduce the list size is very elegant. My only concern is the use of the single line ...
- Wed Feb 22, 2017 8:33 am
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Here is the function I ended up with : Function GetControlScripts pLongIDCardOrGroup, pStackName, pCardName, pGroupName # Function that extracts the scripts from the buttons on the stack/card/group passed in. put empty into tText if pStackName is empty then return False else Put "***! Stack:" & pSta...
- Wed Feb 22, 2017 8:11 am
- Forum: Talking LiveCode
- Topic: Datagrid Table - How to read the row order
- Replies: 2
- Views: 1987
Re: Datagrid Table - How to read the row order
A folksy wimp - whatever next ?!
Does seem to be an omission from the API - user is sorting on column "fred" but I'm not going to tell you in which direction. (Do you feel lucky???)
dgtext rules
Simon K
Does seem to be an omission from the API - user is sorting on column "fred" but I'm not going to tell you in which direction. (Do you feel lucky???)
dgtext rules
Simon K
- Wed Feb 22, 2017 8:03 am
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Because I was wrong! excuses excuses...... late at night mind set........ need coffee etc etcI am still not sure why you still say that the variable cannot be, er "variable",
Thanks again for all the help,
best wishes
Simon K
- Tue Feb 21, 2017 10:18 am
- Forum: Talking LiveCode
- Topic: Datagrid Table - How to read the row order
- Replies: 2
- Views: 1987
Datagrid Table - How to read the row order
Hi, I have been reading the Datagrid API but still seek enlightenment. I have a standard datagrid table that allows the user to sort the rows by selecting the column headings. I wish to extract the data in the same order as it is being displayed. The simple answer is to use the dgText[true] command ...
- Mon Feb 20, 2017 8:14 am
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Hi, thanks for all your replies and the confirmation that it is not possible to use a variable in the way I hoped. I have included a copy of one of my functions which I accept needs refactoring with some of the ideas given above; specifically extracting the type of control, button or field from the ...
- Sun Feb 19, 2017 5:52 pm
- Forum: Talking LiveCode
- Topic: Building a script statement
- Replies: 17
- Views: 9922
Re: Building a script statement
Hi Craig, I'm sorry but it is not quite what I was after. My actual functions are quite complex and one is the twin of the other except that one refers to buttons and the other to fields. So my aim was to merge the two functions into one and get rid of a load of code. So for example is it possible t...