Search found 3253 matches

by bn
Mon Oct 22, 2018 3:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1586

Re: Code Tidiness

No reserved name starts with a "t".
OK, that was not correct, make that

No reserved name starts with a "t" except those that start with a "t". :)

Kind regards
Bernd
by bn
Mon Oct 22, 2018 2:50 pm
Forum: Community Projects
Topic: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community
Replies: 8
Views: 1190

Re: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community

I don't know if this is related:

https://github.com/livecode/livecode/pull/6753

however if you want to see the code GitHub throws an error. At least Alex is doing something to Windows HiRes problem.

Kind regards

Bernd

Alex is working on bug
https://quality.livecode.com/show_bug.cgi?id=19704
by bn
Mon Oct 22, 2018 1:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1586

Re: Code Tidiness

Hi A1, have a look at this very instructive introduction to scripting style conventions by Richard Gaskin http://www.fourthworld.com/embassy/articles/scriptstyle.html It will make your life easier if you follow those suggestions. E.g. prepend your variables depending on scope. You use global variabl...
by bn
Mon Oct 15, 2018 11:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1586

Re: Interacting with Groups

Hi A1, the reason why the groups you addressed did not work is the that when you delete an entry you delete all the fields of the group but do not delete the group itself. This leads to a lot of groups with the same name. When 2 controls have the same name and you address that control by name it wil...
by bn
Mon Oct 15, 2018 10:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1586

Re: Interacting with Groups

Hi A1, I made a little stack that lets you explore a grouped field when moving the group, setting the rect of the group, lockLoc - ing the group etc. Also it lets you set the textSize of a group which will only affect the field if it has not set a textSize set of its own. Only then it inherits the t...
by bn
Sun Oct 14, 2018 9:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Code Tidiness
Replies: 17
Views: 1586

Re: Interacting with Groups

I don't quite understand what exactly you are trying to do but an unlocked group will always fit the content of the group (+ margins of the group) If you want to cut off some of the group's content then set the lockLoc of the group to true. If you just change the top the group will move down/up so y...
by bn
Sun Oct 07, 2018 11:58 pm
Forum: Talking LiveCode
Topic: Unexpected result when calling a handler in a group script
Replies: 17
Views: 1612

Re: Unexpected result when calling a handler in a group script

I think this is a simple chunking error. "me" works for these properties Command DestinationVolume return the rect of field "Destination" of me return the owner of me return the rect of control 1 of me return the name of control 1 of me return the number of controls of me end DestinationVolume comme...
by bn
Tue Sep 18, 2018 2:28 pm
Forum: Bug Triage
Topic: Gradient Property Palette Bug
Replies: 6
Views: 899

Re: Gradient Property Palette Bug

Hi Al, In the screenshot, Why the Gradient palette shows two Ok buttons while "Mirror" and "Wrap" disappeared? because you opened two palettes, Properties Inspector does not like this. I have seen it before and reproduced it just now. PI assumes you close a palette once you are done with the setting...
by bn
Tue Sep 18, 2018 12:22 pm
Forum: Bug Triage
Topic: Gradient Property Palette Bug
Replies: 6
Views: 899

Re: Gradient Property Palette Bug

Hi Al, looging a little more into this the it does not become clear what happens but you can tell when. I made a little stack that tracks the "colorOverlay" of the templateGraphic every 200 milliseconds trackTemplateGraphicOverlay.livecode.zip when starting LC 9.0.1 open this stack and start watchin...
by bn
Tue Sep 18, 2018 9:49 am
Forum: Bug Triage
Topic: Gradient Property Palette Bug
Replies: 6
Views: 899

Re: Gradient Property Palette Bug

Hi Al, when you import you use the templateGraphic in button "bz4" you use the templateGraphic without resetting it. if you reset the templateGraphic before using it I can not see your problem anymore. you can test the templateGraphic from the message box: put the colorOverlay["color"] of the templa...
by bn
Thu Aug 23, 2018 9:11 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Non sorted tree view display
Replies: 10
Views: 1379

Re: Non sorted tree view display

here is a cleaned up version of the first stack I posted.
Additionally there was a small glitch in there too.

Kind regards
Bernd
setOrderedArray_2.livecode.zip
(6.32 KiB) Downloaded 47 times
by bn
Wed Aug 22, 2018 9:12 pm
Forum: LiveCode Builder
Topic: Timer not working
Replies: 3
Views: 763

Re: Timer not working

Greg, private variable mTester as Boolean private variable mNumText as String public handler OnMouseDown() variable tNum as Number put "1" into mNumText put mNumText parsed as number into tNum add 1 to tNum put tNum formatted as string into mNumText put not mTester into mTester redraw all schedule t...
by bn
Wed Aug 22, 2018 9:52 am
Forum: LiveCode Builder
Topic: Built-in properties
Replies: 13
Views: 1681

Re: Built-in properties

I've looked at the source, and the font is a pointer to the current effective font of the widget to include the textFont, textSize, and textStyle properties. There does not appear to be a way to individually address any of those properties from inside the widget. You could use "execute script" I su...
by bn
Tue Aug 21, 2018 4:50 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Non sorted tree view display
Replies: 10
Views: 1379

Re: Non sorted tree view display

Okay, I gave it another try: This is a horrible hack I take a list of what I want to display as a "menuList" i.e. a list that keeps the original order of the list. The problem in just passing this list as an array with the lines of the list as keys is that arrays beyond 9 keys are not ordered. TreeV...
by bn
Mon Aug 20, 2018 1:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Non sorted tree view display
Replies: 10
Views: 1379

Re: Non sorted tree view display

James, I don't think the slide was a fudge but it was from a version that was more advanced than what was covered in the video. Elanor did say that she wanted to put the modified version up on the extension store once it is finished. And for a menulist, that is how she called the modified version, a...

Go to advanced search