FieldFormatter: Sample preview
For those who asked, a preview is available here: www.flexiblelearning.com/fieldformatter Best regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[UPDATE] Free 'Clearview' desktop clock v2.0 with Calendar
As requested, the 'Clearview' Clock now includes a dropdown Calendar... Screenshots and download at www.FlexibleLearning.com/freeclock Available for Windows, Macs and Linuxi - 100% free - 100% recycled electrons. Tempus fugit sed gravitatis sugit... Hugh Senior FLCo The home of: - ChartMaker www.FlexibleLearning.com/chartmaker - DatePicker www.FlexibleLearning.com/datepicker - The Scripter's Scrapbook www.FlexibleLearning.com/ssbk ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[UPDATE] Free 'Clearview' desktop clock v1.2
As requested by the community: - Linux build is available - Multiple monitors are now supported - Location is restored on re-launch - 'About' is now a systemWindow so should not be hidden behind other windows Download at www.FlexibleLearning.com/freeclock With best regards, Hugh Senior FLCo The home of: - ChartMaker www.FlexibleLearning.com/chartmaker - DatePicker www.FlexibleLearning.com/datepicker - The Scripter's Scrapbook www.FlexibleLearning.com/ssbk ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
FlexibleLearning apologises...
Mail is down here... It seems that any mail sent to flexibleLearning.com is being trashed by the ISP server, with no error or bounceback. If you have been trying to reach me, I have not responded because I am not getting any emails. I am trying to resolve the problem with the ISP and it has been escallated. Meanwhile, any urgent mail can be sent to flexiblelearn...@tiscali.co.uk (this seems to work) until the problem is sorted out. With best regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker version 3
ChartMaker v3 Delighted to announce this upgrade. Lots of new and improved goodies for you... - Optimized scaling so you can 'zoom in' on the data - Horizontal spacing so you can manage label display - Independent trend lines so multiple series can be individually handled - Improved control over Aim lines - Draggable marker lines by your users - Improved smoothing - Improved popup 'Help' - Built-in access to online Help sheets - Fully indexed documentation - A dozen glitch fixes - 4 new Playgrounds Further information with preview images at www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm The new version is available from www.runrev.com/store/product/chartmaker or direct from www.flexiblelearning.com/chartmaker with website support and resources. If you already have a licence for v2.1, choose the upgrade option (you will need your old licence key) for a discounted price. If you are still using v2, now would be a good time to get up-to-date. Sorry, your discount path has now expired. If you do not yet have ChartMaker, use it free for 30 days to see what it can do for you. With best regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
ChartMaker 3: Release testers please
If you an an existing ChartMaker user (preferably with Linux and with a good knowledge of ChartMaker's capabilities), and are able to look for any last minute glitches, do get in touch. This is a 'hunt and destroy' mission! Many thanks, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: DatePicker Version from the RunrevStore
SN is sent manually. The confirmation email from the Store should say this. I will check with Heather. With best regards, Hugh Senior FLCo -- Original message Hi, I did purchase DatePickert today from the store and received download details in my store account, but no SN and no information if the sn creation has to be done manually. Did anyone else already purchase DatePicker from the Runrev Store? And if so, how was the SN sent. Immediately after the purchase or was it sent manually by Flexible Learning? Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] Datepicker free update
Build 29 released This is a free update... - Accented characters now display as expected in webpage calendars. - Webpage calendar auto-launch is now optional. www.FlexibleLearning.com/datepicker or http://www.runrev.com/store/product/datepicker-for-livecode/ Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
So you think your password is long enough?
A tip from Microsoft... http://support.microsoft.com/kb/276304 Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
DatePicker: Installation instructions
The installation instructions (inadvertantly omitted) are now included in the download. Copies are available from the DatePicker resource center if you need them... www.FlexibleLearning.com/datepicker/dprc Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: DatePicker: Installation instructions
No need to re-register each time you deploy. Once the stack is registered it can be embedded with no further action... set the mainStack of stack flcDatePicker to myAppsMainStack The original will still be in the plugins folder or whever you have stored it. Best regards, Hugh Senior FLCo Andrew Kluthe wrote: Hacked together my own installation method. :) Not as easy to upgrade it as a substack of my application loader, but it makes using it throughout all my farm programs easy as pie. Once, it is registered and unlocked can I just save that registered copy of the stack and use it where I need it or do I need to register each time I include it as a substack? On Wed, Aug 29, 2012 at 6:33 AM, FlexibleLearning ad...@flexiblelearning.com wrote: The installation instructions (inadvertantly omitted) are now included in the download. Copies are available from the DatePicker resource center if you need them... www.FlexibleLearning.com/datepicker/dprc Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] DatePicker update
Now available at: http://www.flexiblelearning.com/datepicker http://www.runrev.com/store/product/datepicker-for-livecode/ Update 25 August 2012 The DatePicker popup can now be optionally opened as a modal for situations where you need a blocking display, or when you want to use the popup from a modal window. About... DatePicker for LiveCode is a cross-platform plug-in library solution for Mac OS, Linux and Windows, designed to handle date selection and validation as well as webpage calendars in your own work. Single, multiple or date ranges, disabled days and dates, memos, calendar limits, even early-date historal accuracy are all supported. Best of all you can give it virtually any human readable date and it will understand what you mean. Dates are returned in 7 standard formats, and you can define your own custom date format if you need to. Because it is non-blocking, work-flow is uninterrupted and all your other controls remain accessible. And thanks to the range of callbacks, your app can interact with palette events and user actions as they happen. It automatically displays in the local language, 2 popup styles are available and I think it pretty much covers everything you could want. It comes with DatePicker Utility, a point and click palette that uses DatePicker to create ad-hoc popups along with the required syntax for you. If you use 'ChartMaker for LiveCode', the syntax is handled in the same flexible and straightforward way, default settings are applied if you omit anything or if it cannot understand, and it will always try to correctly interpret the data you supply. Easy-access documentation is full of How To's and help along with the complete syntax guide and examples for everything. And there is an unlocked Playground stack with sample implementations for you to hack into, investigate and play with. DatePicker for LiveCode is an appropriate solution if you want to... . Offer different levels of functionality . Select dates using a simple 'Click On, Click Off' . Support a local language interface . Supply and obtain dates in any date format . Provide full control over disabled dates . Limit date selections between any two dates . Support Single, Multiple and Range date selections . Include dated memos for reference . Revert the date selection at any time . Show the selected dates with dropdown access . Respond dynamically to user actions and popup events . Support historical years with both Julian and Gregorian systems Usage... DatePicker is free to try for 30 days and the licence is for unlimited personal and commercial use. Requirements... .LiveCode version 3.5 or later, 4.5.2 or later recommended Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] DatePicker for LiveCode
Certainly you can. In addition to the 7 built-in 'standard' formats, you can define your own 'custom' date format as an arbitrary 8th format including any literal text if you wish for all chosen dates. The built-in sql format is -mm-dd. www.FlexibleLearning.com/datepicker Hugh Senior FLCo william humphrey wrote: Nice. In addition to local language and copying what is in the system can you also tell it to always use a particular format for the return of date? Say the SQL date -mm-dd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] DatePicker for LiveCode
What sort of timepicker is needed? I'd have thought it quite straightforward using 3 option menus to specify a single time in HH:MM:SS ... unless you have other ideas? Hugh Senior FLCo Alex wrote: DatePicker looks very nice; I plan to start using it soon (I'm working on an application that uses dates, and have dropped my own calendar stack and I am re-designing the application to take advantage of the better features of DatePicker :-) Any chance there will be a TimePicker coming soon ? Thanks -- Alex. On 16/08/2012 07:49, FlexibleLearning wrote: Certainly you can. In addition to the 7 built-in 'standard' formats, you can define your own 'custom' date format as an arbitrary 8th format including any literal text if you wish for all chosen dates. The built-in sql format is -mm-dd. www.FlexibleLearning.com/datepicker Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] DatePicker for LiveCode
Now available at http://www.flexiblelearning.com/datepicker About... DatePicker for LiveCode is a cross-platform plug-in library solution for Mac OS, Linux and Windows, designed to handle date selection and validation as well as webpage calendars in your own work. Single, multiple or date ranges, disabled days and dates, memos, calendar limits, even early-date historal accuracy are all supported. Best of all you can give it virtually any human readable date and it will understand what you mean. Dates are returned in 7 standard formats, and you can define your own custom date format if you need to. Because it is non-blocking, work-flow is uninterrupted and all your other controls remain accessible. And thanks to the range of callbacks, your app can interact with palette events and user actions as they happen. It automatically displays in the local language, 2 popup styles are available and I think it pretty much covers everything you could want. It comes with DatePicker Utility, a point and click palette that uses DatePicker to create ad-hoc popups along with the required syntax for you. If you use 'ChartMaker for LiveCode', the syntax is handled in the same flexible and straightforward way, default settings are applied if you omit anything or if it cannot understand, and it will always try to correctly interpret the data you supply. Easy-access documentation is full of How To's and help along with the complete syntax guide and examples for everything. And there is an unlocked Playground stack with sample implementations for you to hack into, investigate and play with. DatePicker for LiveCode is an appropriate solution if you want to... . Offer different levels of functionality . Select dates using a simple 'Click On, Click Off' . Support a local language interface . Supply and obtain dates in any date format . Provide full control over disabled dates . Limit date selections between any two dates . Support Single, Multiple and Range date selections . Include dated memos for reference . Revert the date selection at any time . Show the selected dates with dropdown access . Respond dynamically to user actions and popup events . Support historical years with both Julian and Gregorian systems Usage... DatePicker is free to try for 30 days and the licence is for unlimited personal and commercial use. Requirements... .LiveCode version 3.5 or later, 4.5.2 or later recommended The shop is now open! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
ChartMaker and the London Olympics: Update
As a result of various off-line messages (for which I thank you), the sample stack has been turned into a ChartMaker masterClass with even more functionality and features. Feel free to grab a copy. Aspects covered: - Sorting and manipulating user field data - Putting a stack 'in use' - Defining charts by Series - Transposing charts - Updating charts For you all, with my compliments as we are hosting the event here in Blighty, your own Olympics Medal Table in LiveCode Just update your chosen countries as the results come in! The screenshot: http://www.flexiblelearning.com/CMolympics/CMolympics_2012.png The stack: http://www.flexiblelearning.com/CMolympics/CMolympics_2012.zip ChartMaker: http://www.flexiblelearning.com/chartmaker You will need ChartMaker to generate the graphics, and it's free to try for 30 days. With best regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Amazon opportunities for apps
Amazon seem keen to get developpers on board... http://www.reuters.com/article/2012/07/25/net-us-amazon-developers-idUSBRE86 O1II20120725 Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
ChartMaker and the London Olympics
For you all, with my compliments as we are hosting the event here in Blighty, your own Olympics Medal Table in LiveCode Just update your chosen countries as the results come in! The screenshot: http://www.flexiblelearning.com/CMolympics/CMolympics_2012.png The stack: http://www.flexiblelearning.com/CMolympics/CMolympics_2012.zip You will need ChartMaker to generate the graphics, and it's free to try for 30 days. With best regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Storing data on iOS
For those who have gone before those who have gone before... What sort of files does Apple allow to be downloaded? 'text' only files? Defined by type of file (video, pdf etc)? Is there such a list? I think I have established that 'executable' files will be rejected (i.e. stack files) which is a real pain because I have a desktop app that would ideally launch stack files from a home page index of modules. If this is the case, what about a 'definition text file' that the app use to create the stack on demand? (This is, of course, apart from plists, licences, XcodeVersion+iOSversion+LCversion combinations, submission processes etc. Whatever happened to 'programming for the rest of us'!) Hugh 'Wanting to grow roses instead of programming' Senior FLCo -Original Message- Date: Wed, 25 Jul 2012 13:39:43 -0500 From: J. Landman Gay jac...@hyperactivesw.com To: LiveCode Mailing List use-livecode@lists.runrev.com Subject: Storing data on iOS Message-ID: 50103d6f.3030...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed For those who have gone before me: I have some files that are downloaded from a server and stored on the device. The files will be updated periodically. I don't want to download them repeatedly unless they've changed. Apple says not to store data in the documents folder if it can be retrieved from elsewhere. That makes me think I should keep it in the cache folder. But I'd rather it was backed up so the user doesn't need an internet connection if they want to use the app and the cache has been wiped. Where would you store the files? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Junior App Developer (FlexibleLearning)
Ever have one of those days? My apologies with deep embarrassments to the list. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Modeless screens on Windows (SOLVED!!!)
Coming in late on this thread, Peter, but would setting the 'title' of the stack to SPACE resolve the problem until a fix is available? Hugh Senior FLCo -- Original message On Jul 11, 2012, at 2:35 PM, Peter Haworth wrote: Ken - you nailed it, thank you so much I had the text size set to medium (125%). I changed it to small (100%), re-logged in and the title appeared. Just to be double sure, I went back to medium text size and the title disappeared again. I will be sure to mention this problem somewhere in the docs for the product. I've seen 'larger than 100%' fonts cause problems in a lot of different windows dev apps - I'm glad you found the problem! Surely this is a Windows bug? Even with the text size at medium, the title appears if the stack is top-level, just not when it's modeless. Be that as it may, I can now get on with my life. Not sure why it would not show when modeless, so if you haven't logged a bug in RQCC, I'd suggest logging it. Ken Ray Sons of Thunder Software, Inc. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
flcDatePicker: Preview
flcDatePicker The pre-release version of flcDatePicker is available for final beta testing on Mac OS, Windows and Linux. We obviously want this to meet needs and be a robust solution so if you would like to test its functionality along with the accompanying Utility and Playground, and give your feedback, please get in touch. If there is a demand for an iOS version beyond that already available with the DatePicker, we can look into providing one. For those who already use ChartMaker, the syntax system is the same. Some of the key features: - offer basic or advanced features. - respond dynamically to palette events in your own program. - custom date formatting plus 7 standard formats - select and de-select dates using a simple 'Click On, Click Off' mouse click. - show Day and Month names in the native language. - supply and obtain dates in virtually any standard or aribitrary format. - provide full control over enabled and disabled dates and days. - optionally limit the selection of calendars between any two dates. - support Single, Multiple and Range date selections. - attach memos to specific days and dates for reference. - revert the date selection at any time. - show the number of selected dates with dropdown access to them. - support for historical years. Preview screenshots have been uploaded here: http://www.flexiblelearning.com/datepicker/datepickerpreview.html Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
is evaluation order defined, and evaluation of conditionals
There is a difference between logical and string comparisons. A logical comparison using 'and/or' will exit as soon as 'false' is encountered. A string comparison using '=' (or 'is') or '' (or 'is not') will evaluate both components. Try func1()= func2() instead. Hugh Senior FLCo on mouseUp local tFoo put func1() and func2() into tFoo end mouseUp function func1 return false end func1 function func2 put func2 was called return true end func2 In this example, func2() IS NOT called. If func1 returns true instead, func2() IS called. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[TIPS] Mouse-wheel field scrolling
Sometimes the tips posted here may be a bit intimidating to folks who are new to LiveCode, so here is a Back-to-Basics one. A simple stack or card script handler to help smooth field scrolling with the mouse-wheel... --| If you already have a rawkeyDown handler in a field, make sure the last --| line is pass rawkeyDown so it is activated higher up the message path --| in your card or stack script. on rawkeyDown tKey constant numOfLines=5 --| Increase/decrease this number as required if field is word 1 of the target then put (the effective textHeight of the target)*numOfLines into tInc if tKey=65309 then set the scroll of (the target to the scroll of the target) - tInc else if tKey=65308 then set the scroll of (the target to the scroll of the target) + tInc else pass rawkeydown end if end rawkeyDown To keep track of all your script goodies, try The Scripter's Scrapbook to build up your own useful coding reminders, tips, tricks and references. You can get a 30-day free copy here... www.ssbk.co.uk Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Seeking a navigation system among 200 individual / card DB
If you can conceive it, LC will do it. For a simple search, I'd implement a dynamic search field where the keyUp is trapped and the matching cards are marked. The more you type, the fewer the marked cards. Maybe also a dropdown menu with standard queries so, for example, all those in a particular class are marked, then a substack has a field for printing. Just a coupla ideas. Hugh Senior FLCo Mark Rauterkus wrote I am searching for a navigation system for my 200 card camp attendance project. Pointers welcome. I'll have 150 to 200 cards in a database of people (camper kids in summer school, volunteers, staff). Each card has its card name set to the person's name. Contact info, attendance, performance notes on the main card in a main stack for each person. One day I'd love to store the data elsewhere and have it run on iPhone and Android, but first things first. I'm wondering how to set up a navigation system for finding an individual -- but also taking class role calls. Popup buttons might get too crowded with too many names. Should I do individual dynamic palettes on their own card(s) in sub-stacks? Wondering. -- Ta. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Password protecting a data file... how to cope with forgotten password?
One way that comes to mind is to store the data in a password-encrypted stack (data is then gibberish) that also needs their password to be viewed or a master password that you can use if they send you the data stack. Fee chargeable. :) Hugh Senior FLCo On Jun 12, 2012, at 10:44 AM, Dr. Hawkins wrote: On Tue, Jun 12, 2012 at 8:41 AM, Tereza Snyder ter...@califex.com wrote: The application I?m working on needs to store possibly confidential client info on the user?s hard drive. It's asking for an optional password. (The password is optional because it?s up to the user whether they want the extra protection). If they DO input a password, and subsequently forget it, how can I provide a non-internet-based mechanism for retrieving or resetting the password? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
HiliteColor reset
How does one re-set the hiliteColor to the default? Docs say set to empty, but I just get a compile error. Anyone? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[OT] Databases in song
I just HAVE to share this with you all... http://sevenweeks.org/post/24683042649/seven-databases-in-song-this-was-so-m uch-fun-to Enjoy! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Blacklist script (was: on-rev hacked)
I can confirm that the 5G-Blacklist .httaccess script really works. It stopped all but a handful of nasties overnight and dead in their tracks. The only ones that get through are requests for any unspecified .php files, most likely due to my syntax ignorance. Can someone correct this or give me an appropriate line to block ALL .php file requests? RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$ RedirectMatch 403 /index.php RedirectMatch 403 /setup.php Many thanks, Hugh Senior FLCo http://perishablepress.com/5g-blacklist-2012/ is of use for you and other?s. This solution was mentioned on the list last year by Andre, if i remember right. I am using that since then in the hope it prevents my account from being hacked. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Save vs SaveAs (was Re: Upgrade to Lion)
Very nicely explained, Igor. As a grumpy old man with fossilised tendencies I appreciate the explanataion of my own occasional work-flow irritations and frustrations, and why my father (who only started using computers aged 70) always seemed to have issues with document archiving despite being a phD scientist of some note. I once made the mistake of trying to explain the 'grand-father system' to him. Typically he adopted not a 3-level but an almost infinite-level of document archiving. Unravelling his hard-drive was a challenge. So I agree with you... New kids on the block do (sometimes) know better and Apple seems to have made a better mouse-trap. Hugh Senior FLCo Igor wrote: -- Understanding Old Save + Save As... x New Autosave Versions + Duplicate -- When I first upgraded to Lion, I, too, became irritated and grumpy about the lack of a Save As... command. After many years of using a certain workflow, it becomes mechanical, intuitive, second-nature, part of you. I could not seem to understand WHY oh WHY did Apple have to change one of the basic methodologies for using documents in computers, which had over the years become entrenched in our computer culture, and in our minds. As much as I tried, I could not get my head around this new way of working. It seemed more cumbersome and clumsy than the old one. Until one day, quite by accident, I found an article on the web explaining the rationale of it all. I wanted to post a link to the article here, but try as I might, I can't find it anymore - I seem to be running low on Google juice today... So, as a poor alternative, I'll try to post my own version of that explanation, hoping that it may help others. THE PROBLEM [...snip...] ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: flcCalendar date formats (was: Beta Testers needed)
It could easily do so if that is important to you. Let me know off-list the specific format/s you need. Hugh Senior FLCo william humphrey wrote: Does it return date in SQL format? -mm-dd ? On 24 mei 2012, at 23:04, FlexibleLearning wrote: flcCalendar is a popup palette that accurately supports and returns dates from January 1 AD. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
flcCalendar algorithms (was: Beta Testers needed)
Yes there are, Mark, but those I have found needed massaging to not only accurately calculate the day-of-week from a julian number but also display the changeover month with the missing days. Hugh Senior FLCo Mark Schonewille wrote: Hi Hugh, There are algorithms around for perpetual calendars. Would it be an idea to use such an algorithm for your palette? -- Best regards, Mark Schonewille ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Beta Testers needed
flcCalendar is a popup palette that accurately supports and returns dates from January 1 AD. It needs road-testing both in terms of the UI and its implementation by the User. If you have an interest, please get in touch. Thank you. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker: Resource Centre support update
ChartMaker's 'Resource Centre' support website has been updated. - A new Playground stack has been added ChartMaker Playground #10 How to include Horizontal and/or Vertical Marker Lines. Requires Build 57, the most recent release. Available from www.FlexibleLearning.com/chartmaker/cmrc - ChartMaker's Documentation Archive has been updated This specifically affects the full documentation downloads for Builds 47-48, 49, 55, 56 and 57. These complement archives of Build Release Notes available separately... Available from www.FlexibleLearning.com/chartmaker/cmrc A free ChartMaker 30-day trial is available from www.FlexibleLearning.com/chartmaker Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker 2.1 update (build 57)
ChartMaker for LiveCode www.FlexibleLearning.com/chartmaker BUILD 57 has just been released, including support for vertical and horizontal 'Marker Pen' lines as alternative origins for visual referencing, as well as 'Aim' or 'Goal' lines in any line or scatter chart. As an improvement to the syntax window, you can now include or omit empty parameters depending on whether you want to see what additional display options are available This is a maintenance update and is free for all registered 2.1 users. A 30-day free trial is available if you do not yet have ChartMaker. www.FlexibleLearning.com/chartmaker/versioning/whatsnew.htm Marker Lines Vertical and horizontal 'marker pen' lines can now be displayed in any Line or Scatter chart for visual referencing. You can align the marker lines using either absolute positions by number, or relative positions by percentage. They can also be used to indicate an alternative origin. Additional parameters include the color, width and blend. The documentation has been updated with 4 new parameter names: MarkerLineH, MarkerLineV, MarkerLineBlend and MarkerLineWidth. The Utility has been updated with Marker Line options so you can try it and see the syntax. Aim Lines You can now display dashed 'aim' or 'goal' lines by specifying the first and last data points. To show both a Trend and an Aim line, ensure the first series has no data gaps and include a second series that includes only the first and last values. The documentation has been updated and a new 'Trend Lines' sample is built into the Utility so you can try it and see the syntax. www.FlexibleLearning.com/chartmaker/downloads/ChartMaker21.zip Available from the software by clicking 'Check for updates...' or from the links above or from the LiveCode store. Enjoy! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Parameter string length (was Named Parameters)
For clarity, my observation about truncated data refers to engine limits on the data passed, not the length of the line... parseThis my4gigData would most likely truncate the contents of my4gigData. There is no specified limit that I can determine, hence my suggestion that it may be memory dependent. Hugh Senior FLCo Hugh Senior wrote: For most practical purposes LiveCode handles what is required. I suspect that any limits may depend on and be subject to the amount of on-board RAM as ChartMaker here easily handles uint2 (64Kb) but not uint4 (4Gb). In short, we need clarification from Edinburgh. I believe all the relevant limits have been provided in the User Guide - see section 2.2.9, LiveCode Memory Limits. -- Richard Gaskin Fourth World ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Named Parameters
ChartMaker uses the 'keyValue pairs' syntax (in the form Key=Value), of which any, some or all can be passed as parameters like this... get CMBarChart(ChartSize=500,300,Values=[list of values],Categories=[list of categories]) The app first applies all the defaults in an internal array. It then parses any specified keyValue parameters to update the array that is then used to create the chart. The keyValues are finally stored in the chart for later use. Once the app's initial parsing scheme is written is it relatively straightforward to modify it with new keyValue pairs. The advantage of this method is that the order of the parameters is irrelevant and their contents can be optionally passed as variables for coding simplicity... get CMBarChart(tChartSize,tValues,tCategories) The main downside of passing parameters is the engine's limits on total parameter string length. If too much data is passed, the engine simply truncates the data to the maximum length it can handle. If the amount of data does exceed the engine's parameter-passing limit, then the data elements have to be iteratively set directly (e.g. set the uValues of group Chart1 to [a very large dataset]). I personally find this a more cumbersome syntax than the keyValue syntax but it does mean there are limits. For ChartMaker, the limits are about 15,000 data points (depending on overall string length, of course). ChartMaker is available from www.FlexibleLearning.com/chartmaker Hugh Senior FLCo Peter Haworth wrote: I seem to recall somewhere in the dim distant past that some languages have a syntax where function and procedure calls can have named parameters rather than positional ones. function doIT p1,p2,p3,p4,p5,p6,p7,p8,p9,p10 .. .. end doIT put doIT(abc,p3=xyz, p10=def) into tVar When functions have a large number of possible parameters but not all of them are required, this is a great way to avoid having to count commas in the calls to them. I don;t think LC has any such syntax built in but wondering if anyone has tried to implement something similar? Pete lcSQL Software http://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Can I put advisory text in an 'ask' dialog?
Achievable by rolling your own dialog and trapping keystrokes. If the field is empty, then set the text of the field to the advisory text. If the field is the advisory text and the selectedText is not empty, then set the text of the field to empty. Hugh Senior FLCo -- Message: 1 Date: Tue, 10 Apr 2012 19:02:09 +0200 From: Graham Samuel livf...@mac.com To: use-livecode@lists.runrev.com Subject: Can I put advisory text in an 'ask' dialog? Message-ID: cddabb42-d169-489d-87bc-161563cf9...@mac.com Content-Type: text/plain; CHARSET=US-ASCII Sometimes one sees apps (on different platforms) where the user is invited to type something into a field, and the field is pre-filled with a text which disappears the moment the user starts typing - the initial text says stuff like 'type your name here'. This type of text is not preselected (apparently) - so it must be a special type of text, but I don't know how to make it appear. Specifically, in LC's iOS implementation, the 'ask' dialog scripting looks like this: ask [ question | password ] prompt [ with initialAnswer ] [ titled title ] so the question resolves to: how do I make the initialAnswer text a 'ghost' text such as I have described, or is it impossible? Graham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Pick any Two
Similar: On Budget On Time Features Hugh Senior FLCo Ken Corey wrote: I've always believed in the project triangle: Pick any two: Cheap Fast Good ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Visible text calculation
Has anyone figured out how to convert pageHeights into the equivalent character offsets of a field with variable lineHeights (e.g. char 1 to 174, char 175 to 315, char 316 to 420)? Put another way, using pageHeights to print a scrolling field, list the first and last chars of each printed page. Reason is to implement text flow (imagine virtual printing). Someone must have been down this brain-befuddling route! Can you share the wisdom? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTML: Private tag
Nice one, Richard. Could have sworn there was an undocumented private tag, but must have mis-remembered. Hugh Senior FLCo Hugh Senior wrote: Can someone please remind me of the syntax to include a 'private' tag in the htmlText (one that can contain string data and is not removed by LC)? So far the only solution I've found for embedding metadata in text is to use a name attribute within an anchor tab, e.g.: a name=some arbitrary dataThere's the text/a When an anchor tag has no href attribute it's not rendered as a link, which makes it okay for this sort of metadata. However, if you later add an href attribute it will remove the name attrbute; apparently name and href are mutually exclusive in the current implementation. To provide more flexibility for this sort of thing I've submitted a request to support the span tag: http://quality.runrev.com/show_bug.cgi?id=9849 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
HTML: Private tag
Can someone please remind me of the syntax to include a 'private' tag in the htmlText (one that can contain string data and is not removed by LC)? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Point at which speaking is stopped?
I do not believe this is available, nor can I think of a reliable way to determine the stop point. Unless the 'reading' is converted to an audio file (which probably does not suit your purposes or you would be already implementing one) and the use of callbacks is implemented. You may have to apply the selectedText and rely on the User's judgement. Hugh Senior FLCo James Hurley wrote: If one executes a revStopSpeach, is it possible to learn the point in the text where the speaking was stopped? Jim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: is among the words AND find words
Aha. So we are now only testing 'exist', and not the word number? Since I've already written this, I'll post it anyway... The problem (as always when this topic is raised) is the definition of a 'word', as indicated by the additional inclusion of 'token' in the language, and thus the definition of 'punctuation'. I believe LC inherited the definition of a 'word' from HyperCard for compatibility. Is $10 one word or two? Is my_Var one word or two? Is half-baked one word or two? Do the same rules apply across non-English languages? And unicode langauges? Perhaps there is no single definition and some modifiers are needed such as 'strict'... on mouseUp put findWord(fld 1,men,strict) end mouseUp function findWord pContent,pStr,pRule if pRule=strict then put COMMAQUOTETABCR:;'. into tPunctuation else --| Adjust according to requirements... put COMMAQUOTETABCR:;'.^*()_-+={}[]@~#/|\!? into tPunctuation end if repeat for each char L in tPunctuation replace L with SPACE in pContent end repeat if pStr is among the words of pContent then return num of words of char 1 to offset(pStr,pContent) of pContent else return 0 end findWord Hugh Senior FLCo Jim Hurley wrote: Strike most of my last message. It appears that most of the function can be replaced with an examination of the entire text (dah) as in: put tWord is among the tokens of tList into tTest return tTest This tests the whole text; it is not necessary to test each string containing the word individually. But remove the quotes and periods first. Jim Thanks to all for their help with this. I learned a new key word in token. So far the function below handles everything reasonable I have thrown at it, including finding time in the less than reasonable text in field 1: Now is timely the timeless time.-for, all good. on mouseUp put field 1 into tText put theWordIsAmongTheWords(time, tText) into msg box --returns true end mouseUp function theWordIsAmongTheWords tWord, tList --The quote and period are irrelevant to the test for the word, so delete them. replace quote with in tList replace . with in tList put empty into tNums --Collect all the strings that wordOffset would find. repeat put wordOffset(tWord,tList, last item of tNums) into tNum if tNum = 0 then exit repeat put the last item of tNums + tNum comma after tNums end repeat --Test each of these strings aginst the word being tested. --With the quotes and periods gone, the tokens of sting found work well. repeat for each item tWordNum in tNums put word tWordNum of tList into tTestWord if tWord is among the tokens of tTestWord then return true end repeat --If all the tests fail, then return false return false end theWordIsAmongTheWords ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Scripter's Scrapbook (was arrowkey)
A reminder that the Scripter's Scrapbook is designed to do exactly this... www.ssbk.co.uk or http://www.runrev.com/store/product/scripters-scrapbook-1-0-0/ And if you want a 'Socks' category, you can have that too! Hugh Senior FLCo On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw the other input for this problem, I'm thinking that checking keysdown() for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have a horrible memory so I get the bonus of relearning the same thing over and over! Yeah, me too -- as one of my patients once said to me, I have a mind like a steel sieve. I save lots of tips from this list in a stack I've made, and thank God for LC's find command Wish it worked for socks. (Anyone seen a sort of a brownish-greenish one, medium, almost new?) -- Peter Peter M. Brigham ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: is among the words AND find words
An alternative approach: Assuming that the phrase now is the time, for all good men is in fld 1, then this button script on mouseUp put findWord(fld 1,time) end mouseUp function findWord pContent,pStr if pStr is among the tokens of pContent then return num of words of char 1 to offset(pStr,pContent) of pContent else return 0 end findWord reurns 4 as expected. Similarly for 'time-bomb' and other variants. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: characters lost pasting from Word To LiveCode field
This scriptlet looks like a means of ensuring that accented and unicode characters in plain text format transfer between platforms to me rather than a bridge between text editors. Hugh Senior FLCo On Dec 13, 2011, at 9:02 PM, J. Landman Gay wrote: On 12/13/11 5:09 PM, Sieg Lindstrom wrote: I'll say up front the details of text encoding are not my strong suit. With earlier versions (RunRev 4.x and earlier), I'd sometimes have to write special routines to search and replace certain characters from the pasted text. For example, the em-dash, ? (chartonum 209), which after pasting from Word was seen by RunRev as two characters (a two-byte character?), numtochar of 32 followed by numtochar of 20 so I wrote a routine to just search and replace to numToChar of 209. My new problem is that with LiveCode 5.0x (I just upgraded to 5.02), the em-dash if pasted from a Word file instantly disappears from the text. Someone once posted a function to the list that translates Word text to useable LiveCode text. I saved it but haven't ever tried it. I wish I'd also recorded who wrote it: function revText theText return unidecode(uniencode(theText,utf8)) end revText Use that on the clipboard contents and see if it does what you need. No workie Jacque. From word I get empty. From Textedit I get ??? If I put just the clipboardData from Word I get nothing. If I put the clipboardData from Textedit I get an emDash. Bottom line: Microsoft does not play well with Livecode's clipboard. Other apps are fine. Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Independent Progress Bar
If you mean an indeterminate progress indicator then yes, use an animated gif with the judicious use of repeatCount (-1 to start and 0 to stop). If you want a modal progress bar that works independently (as in non-blocking) then open the modal invisible first and increment your own bar as required. Both will 'stall' if LC is performing a blocking and time-consuming operation unless it is returning a trappable value (such as a 'bites downloaded' callback) that you can use. Hugh Senior FLCo Original message: Hi all. I know this has been discussed in length in the past, but I cannot remember what the conclusion was. Does anyone have/know about an independent progress bar/wheel that can be used with Livecode, that will function independently even when Livecode is running a script? I know I could kludge it myself if I had control over the scripts I am running, but I do not. One script is Trevor's sqlYoga which is locked, and also I am opening an SQL database remotely, and it takes a few seconds sometimes to have that return control. What is needed is an addon dialog created in some version of C that we can call on to display a progress bar/spinner, but I am not sure if anyone has made such a thing. Seems like a really good addition to Livecode, but I don't think we are going to see something like that soon. Bob ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[TIP] Multiple screen management
A useful handler when working with multiple monitors... on mouseUp --| Which monitor is this stack on? put activeScreen() end mouseUp function activeScreen --| Return the number of the monitor for the loc of the stack if num of lines of the screenRects = 1 then return 1 put item 1 of the loc of this stack into xOff repeat with n = 1 to num of lines of the screenRects put line n of the screenRects into thisRect if (xOff = item 1 of thisRect) AND (xOff = item 3 of thisRect) then return n end repeat --| Failsafe... return 1 end activeScreen Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: printing rotated text
Up to 4.6.2, you get increased image resolution if you import an image and scale it down, but not if you take a snapshot and scale it down. I did bug-report this anomoly ages ago. Maybe they fixed increased res on snapshots in 5.0 (not tried yet). Hugh Senior FLCo Ben Rubinstein wrote Can I just confirm that there's no way to print high-quality rotated text from LC? For use on screen one can put text in a field, take a snapshot, and rotate that - which is fine if you don't need editing; but of course in print that comes out lo-res. Is there any way, if I want most of the text in one orientation but a small amount at 90? to it, to do better than the same technique and accept that the rotated text will print at lower resolution? TIA, Ben ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: printing rotated text
Unless you know different, this doesn't work. The snapshot option remains at 72dpi after scaling. The only way seems to be scaling an import an image from an external image file. Hugh Senior FLCo David Epstein wrote: Create the field with fontsize 4 times what your want, take a snapshot, rotate, paste, and?reduce the image's width and length to 25% of the original . ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Ask dialogs with unicode prompts
The docs say that the ability to provide formatted text for the 'Ask' and 'Answer' dialog prompts was introduced in version 2.0. I am presenting an html string for use in both dialogs like this by way of example... ask pbPlease/b try again#33;/p - This does not display as expected ask password pbPlease/b try again#33;/p - This does not display as expected answer pbPlease/b try again#33;/p - This displays as expected So the 'ask' is broken and looks like it has never worked correctly (going back to v2.3, the earliest I have). Also in need of 'repair' are the 'ask file' and 'ask folder' dialogs. Does anyone apply unicode like this? How do you cope? Do you create your own dialogs? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Ask dialogs with unicode prompts
Pls ignore this. I was not in the LC IDE which *does* display formatted text in the 'Ask' dialog. Slap wrist. Hugh Senior FLCo Original msg: The docs say that the ability to provide formatted text for the 'Ask' and 'Answer' dialog prompts was introduced in version 2.0. I am presenting an html string for use in both dialogs like this by way of example... ask pbPlease/b try again#33;/p - This does not display as expected ask password pbPlease/b try again#33;/p - This does not display as expected answer pbPlease/b try again#33;/p - This displays as expected So the 'ask' is broken and looks like it has never worked correctly (going back to v2.3, the earliest I have). Also in need of 'repair' are the 'ask file' and 'ask folder' dialogs. Does anyone apply unicode like this? How do you cope? Do you create your own dialogs? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Resource for finding LiveCode Developers ?
tf Try www.runrev.com and select Consultants from the Support menu. Hugh Senior FLCo Original message: All, Where is the best place to find LiveCode developers for a off-site contract project ? My Google-fu is failing me. Is there a site that exists currently where someone can see a list of developers that are available for hire ? A search on elance.com, odesk.com, careers.stackoverflow.com, and the runrev forums came up dry. Any suggestions would be helpful. (ps. if you are a developer, feel free to send me an email off-list) -tf ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Excel tip with LC equivalent: Value comparison
I have an Excel speadsheet that is kinda self-checking in that 3 cells display the same value if I have made no data entry errors. How to determine if cells A1, B1 and C1 are the same value... Put this in cell D1 to display 'TRUE' or 'FALSE': =IF(A1=B1,IF(B1=C1,TRUE,FALSE),FALSE) Bonus feature How to colorize cell D1 with green for 'TRUE' and red for 'FALSE' for visual feedback. Use the 'Format' menu to select 'Conditional Formatting...' and apply these 2 rules: Cell Value + is equal to + TRUE Use the 'Format...' button to select 'Font' with a green color, and 'Patterns' with the same green for cell shading (effectively 'hides' the text). Click 'Add', and then Cell Value + is equal to + FALSE Use the 'Format...' button to select 'Font' with a red color, and 'Patterns' with the same red for cell shading (effectively 'hides' the text). Finally click OK. LiveCode equivalent: if (fld A1=fld B1) AND (fld B1=fld C1) then set the backcolor of fld D1 to green else set the backColor of fld D1 to red set the opaque of fld D1 to true Little triumphs, big joy :) Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker 2.1 update (build 56)
ChartMaker for LiveCode www.FlexibleLearning.com/chartmaker BUILD 56 just released, including support for drill-down charts. www.FlexibleLearning.com/chartmaker/versioning/whatsnew.htm ChartMaker can now retieve the specific details of any bar, column, line or pie slice to support more detailed user-interactivity such as drill-down or drill-up charts, your own look-up information, or any other application you need based on a specific display result. A new Playground is included in the download called 'Interactive data' with coded examples and the built-in documentation has been updated with implementation details. This is a maintenance update and is free for all registered 2.1 users. www.FlexibleLearning.com/chartmaker/downloads/ChartMaker21.zip Available from the software by clicking 'Check for updates...' or from the links above or from the LiveCode store. Enjoy! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: mouse within oval filled area: A solution using geometry
For those who do not have LC5 or AE (ideas already suggested), here is a solution to detect whether a point is within the filled area of an oval graphic using polar geometry. It is offered as a starting point for a more compact solution. on mouseUp --| Syntax: isWithinSegment(long ID,point) put isWithinSegment(the long id of grc myOval,the mouseLoc) end mouseUp function isWithinSegment pGrc.obj,pLoc --| pGrc.obj is the long id of the graphic --| pLoc is a point expressed as x,y --| Returned value is TRUE or FALSE if word 1 of pGrc.obj graphic then return if the style of pGrc.obj oval then return put the startAngle of pGrc.obj into tSA put the arcAngle of pGrc.obj into tAA put the width of pGrc.obj into W put the height of pGrc.obj into H put item 1 of the loc of pGrc.obj into objX put item 2 of the loc of pGrc.obj into objY put item 1 of pLoc into pointX put item 2 of pLoc into pointY --| Get the point's relative coordinates... put pointX - objX into x put pointY - objY into y if y=0 then --| Handle the exceptions... if x0 then put 0 into tAngle else put 180 into tAngle else put atan ((x*H)/(y*W)) into tAngle --| Convert from radians to degrees... put (tAngle * 180 / pi) into tAngle --| Adjust the angle according to the quadrant... put (tAngle MOD 180)+90 into tAngle if y0 then add 180 to tAngle end if return (tAngle= tSA) AND (tAngle=tSA+tAA) end isWithinSegment Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
mouse within oval filled area
Has anyone worked out how to test if the mouseLoc is within the filled area of an oval graphic (defined by startAngle and arcAngle)? I was thinking polar coordinates, but this assumes a circle and a fixed radius which is not necessarily the case. A btter math brain than mine is needed! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: mouse within oval filled area
Indeed, John, but not a unique object identifier if more than one grc uses the same color. I think I am back to polar coordinates (unfortunately). The current engine behaviour is painfully inconsistent with other controls whose transparency is immune from mouse events. Hugh Senior FLCo John Dixon wrote: Use the mouseColor ? Original message: Has anyone worked out how to test if the mouseLoc is within the filled area of an oval graphic (defined by startAngle and arcAngle)? I was thinking polar coordinates, but this assumes a circle and a fixed radius which is not necessarily the case. A btter math brain than mine is needed! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: iOS forcing interface rotation
Did anyone figure how to do this? I need exactly the same thing: All stack windows are landscape, except 1 which must be portrait. How do we force an orientation change without requiring the user to physically rotate the device? Hugh Senior FLCo On Tue Aug 2 09:23:51 CDT 2011 Scott Morrow wrote: I am working with an iOS UI that allows portrait and landscape rotation on one card but requires that the UI be presented in portrait on all other cards. no matter what the actual device rotation is. The problem arises when leaving the card that allows landscape and going to a card that requires portrait. If the user navigates to a portrait only card with device already in landscape, the UI is skewed. Is there a way to force the auto-rotation without requiring the user to physically rotate the device? (I had hoped perhaps some trickery with mobileSetAllowedOrientations and mobileLockOrientation /mobileUnlockOrientation.) TIA, Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Mac app icons
Can anyone point me in the right direction, please? Using 10.6.8 on a MacMini with LC4.5.2 The standalone icns icon set is not being copied (contents:Resources:Standalone.icns is zero KB) but no build error is reported. Using IcoFX software that automatically generates a 1bit set for Mac icns. Images included are: 32bit: 128, 48, 32, 16 8bit: 48, 32, 16 4bit: 48, 32 16 1bit: 48, 32, 16 I have tried restarting and zipping/unzipping to force a Finder refresh I have tried omitting the 32bit 128 I have even tried an icns file that used to work before I got a MacMini The Windows ico version displays fine. What am I doing wrong? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mac app icons
Ouch, damn and drat... But thank you for confirming I am not alone! I tried replacing the dud Standalone.icns with one from another app that does display correctly. Still not working. So far the client has not complained but I suspect it is only a matter of time. If ANYONE has tracked this down, do please share with group! Hugh Senior FLCo Phil Jimmieson wrote: The same thing happens to me with one of my OS X apps. LiveCode always produces a zero length icns file for that app. I've never been able to track it down. I always end up manually replacing the dud Standalone.icns with a working version that I keep handy. Sent from my iPhone On 30 Oct 2011, at 08:45, FlexibleLearning ad...@flexiblelearning.com wrote: Can anyone point me in the right direction, please? Using 10.6.8 on a MacMini with LC4.5.2 The standalone icns icon set is not being copied (contents:Resources:Standalone.icns is zero KB) but no build error is reported. Using IcoFX software that automatically generates a 1bit set for Mac icns. Images included are: 32bit: 128, 48, 32, 16 8bit: 48, 32, 16 4bit: 48, 32 16 1bit: 48, 32, 16 I have tried restarting and zipping/unzipping to force a Finder refresh I have tried omitting the 32bit 128 I have even tried an icns file that used to work before I got a MacMini The Windows ico version displays fine. What am I doing wrong? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
test
testing. pls move on. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
ChartMaker: User Experiences
ChartMaker is a fast and small footprint library utility for LiveCode. The website now has a 'User Experiences' page of articles at www.FlexibleLearning.com/chartmaker/myexperience including how it deploys on iOS, thanks to the contributors. If you have used ChartMaker, do please contact me to publish your experiences, any tips or why it suited your project. Sharing your experience and insights really does help other people as well as providing a window on your own work! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Wherefore revPropertyPalette
The persistent mis-use of this word REALLY annoys me! 'Wherefore' is 'Why' in modern parlance, and not (nor has ever been) 'where'. Back to your normal browsing. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Cursor woes
Looks like 2 issues here. First getting the cursor to stick; second getting the correct cursor display. Lock/Unlock cursor should resolve the first; importing and using your own cursor image should resolve the second. local cHand=999100 local cArrow=999101 on mouseEnter if button is word 1 of the target then set the cursor to cHand else set the cursor to cArrow lock cursor end mouseEnter on mouseLeave unlock cursor pass mouseLeave end mouseLeave Hugh Senior FLCo Chip Thomas wrote: Having some trouble changing the cursor, and hope someone can help shed some light on the topic. I have a mouseEnter script on the main card that checks if the target is a button. If it's a button, it sets the cursor to hand. If not, it sets it to arrow. I've tried implementing this in two different projects. One project is a launcher system where the standalone just launches a separate main stack file. The cursor script is on the card of this stack file. In this project, I don't get any cursor changes except when in the development environment. The second project is just a regular standalone with the cursor script on the main card of the standalone. I do get a cursor change, but I get a watch rather than a hand. Argh! Any help would be much appreciated. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Lion: 10 Things that Bug Me
I read this and thought of all the posts here... http://www.tuaw.com/2011/07/20/lion-ten-things-that-bug-me/ Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: getting from exe to Livecode
Try... on mouseUp answer file Select a Standalone... if it is cancel or it = then exit to top put url (binfile:it) into tStack repeat forever -- there's more than one stackfile in there which is interesting put offset(#!/bin/sh,char 10 to -1 of tStack) into tOff if tOff = 0 then exit repeat put char tOff+9 to -1 of tStack into tStack end repeat ask file Name the Stack... if it is cancel or it = then exit to top set the fileType to RevoRSTK put tStack into url (binfile:it) answer Conversion finished with OK end mouseUp From the Scripter's Scrapbook Hugh Senior FLCo Alistair Campbell wrote: Hi, I have just discovered, after numerous changes of my operating system (finally settled on Ubuntu) for various reasons, that I have deleted (doh!) my latest version of an application that I was working on. I did do backups and archive and all the rest but these files were worked on in a rush and I obviously forgot to put them where they needed to be for capture (damn and blast). I usually also print out a hard copy of the scripts that I am writing but, wouldn't you know it, I didn't do that this time. I do, however, have a windows exe file of the last version which I (happily enough) emailed to a student to use in his project. I bet you can see where this is going. Can anyone tell me whether there is a straightforward (not necessarily simple) way of reverse engineering the exe file so that I can get at the scripts? cheers Alistair Campbell Townsville ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: a color picker widget?
On Jul 6, 2011, at 11:58 PM, Slava Paperno wrote: Is there a color-picker widget that I could insert into my stack? I want the user to be able to choose a color. I know I can simply display a graphic with a color wheel and tell the user to click (and test the color under the mouse), but a conventional interface for choosing a color would be best... Ken suggested... answer color put it into tRGB Note that you can also specify the picker's initial display color to avoid the default of black... answer color with myRGBTriplet put it into tRGB Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Non-Blocking Modal (was: Visual Effect comand)
This undocumented feature is especially useful for displaying a progress bar in a modal window. Hugh Senior FLCo Looks like the show and hide commands allow you to name a stack, but there's no way to specify that the stack should be modal, which is what I need. I thought about trying go invisible stackname as modal followed by the show command but I think the script would stop execution at the go command so the show would never happen until after I return from the modal stack. Actually, Pete, you found the one way to create a *non-modal* modal... it's a way I've used many times to show a modal progress bar that does not block script execution: put Before go invisible stack MyModal as modal set visible of stack MyModal to true put After -- Puts Before, opens the modal, then immediately puts After into the message box, and the modal is still open So perhaps it *would* work for you after all... Ken ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: ChartMaker server-side
Hi Pierre, Have you tried it? I don't do anything server-side so cannot advise you specifically. Since it is a library of LiveCode with no other dependencies, it should be compatible with any LiveCode implementation. The only requirementis that the graphic be drawn to the first available topStack. If a server-side ChartMaker has legs, contact me off-list and we can pursue the implementation. Best regards Hugh Senior FLCo On Fri, 17 Jun 2011, Pierre Sahores wrote Hi Hugh, Thanks for this announcement. Is it or will it be soon, ways to use your library on the server-side (irev based, fore coming announced protected stacks support for LC-Server) just alike dedicated libs does under the PHP platform ? Best regards, Pierre ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: ChartMaker axis dates
Hi Andy, Currently you pass the required text to be displayed, so the conversion would be done by your app before feeding the values as a parameter to ChartMaker. However, I will certainly look into handling date conversion within the ChartMaker engine as an option. Best regards, Hugh Senior FLCo On Fri, 17 Jun 2011, Andy Henshaw wrote: Hi Hugh, Is is possible to have an x-axis of dates using chartmaker? I use chartsengine at the moment, but it would be good to have a choice for each app. At the moment I can just send a series of data with the x axis data in 'seconds' and chartsengine converts these to dates, and spaces them appropriately even if for example the first entry was on day 1, the 2nd on day 10, 3rd on day 12 etc. The engine just puts the correct spacing into the line chart. Is this also possible with chartsengine or would I need to convert the seconds to dates, and work out the data so each x axis item was the same number of days apart? I tried the demo and this was the only thing that stopped me buying there and then. Thanks Andy ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker update
ChartMaker for LiveCode Version 2.1 build 49 A maintenance update is now available. It is free for all 2.1 registered users and a discounted price is available to version 2.0 users. Click the 'Check for updates' link in the software. There is a 30-day free trial if you do not yet have a licence. http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm What's New in build 49 Trend Line improvements Two new chart styles. DropShadows can now be applied to all chart types. Improved axis labelling for smaller grid-based charts. Graduated tint borders give a more polished look. The Utility window now remembers its set-up and position between sessions. Video tutorials Are available on the support site at http://www.flexiblelearning.com/chartmaker/cmrc and on YouTube at http://www.youtube.com/user/ChartMaker4LC. All are bite-sized for easy digestion! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: nuther new newbie nuisance
Importing images and/or using imageSource will make a very big stack! It is often better to set the fileName of an image to an externally stored jpg, gif or png... eg: set the filename of image 1 to bird1.jpg If you have a lot of images, you could keep them in a folder then use a relative path instead... eg. set the filename of image 1 to ./myAppImages/bird1.jpg Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Rotated text quality
Manipulating an external png behaves differently to manipulating a screenshot. - If I import a transparent png of rotated text and reduce the dimensions, the printed result retains the increased pixel density and gives a crisp result. - If I export a screenshot of the same text at 3x font size to a var, set the png data of a new image to var, rotate the img at best quality and reduce the dimensions, the printed result is still 72dpi. Is there a way to increase pixel density using screenshots? Anyone get an example of how they do it? Have fought this for ages to no avail! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker on YouTube
ChartMaker4LC A new channel for ChartMaker for LiveCode with easy-access video tutorials is now available on YouTube at www.youtube.com/user/ChartMaker4LC The 'HowTo' Topics currently covered include... - How to install ChartMaker - The Toolbar in ChartMaker - How to Create and Save in ChartMaker - Designing Output in ChartMaker - How to Apply Syntax in ChartMaker - Restoring Charts in ChartMaker - How to Print To PDF in ChartMaker Click the 'Subscribe' button to be kept informed as new material is added. More information, support, What's New and the free trial download at www.FlexibleLearning.com/chartmaker Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Building Metacard
See the instruction pdf file (MC Insall Guide for LC) that I uploaded to the MetaCard group at http://tech.groups.yahoo.com/group/MC_IDE/. It is still valid, despite referring to v4.5! Hugh Senior FLCo From: Richmond asked Somewhere down the line I mislaid my Metacard constructed with the aid of Jacque's excellent stack and MC 2.5 on my macMini G4. So I tired to do that again with LC 4.5-dp-4 and ended up with something called Metacard but in fact really being almost completely LC; so, obviously not really working very well at present. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker video tutorials available
Two additional video tutorials have been released for ChartMaker covering how to use the Chart Restorer and how to print charts to PDF by scripting. Go to the dedicated support center at www.FlexibleLearning.com/chartmaker/cmrc. All tutorials are also available on YouTube at www.youtube.com/watch?v=pBJXhfUo_Yg To see what ChartMaker can do for you and get a free 30-day trial, go to www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm and click the link to download the plugin. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: eBooks and LiveCode
Absolutely agree with you, Steve. I wrote 'HyperManuscript' back in 1986 in conjunction with Roehampton Institute here in the UK. Far too much before its time, though. The problem now is one of critical mass... As you and Andre both point out, there are now a couple of entrenched standards so the choices are [1] support the existing standards, [2] launch an alternative, or [3] support the standards but extended to support LC-specific functionality/features. Whichever schema is used, LC will be up against the existing market supply. I suspect Amazon will be giving away their e-book hardware within the next 12-18 months; money is not in hardware but the software/services that use it. Cloud delivery to multiple platforms avoids this hardware problem but to make any impact at all, an LC app would have to enter the market with a substantial library of titles (several thousands) or it will be seen and reviewed as a niche-minnow if it is seen at all. And then there is HTML5, of course. Hugh Senior FLCo From: stgoldb...@aol.com stgoldb...@aol.com Subject: eBooks and LiveCode Regarding the question of whether LiveCode could be suitable for publishers who want to create interactive eBooks, I agree that such books would not be published in epub or amz format, but how about an eBook created with LiveCode as a pure LiveCode standalone that could be read in the cloud? Then, it would be accessible through Macintosh, Windows, and eReaders such as iPad that communicate with the Internet. The question is one of typesetting and laying out the book so that it looks professional (Scott Rossi quality!?) and also would have a means to discourage pirating. The advantage of considering LiveCode is the vast flexibility that it would have in introducing interactivity within the book. LiveCode's potential for this presently seems to exceed that of current means of creating eBooks (such as using Quark Express for the Blio Reader). There is a growing emphasis on creating eBooks that are not merely electronic versions of print books, but books that have something extra, the inclusion of interactivity in the form of hyperlinks, audio, and movies. Could LiveCode be a significant contributor to this? Steve Goldberg From: Andre Garzia an...@andregarzia.com Subject: Re: eBooks and LiveCode eBooks these days basically mean one of the following file formats: * PDF * mobi * nook * ePub ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Livecode Crashes with Image Source Set to a URL
Hi Ray, Just a suggestion... on mouseUp lock messages go next card put the short name of this cd into fld CardName --| Add this line... get flushEvents(all) --| And this for completeness... unlock messages end mouseUp Does it solve your problem? You are also not unlocking messages, which (techincally) is a good thing to do unless there is a good reason not to do so. Hugh Senior FLCo Ray Horsley r...@linkit.com wrote: I've created a simple stack of 3 cards with Prev and Next buttons to navigate through them. Each card has a single field with a single character whose imageSource is set to a URL, for example: http://linkit.com/Schools/ETS%20Items/ETS%20Item%20Bank/ETS10Q1/01%20Full%20 Bank/06%20Math%20QTI%20with%20GUIDs%20and%2096dpi%20PNG/Grade%2007Math-51/im ages/mml1616474.png To make sure no other handlers are running unnecessarily I've written the button scripts as: on mouseUp lock messages go next card put the short name of this cd into fld CardName end mouseUp Nonetheless, if you repeatedly click either the Prev or Next button rapidly Livecode will crash (quit unexpectedly and without warning). In some cases the stack file itself becomes coruppted and can not be re-opened. (I'd love to share this tiny stack with anybody who's interested. Please let me know.) Any ideas anybody? Thanks, Ray ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Livecode Crashes with Image Source Set to a URL
Ray I cannot crash your stack. Works fine. Windows XP w/4.5.2 in the mc IDE. Am suspecting either the version or (heaven forfend) the LC IDE. Why use a url-based imgSrc? Why not store the imgs in a substack instead? If you have to fequently update the imgs, can you 'start using' a url-based stack of the required img references on launch so it's in cache instead? Hugh Senior FLCo Ray wrote: Please take a look if you have a minute. I can't get anything to keep Livecode from totaling crashing with this rather simple stack. Even if I had some way of knowing when the imageSource's URL has finished downloading I could disable buttons so requests don't seemingly back up and crash Livecode. Thanks, Ray ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker update released
ChartMaker for LiveCode Version 2.1 build 47 A maintenance update is now available. It is free for all 2.1 registered users and a discounted price is available to version 2.0 users. Click the 'Check for updates' link in the software. There is a 30-day free trial if you do not yet have a licence. http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm What's New in build 47 Trend Line improvements . The trend information can now be retrieved from any displayed trend line. See CMgetTrendInfo in the documentation for details. . Each trend line now includes a tooltip of the associated trend information. . Trend lines now display as expected when all values are the same. . Null values are now averaged from the other values. If the values cannot be resolved, no trend line is drawn. . Single point trend lines no longer throw an error. They are simply not drawn. Pie Chart improvements . Pie charts now resolve rounding errors and handle null values. Color Scheme improvements . Custom color schemes may now be defined in external text files. See ColorScheme in the documentation for details. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to generate user passwords
Your function generates very random strings which might be too random for a user to remember on their own. Just a playful idea... on mouseUp put passwordPhrase() end mouseUp function passwordPhrase return w1() w2() w3() w4() w5() end passwordPhrase function w1 return item random(4) of All,None of the,Some,Several end w1 function w2 return item random(4) of roads,streets,motorways,buses end w2 function w3 return item random(4) of frequently,often,sometimes,occasionally end w3 function w4 return item random(4) of go to,pass by,avoid,congest end w4 function w5 return item random(4) of Rome,Paris,London,New York end w5 Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: RunRev Application
Hi Warren, This is for Windows, but the same principle should work on a Mac also. From The Scripter's Scrapbook (www.ssbk.co.uk): Detecting a second instance of an application under Windows. You create a 'known' file on the system disk somewhere and open it with a lock - if the file isn't there or isn't locked, it means the engine isn't currently running. The lock is owned by the currently running instance of the engine and is there just in case the running instance 'goes away' without deleting the file. On Windows, locks are always cleaned up when an application quits - so a second instance of an engine can always detect if there is already an instance running by first checking for existence and then trying to delete the file if present - if the delete succeeds it means the owning instance has indeed 'gone away'. IIRC, at present the lock is just implemented via keeping an open file handle with a given share-mode - although, just keeping the file open would probably suffice now that I come to think of it (all files opened by an application are also implicitly closed on exit). Anyway, the idea behind the 'lock' idea is that it ensures you can (without fail) detect if there is a running instance - even if a previous instance has left its identifying file behind by mistake. -- Sample by FLCo for Revolution... on startUp local dummy put specialFolderPath(35) /myAppDummy into dummy if there is a file dummy then delete file dummy if the result is not empty then answer 2nd Instance with QUIT quit end if end if open file dummy end startUp on closeStack local dummy put specialFolderPath(35) /myAppDummy into dummy delete file dummy end closeStack -- On Sun, 24 Apr 2011 11:55:46 Warren Kuhl wrote: Is there a way to prevent multiple occurrences of a RunRev application to open? Thanks, Warren ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Free LiveCode eBook and The Scripter's Scrapbook
A great contribution. Well done, Scott! For a way to store these pearls of wisdom, add the full content, the file or a link to it use The Scripter's Scrapbook... It's free to try out and contains a starter-kit of over 270 examples of code, links, web resources, tutorials, gotchas and how-to's that you can keep, modify, delete, add to and organize to best suit you. http://www.FlexibleLearning.com/ssbk or http://www.runrev.com/store/product/scripters-scrapbook-1-0-0/ An article is also available at http://livecodejournal.com/features/scripters-scrapbook.html Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Omegabundle 2011 for LiveCode
This is a great bundle deal with a range of the most popular LiveCode products included. I am delighted that RunRev is supporting it! Hugh Senior FLCo OmegaBundle for LiveCode 2011 at www.omegabundle.com On Mon, 18 Apr 2011, Lynn Fredricks wrote... Hello all, Runtime Revolution has thrown in their support to the Omegabundle 2011 for LiveCode offers! check it out: http://www.omegabundle.com/ Omegabundle 2011 for LiveCode (new user) includes LiveCode Pro/Commercial (your choice of desktop + one mobile platform) plus the following: *A $500 discount coupon towards RunRevLive.11 Developer Conference, held April 26-29 2011 in San Jose, California. RunRevLive.11 has over 40 sessions of valuable presentations and lessons. * Animation Engine 4. Powerful LiveCode library for rendering animation through Livecode apps built for the desktop and for iPhone. Sold separately for $79.00. * SQL Yoga. Makes developing data-driven solutions easy by tranforming database complexities into common LiveCode processes. Sold separately for $199. * Flexible Learning ChartMaker. A fully featured cross-platform library solution designed to create professional charts in your own work. Sold separately for $79.00. * ASG DataGrid Helper. A complete set of tools for rapidly creating professional business layouts and data grids for the desktop and for iPhone. Sold separately for $49. * .com Solutions FmPro Migrator Platinum Edition. Migrates FileMaker and Access to MySQL, Oracle, Access, SQL Server, Sybase, DB2, OpenBase, PostgreSQL, FrontBase, SQLite and Valentina and Convert interfaces to LiveCode. Sold separately for $600. * tm tools. Tactile Media pro interface building tools for LiveCode, including tm color, tm gradient, tm audio, tm guage, tm numeric, tm align. Sold separately for $226. * Aspen Icon Set. 80 professionally designed, cross platform compatible icons for your applications. Sold separately for $179.00. * Valentina Office Server Unlimited. Advanced database and reports server based on the ultra fast columnar database engine Valentina. Sold separately for $1499. * Franklin 3D Game Engine. Multi-platform cross-platform 3D engine for games, simulations and 3D apps. Sold Separately for $299. * Flexible Learning Scripter's Scrapbook. A knowledge rich resource for collecting code resources and accessing years of shared resources of LiveCode professional developers. Sold separately for $79.00. * Valentina ADK+ for LiveCode. Embedded local ultra fast analytical database for LiveCode on Windows, Mac OS X and Linux. Sold separately for $399.00. You can get this bundle WITH LiveCode Pro for $499, or without LiveCode for $399. This makes it a great option if you already have LiveCode! Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker Update Release
If you downloaded a copy of the recent ChartMaker 2.1 update, please check for and download a correction issued today by clicking 'Check for updates...' in the software. It remedies problems when cell editing in the Utility Wizard. This is obviously a free update for licence holders and we apologize for any inconvenience caused. Alternatively, go to www.FlexibleLearning.com/chartmaker/versioning/whatsnew.htm to see details and previews of the new release and download a copy from there. It includes a free 30-day trial and there is a discounted upgrade path. If you have version 2.0, the 'Check for updates...' will download an html link to the new website location for you. Just follow the breadcrumbs! Regards, Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker free update
We are pleased to announce a free update for ChartMaker 2.1 [build 46]. If you have version 2.0, there is a discounted upgrade path available that includes all the other new features such as PDF printing, max/min ranges and bi-color toned backgrounds. What's New? In the Library, we now have... - Scatter charts - Linear regression Trend Lines with optional stats information - 3D Drop Shadows and - The lifting of the 100x100 iOS chart size restriction. In the Wizard, we now have... - Cell editing and alternating row color options - Personal color palettes - 'Quick-Pick' color names menus - A new disclosure-style layout and - A new Playground for you to try out and investigate. Details with preview images are at http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm To download the new version, click 'Check for Updates...' in the software. For a free 30-day trial, go to http://www.flexiblelearning.com/chartmaker Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Scripter's Scrapbook query [Win7/4.6]
If you are using the Scripter's Scrapbook as a plugin with LiveCode v4.6 and Windows 7, would you please contact me off-list at admin(at)FlexibleLearning.com Thank you. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode color map
On 03/13/2011 11:29 PM, FlexibleLearning wrote: I have uploaded an experimental color map. Comments welcome. www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev Richmod wrote: Funnily enough that looks extremely similar to the old Metacard Color Chooser without some of it useful features. [1] It bears no resemblance whatsoever to the MetaCard color palette [2] It is a MAP not a UTILITY Apart from that, you are correct on both points. Bob Sneidar wrote: Pretty cool. So now if I make this a library stack, could I assign colors by the names in this stack? That would be cool. Of course you can, Bob. You can set the color of any object by RGB, hex, LiveCode name or even by a number. The purpose of this map is as an investigation of layout and distribution only. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
LiveCode color map
I have uploaded an experimental color map. Comments welcome. www.FlexibleLearning.com/colorMap/LiveCodeColorMap.rev Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Efficiency question for list modification
Proof of how optimized syntax can make an enormous difference to speed (by orders of magnitude in this case). This is BAD... repeat for each line L in tData add 1 to n put (item 1 of L/div1) into item 1 of line n of stdout put (item 2 of L/div2) into item 2 of line n of stdout end repeat This is GOOD... repeat for each line L in tData put (item 1 of L/div1) , (item 2 of L/div2) CR after stdout end repeat The Rule is: Less is More. Obvious with hindsight. Should have optimized before asking. Note to self: Do not expect to function on 4 hours of sleep. Thanks to all who investigated and contributed. Wrists considered slapped. Hugh Senior FLCo --- Original was: Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: 1. Using repeat with n=1 to num of lines takes far too long. 2. Using repeat for each line L either attempts to modify read-only data, or is only 25% faster using a dumping variable. 3. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Efficiency question for list modification
Problem: I have a long list of several thousand lines. Each line contains two comma-separated numbers. I want to divide the first item of each line by one divisor, and divide the second item of each line by a different divisor. The list order must stay the same. Example: Using 2 and 5 as divisors... 10,10 12,15 8,12 would become 5,2 6,3 4,2.4 Options: Using repeat with n=1 to num of lines takes far too long. Using repeat for each line L either attempts to modify read-only data, or is only 25% faster using a dumping variable. Using split/combine will mess up the ordering (numeric array keys are not sorted numerically with combine). Any other ideas? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] New ChartMaker release
An upgrade for ChartMaker has been released. It has also moved home to its own website. If you already have a copy, you can click 'Check for updates...' in the program, download the file and follow the link. If you would like to investigate ChartMaker, see a screencast, find out what's new in this release and download a free trial, go to www.flexibleLearning.com/chartmaker You can also download a free trial and purchase ChartMaker from the runRev store at http://www.runrev.com/store/product/chartmaker/ My public thanks to all the beta testers; you are stars, each one of you! Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: roundUp500
Yeah! Minor tweak and it's working: function roundUp500 theNumber return trunc((theNumber-1)/500+1)*500 end roundUp500 Many thanks Mark and Brian. I love this group. Hugh Senior FLCo On 3 mrt 2011, at 18:06, FlexibleLearning wrote: Here's a poser for you all... How to round a number UP to the nearest 500? Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Easy way to create Win .ico on Mac?
You haven't got IrfanView (www.irfanview.com)? Basically does everything except pixel editing, including ico save. And it's completely free. Wow... We should have you stuffed as an endangered species! :) Hugh Senior FLCo On Sat, 19 Feb 2011, Richmond wrote: I shall point out again that GIMP exports Windows Icons - http://www.gimp.org/ This is also worth a look: http://iconverticons.com (an online solution; of course the people behind it probably end up with copies of your icons) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to : print a A4 stack to an A4 pdf ??
Hi Robert, Question users! Has anybody achieved printing a standard A4 portrait stack (595 x 842 pixels) with the open printing to pdf command??? If yes.. please share! I can't make it work over here. Try this... on print2pdf --| Requires v4.5 and revpdfprinter.dll in the same directory as the engine... put [Title of document] into optionArray[Title] put [Your Name] into optionArray[Author] put [Subject of document] into optionArray[Subject] put Created by [MyAppName] into optionArray[Creator] put LiveCode 4.5 pdf engine into optionArray[Producer] put [List of key words] into optionArray[Keywords] -- set the itemDel to / put item 1 to -2 of the effective filename of this stack/pdfprintfile.pdf into tFilePath ask file Save as... with tFilePath if it= then exit to top put it into tFilePath if char -4 to -1 of tFilePath .pdf then put .pdf after tFilePath -- reset printing set the formatforprinting of this stack to false set the printPaperSize to the width of this stack,the height of this stack # e.g. for A4: 595,842 set the printMargins to 0,0,0,0 open printing to pdf tFilePath with options optionArray print this card close printing reset printing end print2pdf Ensure you leave sufficient unused space on the card for your printer's minimum margins. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Show Linktext on mousemove
HoverLink... How to change the cursor and tooltip on linktext mouseOver. This example handles a field that is normally unlocked, but allows the user to click and activate the contents on mouseOver. - From The Scripter's Scrapbook local tLinkChunk on mouseMove if (the selectedtext is NOT empty) then pass mouseMove if (the mouse is down) OR (the controlKey is down) then pass MouseMove if (the mouseChunk is not empty) AND (the mouseChunk=tLinkChunk) then pass mouseMove # Avoid repeated check on the same text if (tLinkChunk is NOT empty) AND (tLinkChunk is NOT the mouseChunk) then restoreStyle exit mouseMove end if if (the mouseChunk is NOT empty) AND (link is in the textstyle of the mouseChunk) then adjustStyle pass mouseMove end mouseMove on adjustStyle -- Adjust style set the lockText of me to TRUE --| Or ignore this line to leave the fld locked put the mouseChunk into tLinkChunk set the cursor to 8 set the lockCursor to true set the tooltip of me to the linkText of the mouseChunk end adjustStyle on restoreStyle -- Restore style set the lockText of me to FALSE if tLinkChunk is empty then exit restoreStyle end if put empty into tLinkChunk set the lockCursor to false set the tooltip of me to end restoreStyle - May be of some use to you. Best wishes Hugh Senior FLCo -- Original Message Date: Sun, 23 Jan 2011 12:48:11 -0800 (PST) From: Alejandro Tejada capellan2...@gmail.com Hi Jeff, I found a reliable way to recreate the error everytime. The condition that trigguers the error occurs only when mouseText (or mouseCharChunk) is empty. Adding another condition: the mousetext is not empty to IF, THEN, ELSE solves the error: on mousemove if the hilite of button ShowLinkText and the mousetext empty and \ the linktext of the mousetext empty then put Actual link is: the linktext of the mousetext into fld ActualLink set the textcolor of char 44 to -1 of fld ActualLink to blue else put empty into fld ActualLink end if end mousemove Many thanks for your idea, Jeff! :-) Al -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] ChartMaker update
An update to ChartMaker is available, including a new playground stack demonstrating on-screen data input. Click the 'Check for updates...' link in the program, or read about this library and download a free trial copy here: http://www.runrev.com/store/product/chartmaker About... ChartMaker - A library solution with wizard to present and manipulate charts ChartMaker from The Flexible Learning Company is a fully featured cross-platform library solution designed to create professional charts in your own work. The download includes a wizard, fully annotated documentation and unlocked example Playgrounds. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] Beta testing of ImageOrganizer
Hi David, There will be only one exe program for Windows, but XP, Vista and Win7 each have their own ideosynchrasies and we need to cover all the bases in the testing. Macs will require Snow Leopard. Best regards, Hugh Senior FLCo As much as I wish it to be otherwise, I truly cannot contribute any time for beta testing (or very little at best), but I do have to say that the appearance is very professional and awesome looking! Nice stuff. :-) I do have a question for you... It appears that you have the Windows version of the program split up separately between XP and Vista/Win 7 Am I reading that correctly and if so, why did you choose to go that route? Best regards, David C. If you have an interest and are willing to provide constructive feedback and comments, please contact me off-list indicating your platform of choice (Mac, XP, Vista or Win7). Some screenshots are available... www.flexiblelearning.com/imageorganizerBeta or individually www.flexiblelearning.com/imageorganizerBeta/imageorganizer1.png www.flexiblelearning.com/imageorganizerBeta/imageorganizer2.png www.flexiblelearning.com/imageorganizerBeta/imageorganizer3.png Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode