Re: Unexpected behavior in iOS app

2011-05-11 Thread Terry Vogelaar
Hi Jacque, Eureka! That helped. There was indeed a problem with my actual script. When I wrote this question, I made some changes to shorten it somewhat. That actually solved it. So there is nothing wrong with the script I showed... For the ugly option menus, I found a workaround. I thought I c

Re: Datagrid Column Resizing Message

2011-05-11 Thread Pete
I think, but not sure, that the layoutControl handler is what you want, although its sole parameter is a control rectangle so I'm not sure how you would determine what column got resized. Sorry, haven't done anything with thiss but maybe you can find out more at http://lessons.runrev.com/spaces/le

Re: Menu Buttons

2011-05-11 Thread Pete
Sure, I understand I can check things in menuPick. I guess it comes down to what's the behavior that works most of the time for most people, making that the default, and providing a way to get round the default if it's not what you want. In this very personal sample of one (me), I have yet to co

Datagrid Column Resizing Message

2011-05-11 Thread Ray Horsley
Does anybody know what message is sent, and where I can trap for it, when a user manually resizes a column by dragging the border between column headings with the double arrow cursor? Thanks, Ray ___ use-livecode mailing list use-livecode@list

Re: Menu Buttons

2011-05-11 Thread Mark Wieder
Pete- Wednesday, May 11, 2011, 3:26:28 PM, you wrote: > Of course, I'm definitely biased because I'm relying on the current behavior > of menuHistory in some of my code. OTOH, it's easy to check for the current value in the menuPick handler and exit if it's the same. The reason for bug #9301 i

Re: Test stack for Gif animation and Background Patterns

2011-05-11 Thread Alejandro Tejada
Hi Richard, Richard Gaskin wrote: > > Mark Wieder wrote: >> Alejandro- >> FWIW, on Fedora Core 13 it ran flawlessly: roughly 20% cpu usage with >> no apparent slowdown and an insignificant hit on memory usage. This on >> a six-month old 2.6GHz quad-core Thinkpad with 4G memory. > > Same good re

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
But why bother? specialfolderpath("Home") gives you the current user profile. So: put the defaultFolder into theOldDefaultPath put specialfolderpath("Home") & "\Application Data\Thunderbird\Profiles\" into \ theTbirdProfilePath if there is a folder theTbirdProfilePath then set the defaultFold

Re: Menu Buttons

2011-05-11 Thread Bob Sneidar
To play the bad guy's advocate, why then does it work differently when you select the same thing in an option menu? The *bug* is that the two methods produce different results. But we are straining at gnats here. Bob On May 11, 2011, at 3:26 PM, Pete wrote: > Hi Mark, > Thanks for the update

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
Just found this On *Windows Vista/XP/2000*, the path is usually %AppData% \Thunderbird\Profiles\.default\, where is a random string of 8 characters. Just browse to C:\Documents and Settings\[User Name]\Application Data\Thund

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
Assuming you want to do things the hard way and shell it out, %USERPROFILE% should get you to the current user profile, right? Bob On May 11, 2011, at 3:24 PM, Mike Bonner wrote: > Ah k, if the username is the issue, the system global var (at least on win > 7, cant check on xp) is $USERNAME an

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
You can use specialfolderpath("home") in windows or mac to get the users home folder (known as the profile in Windows). Now you only have 2 possible places it can be depending on Win7 or XP. Bob On May 11, 2011, at 3:13 PM, Bill Vlahos wrote: > It is a Thunderbird pref file "prefs.js". XP s

Re: Menu Buttons

2011-05-11 Thread Pete
Hi Mark, Thanks for the update. I guess it depends on the definition of a bug but to be honest, I think the way this works currently is what I'd expect - no menuPick because nothing new got picked. If processing is needed even though nothing changed, you can send a menuPick message, that way there

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
Ah k, if the username is the issue, the system global var (at least on win 7, cant check on xp) is $USERNAME and should contain the current username. Might make it possible to hit it directly using the system global. On Wed, May 11, 2011 at 4:14 PM, Bill Vlahos wrote: > Mike, > > Thanks. I c

