Search found 77 matches

by FredBeck
Thu Apr 16, 2015 8:44 am
Forum: Converting to LiveCode
Topic: Function polymorphism
Replies: 4
Views: 2330

Re: Function polymorphism

Hi Craig, thanks for your response. Well point 4 was written on the tip of my nose. I'm well aware of behaviors and I use them a lot. Until 5 minutes ago, I didn't know you could set the behavior of a stack :) It doesn't show in the property inspector so I figured it was only for controls... I shoul...
by FredBeck
Wed Apr 15, 2015 10:40 am
Forum: Converting to LiveCode
Topic: Function polymorphism
Replies: 4
Views: 2330

Function polymorphism

Hi, I'm converting a C# library, which is pure OOP. So in this lib there is a constructor with a parameter, that instantiates the correct object. In this particular case the object just contains one or two simple math functions. I came up with four ways of doing this. 1) "OOP in Livecode" style, ver...
by FredBeck
Fri Mar 13, 2015 11:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Array index for object?
Replies: 4
Views: 829

Re: Array index for object?

You just need to store the id of the fields in an array when you create it. Usually I store this array in a custom property of the card or group that contains the objects but you can put it into a global variable if you prefer. in the card script : global gCCard command createCCardField local tIndex...
by FredBeck
Sun Mar 01, 2015 12:40 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 1565

Re: resizeStack and resizeControl

Ok... I did try it but passing the message in the end, and that's what clogged the pipe. If you don't pass it, the geometry manager doesn't work.
So I won't touch the geometry manager ever again I promise :) Thanks again!
by FredBeck
Sat Feb 28, 2015 11:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 1565

Re: resizeStack and resizeControl

Thanks all. Jacque, I forgot to mention I'm on windows, so no liveResizing. It's the default behavior on windows. magice, I tried this of course, but it's exactly the same. Does it work on your side? Craig, at least I'm not crazy! Thanks for your help. I hope someone will have some insight on Monday...
by FredBeck
Sat Feb 28, 2015 4:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 1565

Re: resizeStack and resizeControl

The divider is fine. Did you try resizing the width of the stack? The geometry manager jams. If the divider works, it means that the resizeControl handlers et seq are doing their job properly. However, when the rectangle is set from either the resizeStack handler or the geometry manager, it is only ...
by FredBeck
Sat Feb 28, 2015 3:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 1565

resizeStack and resizeControl

Hi! How did I manage to break the resizeStack message? I've been trying at this for three hours now and I can't see an inch further.Obviuosly I did something wrong that blocks resizeStack and geometry manager. If someone could take a look at this stack... The resizeControl calls work ok on their own...
by FredBeck
Tue Feb 24, 2015 8:20 pm
Forum: Windows
Topic: Forbid multiple instances of the same app
Replies: 2
Views: 1014

Re: Forbid multiple instances of the same app

oooh! :)) Thanks!
by FredBeck
Tue Feb 24, 2015 7:49 pm
Forum: Windows
Topic: Forbid multiple instances of the same app
Replies: 2
Views: 1014

Forbid multiple instances of the same app

Hi!
Sorry it may be a greenhorn's question, but I don't know where to look for that.
How can I check if the app is already running?
by FredBeck
Wed Feb 18, 2015 5:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Colorize field wile typing
Replies: 2
Views: 495

Re: Colorize field wile typing

Yes I've done that. Just wanted to know if it was the correct thing to do.
Thanks Craig!
by FredBeck
Wed Feb 18, 2015 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Colorize field wile typing
Replies: 2
Views: 495

Colorize field wile typing

Hi,
I'd like to colorize a field while typing to check the syntax, like the script editor.
When I set the htmlText, the cursor respawns at char 1, idem with the scroll.
How do you guys do it? Do I need to reclick and rescroll after I'm done, or is there a special trick to it?
Fred.
by FredBeck
Sat Feb 14, 2015 2:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Searching but not finding - Programmatically create tabs
Replies: 6
Views: 945

Re: Not searching enough but still finding...

Where on earth have you been looking? :) From the user's manual : To create the individual menu items that will appear in the menu, set the button's text property to the menu's contents, one menu item per line. You can either set this property in a handler, or fill in the box labeled "Menu items" on...
by FredBeck
Sun Feb 08, 2015 4:06 am
Forum: Talking LiveCode
Topic: NumberFormat and rounding
Replies: 3
Views: 1003

Re: NumberFormat and rounding

What we need is a statTrunc fonction :)
by FredBeck
Thu Feb 05, 2015 10:03 am
Forum: Creating Games
Topic: Pentominoes
Replies: 19
Views: 6325

Re: Pentominoes

First of all; I didn't have a problem with rotation beyond the slight annoyance that I had to ensure every non-squre image is enclosed in a suqare, transparent frame. I think that's very annoying! Especially if you can't control precisely the alpha channel :) I don't see how the images being in dif...
by FredBeck
Wed Feb 04, 2015 10:14 am
Forum: Creating Games
Topic: Pentominoes
Replies: 19
Views: 6325

Re: Pentominoes

Hi Richmond, If you use a button with an icon instead of the image itself you won't have that rotation problem as the icon is automatically centred, however you need to resize and reposition the button. In the button's script : on rotateMyIcon pAngle lock screen put the long id of image ID (the icon...

Go to advanced search