Re: Menu Buttons

2011-05-11 Thread Bob Sneidar
Ahah! Good shew Sherlock! Bob On May 11, 2011, at 2:49 PM, Mark Wieder wrote: > Pete- > > Wednesday, May 11, 2011, 9:44:31 AM, you wrote: > >> That's strange because that's not what I'm seeing - no wonder there's >> confusion! Here's what I did to test. > >> Put an option menu on a card wi

Re: Windows hard disk search

2011-05-11 Thread Bill Vlahos
Mike, Thanks. I can narrow it down. This is very helpful. Bill Vlahos On May 11, 2011, at 3:11 PM, Mike Bonner wrote: > If you can narrow down the places to search, you can do this with a shell > command. You could technically do the whole drive, but it would be way too > slow to be worthwhile

Re: DLL Externals and LiveCode - what's a handle and how do I use it?

2011-05-11 Thread Mark Wieder
Graham- Following on the heels of Bob's description of what a handle is, I think the correct question in this case might better be "how can I use a handle in LiveCode?", and there your options are probably limited. The only handle in the Windows sense that LiveCode gives you access to is the windo

Re: Windows hard disk search

2011-05-11 Thread Bill Vlahos
It is a Thunderbird pref file "prefs.js". XP stores it differently than Win7 but in both cases the user's name is part of the path so I can't program for that. If I search the drive I will get the path to all the files and can validate the "right" one based on having the name "Thunderbird" in th

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
If you can narrow down the places to search, you can do this with a shell command. You could technically do the whole drive, but it would be way too slow to be worthwhile, but if you only have to search a small subset of the drive it shouldn't be too bad. set the defaultfolder to "c:\where\to\sta

Re: Unexpected behavior in iOS app

2011-05-11 Thread J. Landman Gay
On 5/11/11 1:17 AM, Terry Vogelaar wrote: I'm running into a few problems building an iOS app. The most important one is this one. I want it to retrieve data from an 18MB text file, because I want it to work when the device is not connected to the internet. So I tried this: on preopenstack

Re: DLL Externals and LiveCode - what's a handle and how do I use it?

2011-05-11 Thread Alejandro Tejada
Hi Graham, Some years ago, (2005) Alex Tweedly published a step by step guide to compile externals with Dev-C++ Back then, I posted this stack: http://andregarzia.on-rev.com/alejandro/stacks/Tweedly_dll.zip Recently, Scott McDonald published a Pascal External SDK: http://www.forums.runrev.com/php

Re: Menu Buttons

2011-05-11 Thread Mark Wieder
Bob- Wednesday, May 11, 2011, 8:30:33 AM, you wrote: > I checked this yesterday with 4.6.1. If I issue menuhistory from > the message window to a button with the current choice. menupick > does NOT get sent. I know this because I put a breakpoint at the > start of the menupick handler in that but

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
I wouldn't try to search for it if I were you. Just check for the OS and conditionally set the path accordingly. If it could be ANYWHERE, than that begs the question, what is it and who put it there? Bob On May 11, 2011, at 2:14 PM, Bill Vlahos wrote: > I want to modify a prefs file on XP an

Re: Menu Buttons

2011-05-11 Thread Mark Wieder
Pete- Wednesday, May 11, 2011, 9:44:31 AM, you wrote: > That's strange because that's not what I'm seeing - no wonder there's > confusion! Here's what I did to test. > Put an option menu on a card with the default choices. I just reopened bug #9301. It's fixed for pulldown and popup menu butto

Windows hard disk search

2011-05-11 Thread Bill Vlahos
I want to modify a prefs file on XP and Windows 7 computers. Since the file could be in different places I can't count on knowing the path to it. How do I execute a search for the file by name in LC and get the path to it? The file would only be on the user's hard disk not on any mounted servers

Re: Menu Buttons

2011-05-11 Thread Pete
Yep, I do the same thing, it prevents needless database updating when the value hasn't changed. Just trying to figure out why you and I see the behavior where setting the menuHistory to its existing values does not trigger menuPick but it does for Mark. Pete Molly's Revenge

Re: Menu Buttons

2011-05-11 Thread Bob Sneidar
Well what I do, as I said in a previous post, is I save the last successful choice in a property in the menu. Next time around I get the current selection and compare it to the last choice. If it's the same I exit menuPick. If it's not, then I process the handler, update the property, and pass m

Re: DLL Externals and LiveCode - what's a handle and how do I use it?

2011-05-11 Thread Bob Sneidar
Eeek. A handle is a pointer to a pointer. As I understand it, with *modern* OS memory management, stuff is moved around in memory a lot, to make room for contiguous blocks of free memory, so just using a memory address won't do. The OS might move something and your app wouldn't know it till it t

Re: IDE 'Reset'

2011-05-11 Thread J. Landman Gay
On 5/11/11 10:22 AM, David Glass wrote: Yes, there's nothing 'dangerous' or license-violating about it, but it seems analogous to writing the same block of code a bunch of times when a loop would be better. And it isn't really extensible. How many duplicates is enough? Almost guaranteed it's goi

DLL Externals and LiveCode - what's a handle and how do I use it?

2011-05-11 Thread Graham Samuel
I am still struggling with the most basic concepts of externals for LC Windows apps, with the intention of using a third-party DLL to enhance the functionality of my current project. I have had some help from Ken Ray and others but I remain deeply clueless. Currently I'm looking at a DLL which h

More strangeness due to System variable names?

2011-05-11 Thread Pete
I've just experienced another instance of strange IDE behavior which seems related to the problem discussed here recently regarding system variable names with slashes in them. Symptoms are not exactly the same but similar in that I have problems opening a script editor window, message box commands

Re: Menu Buttons

2011-05-11 Thread Pete
That's strange because that's not what I'm seeing - no wonder there's confusion! Here's what I did to test. Put an option menu on a card with the default choices. Put a menuPick handler on the option menu: on menuPIck pitemname answer information pitemname end menuPick Put a button on the

Re: Menu Buttons

2011-05-11 Thread David Brooks
Thanks for the input and suggestions, but the set menuhistory .. strategy works to accomplish the task. To deal with the problem of once set-never forget, I set the value to 99 with a second set menuhistory line in my list and had my handler do nothing with the choice was blank. So,

Re: IDE 'Reset'

2011-05-11 Thread Richard Gaskin
David Glass wrote: Yes, there's nothing 'dangerous' or license-violating about it, but it seems analogous to writing the same block of code a bunch of times when a loop would be better. Or quite possibly the other way around. Think about all of the things that would need to be taken into acc

Re: IDE 'Reset'

2011-05-11 Thread Mark Wieder
David- Wednesday, May 11, 2011, 8:02:52 AM, you wrote: > How do I get access to this? E-mail customer service directly? Er... I think so. I don't remember the new procedure, but I think that's right. -- -Mark Wieder mwie...@ahsoftware.net ___ use

Re: IDE 'Reset'

2011-05-11 Thread David Glass
Joined. Thanks for the link On 05/11/2011 6:50 AM, Richard Gaskin wrote: The Rev Interoperability Project has more than a hundred members, many of whom contribute ideas and code for the benefit of the community as a whole. Membership is open to all who are interested:

Re: Menu Buttons

2011-05-11 Thread Bob Sneidar
I checked this yesterday with 4.6.1. If I issue menuhistory from the message window to a button with the current choice. menupick does NOT get sent. I know this because I put a breakpoint at the start of the menupick handler in that button and nothing happened. However, if I physically select th

Re: IDE 'Reset'

2011-05-11 Thread David Glass
Yes, there's nothing 'dangerous' or license-violating about it, but it seems analogous to writing the same block of code a bunch of times when a loop would be better. And it isn't really extensible. How many duplicates is enough? Almost guaranteed it's going to be one more than I currently h

Re: IDE 'Reset'

2011-05-11 Thread David Glass
How do I get access to this? E-mail customer service directly? On 05/10/2011 11:15 PM, Mark Wieder wrote: David- This is one of the oldest and most annoying bugs in the bug database (bug #1061 dating from 2003 and rev 2.1.2). The last comment from the rev team is from Mark Waddingham in 2004..

Re: IDE 'Reset'

2011-05-11 Thread Richard Gaskin
Tereza Snyder wrote: > On May 11, 2011, at 8:50 AM, Richard Gaskin wrote: > >> * gAppStack is a great way for everything in your project to know >> which stack is the mainstack of the standalone, useful for all >> sorts of things like setting up paths to Components folders for >> storing librarie

Re: IDE 'Reset'

2011-05-11 Thread Tereza Snyder
On May 11, 2011, at 8:50 AM, Richard Gaskin wrote: > > * gAppStack is a great way for everything in your project to know which stack > is the mainstack of the standalone, useful for all sorts of things like > setting up paths to Components folders for storing libraries and externals. Slightly

Re: Gradients on buttons?

2011-05-11 Thread Keith Clarke
Thanks Richard - It would certainly make life easier for desktop and web apps. Let's hope that mobile platforms and/or the engine get more efficient graphics capabilities soon, so that on-the-fly gradient support for mobile becomes feasible and attractive. That would then enable and most like

Re: IDE 'Reset'

2011-05-11 Thread Richard Gaskin
David Glass wrote: I often am working on more than one project at a time, and am trying to come up with a way to do it in LC, particularly when using the GLX framework which creates a bunch of support stacks. LC doesn't allow duplicate stack names, so when I go to open another project I get the

Re: Gradients on buttons?

2011-05-11 Thread Richard Gaskin
Keith Clarke wrote: > Is there any particular reason why buttons don't support gradients > - at least for those styles of button that are not attempting to > be (desktop) OS-compliant, such as rounded rectangles? Looks like a design decision, but given how well the other graphic effects have be

Re: Test stack for Gif animation and Background Patterns

2011-05-11 Thread Richard Gaskin
Mark Wieder wrote: Alejandro- FWIW, on Fedora Core 13 it ran flawlessly: roughly 20% cpu usage with no apparent slowdown and an insignificant hit on memory usage. This on a six-month old 2.6GHz quad-core Thinkpad with 4G memory. Same good result here on Ubuntu 10.10. -- Richard Gaskin Four

Re: Field content in background group only visible on its 'parent' card?

2011-05-11 Thread Keith Clarke
Thanks Klaus (and Mark) - yes that was it. One more property understood - 9,999 to go. It's so frustrating to be stuck in the 'consciously incompetent' quadrant with LiveCode - you need to know what is wrong before you can find it in the dictionary - and then it's so obvious! (Aaargh!) The d

Re: Field content in background group only visible on its 'parent' card?

2011-05-11 Thread Mark Schonewille
Keith, set the sharedText of fld x to true You can also do this in the property inspector. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Insta

Re: Field content in background group only visible on its 'parent' card?

2011-05-11 Thread Klaus on-rev
Hi Keith, > Hi folks, > I have a background group containing a sub-group, which in turn, contains a > button, plus an overlaying field that contains the button's Title (as I can't > align the button's name against its 'icon' images appropriately). > > This Title field is selectable on all cards

Field content in background group only visible on its 'parent' card?

2011-05-11 Thread Keith Clarke
Hi folks, I have a background group containing a sub-group, which in turn, contains a button, plus an overlaying field that contains the button's Title (as I can't align the button's name against its 'icon' images appropriately). This Title field is selectable on all cards in the stack but the c

Re: Gradients on buttons?

2011-05-11 Thread René Micout
Thank you again Bernd ! I am a Mac addict... And I think I can use this for Mac button also... and "Lion" shows the tip of his nose... So... René Le 11 mai 2011 à 13:02, BNig a écrit : > Hi René, > > thank you. > > > I seem to recollect that Lucida Grande is not used on the iPhone but I may >

Re: Yellow Blues on Glows

2011-05-11 Thread Benjamin Beaumont
Hi Curry, Are you still experiencing the behaviour in the latest version? If so, post a bug report with a sample and we'll fix it. Warm regards, Ben On 10 May 2011 17:22, J. Landman Gay wrote: > On 5/9/11 2:36 AM, Curry Kenworthy wrote: > >> >> In LiveCode 4.6.1, Windows 7, I'm suddenly gett

Re: Gradients on buttons?

2011-05-11 Thread Keith Clarke
...great, that sorted it - thanks. The dictionary could be clearer on this, as there is no mention of using disabled to ignore mouseEnter/ mouseLeave - only clicks or key presses. Thanks again, Keith.. On 11 May 2011, at 11:53, Scott Rossi wrote: > Recently, Keith Clarke wrote: > >> So, I hav

Re: Gradients on buttons?

2011-05-11 Thread BNig
Hi René, thank you. I seem to recollect that Lucida Grande is not used on the iPhone but I may be wrong with this. A quick check now seems to confirm this but the info is not the most current. The way it is now: there is a hidden field "iPhoneFonts" that has a list of fonts that I found that ar

Re: Gradients on buttons?

2011-05-11 Thread Scott Rossi
Recently, Keith Clarke wrote: > So, I have created my first UI 'menu tab' button, with idle, hilite, armed and > hover icons set as the imported image snapshots of graphics. I can't seem to > align the button's name text correctly within the imported graphics, so I've > added an overlaying field f

Re: Gradients on buttons?

2011-05-11 Thread Keith Clarke
Scott and Bernd, Thanks for confirming the situation with gradients on buttons. Scott - I'm just learning about behaviours, so thanks for clarifying that they are controlled by scripts on the target button (such as 'set the fillGradient [of graphic] to propertiesArray') rather than the properti

Re: "Blurred vision" of Rev newsletter, Apr 21

2011-05-11 Thread Hanson
Dear Prof. Sanke, thank you very much for your great contributions to image processing with LiveCode and for sharing your work with us. Your e-mail, reviewing some of the history of image processing with LiveCode is fascinating and your stacks are extremely interesting. I can only recommend

Re: Gradients on buttons?

2011-05-11 Thread René Micout
Thank you Bernd ! Beautiful work ! Just a question : why no "Lucida grande" font ? Bon souvenir de Paris René Le 11 mai 2011 à 12:06, BNig a écrit : > Hi Keith, > > at present Livecode is not very good in the mobile environment at rendering > gradients and graphic effects. > Images are OK. Even

Re: IDE 'Reset'

2011-05-11 Thread tkuyp...@telenet.be
Just my two cents... To prevent this, I always name my stacks with a prefix... So when the project is called "mySampleApp", I name each substack with a prefix: mySampleApp msa_Main msa_Preferences msa_whatever This way I'm always able to ope

Re: Gradients on buttons?

2011-05-11 Thread BNig
Hi Keith, at present Livecode is not very good in the mobile environment at rendering gradients and graphic effects. Images are OK. Even if you would have the option to apply gradient and graphic effects to buttons it would affect performance. I tried to do a Livecode native grapic object that ha

Re: Gradients on buttons?

2011-05-11 Thread Scott Rossi
Keith: To me, it seems like you're talking about two different things here. To create custom roundrect buttons, you're correct: you either need to import button images to use as icons on native button objects, or create buttons using roundrect graphics and/or groups. When it comes to behaviors,

Gradients on buttons?

2011-05-11 Thread Keith Clarke
Hi folks, Is there any particular reason why buttons don't support gradients - at least for those styles of button that are not attempting to be (desktop) OS-compliant, such as rounded rectangles? This seems strange as native gradient support for rounded rectangle buttons would (seem to) simpli

Re: Test stack for Gif animation and Background Patterns

2011-05-11 Thread BNig
Hi Alejandro, your script does work on MacOSX in its original form. The repeat until mouseClick does stop the animation. I retested and it works. What does not work in your original stack is that the stack is frozen, i.e. it can not be moved while the animation is running. You can move the stack