From pete at mollysrevenge.com Tue Feb 1 00:05:00 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 21:05:00 -0800 Subject: Weird defaultStack behavior Message-ID: <5F7E81E0-8380-4CC7-8EF2-311A6E65FA02@mollysrevenge.com> I have something strange going on related to the setting of the defaultStack. It's a little complicated t0 explain, I'll do my best. My application puts up a modal dialog window ( "ModalCardB") when the user clicks on a button on a particular card "CardA". ModalCardB starts off life with two controls on it but the user can add more pairs of these controls by clicking on a third button control. Each new pair of controls is created by copying the first pair, setting their rectangle to position them beneath the original pair, and changing the height of the stack. When the user clicks on a final button to close ModalCardB, I set the dialogData to the contents of all the pairs of controls, one per line, delete all the pairs of controls except the original pair, and close ModalCardB. After ModalCardB is closed, the script of the CardA button grabs the dialogData and continue to process it. Here's the problem. Immediately after I come out of ModalCardB, the defaultstack is set differently depending on whether the user filled in just the initial pair of controls or added more pairs. When just the initial pair of controls is used, the defaultStack is set to CardA's stack. When more than one pair of controls is used, the defaultStack is set to ModalCardB's stack, which totally messes up CardA's button script. I can't hard code the stack name because this is a generic script I want to use in many places. What could be causing this? I assume it must be something to do with dynamically adding and deleting controls to the modal card, but maybe it's a bug? If it is a bug, how can I work around it? Pete Haworth From pepetoo at cox.net Tue Feb 1 00:12:09 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 21:12:09 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME Message-ID: Hi All, Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? Joe Lewis Wilkins Architect & Director of Product Development for GSI From warren at warrensweb.us Tue Feb 1 00:16:51 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 31 Jan 2011 23:16:51 -0600 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: <1296537411.8083.196.camel@mint-i7> On Mon, 2011-01-31 at 21:12 -0800, Joe Lewis Wilkins wrote: > Hi All, > > Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > > > Is this a complaint? From pepetoo at cox.net Tue Feb 1 00:18:00 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 21:18:00 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: <547B9BD5-2752-46B7-AC8F-5EDB02D7AB36@cox.net> Interesting. I switch from FireFox to Safari and Google works fine. Hmn! Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 9:12 PM, Joe Lewis Wilkins wrote: > Hi All, > > Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pepetoo at cox.net Tue Feb 1 00:19:51 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 21:19:51 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <1296537411.8083.196.camel@mint-i7> References: <1296537411.8083.196.camel@mint-i7> Message-ID: <11D2BDB7-6ADA-433E-AB36-50285A242E08@cox.net> I guess Warren, since I prefer FireFox to Safari by lots! Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 9:16 PM, Warren Samples wrote: > On Mon, 2011-01-31 at 21:12 -0800, Joe Lewis Wilkins wrote: >> Hi All, >> >> Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? >> >> Joe Lewis Wilkins >> Architect & Director of Product Development for GSI >> >> >> >> >> >> > > > Is this a complaint? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From warren at warrensweb.us Tue Feb 1 00:21:21 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 31 Jan 2011 23:21:21 -0600 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: <1296537681.8083.198.camel@mint-i7> On Mon, 2011-01-31 at 21:12 -0800, Joe Lewis Wilkins wrote: > Hi All, > > Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > > > google is reachable here, but feel free to send this "problem" to me... I want google to leave me alone :D From warren at warrensweb.us Tue Feb 1 00:36:20 2011 From: warren at warrensweb.us (Warren Samples) Date: Mon, 31 Jan 2011 23:36:20 -0600 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <11D2BDB7-6ADA-433E-AB36-50285A242E08@cox.net> References: <1296537411.8083.196.camel@mint-i7> <11D2BDB7-6ADA-433E-AB36-50285A242E08@cox.net> Message-ID: <1296538580.8083.207.camel@mint-i7> On Mon, 2011-01-31 at 21:19 -0800, Joe Lewis Wilkins wrote: > I guess Warren, since I prefer FireFox to Safari by lots! > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > On Jan 31, 2011, at 9:16 PM, Warren Samples wrote: > > > On Mon, 2011-01-31 at 21:12 -0800, Joe Lewis Wilkins wrote: > >> Hi All, > >> > >> Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > >> > >> Joe Lewis Wilkins > >> Architect & Director of Product Development for GSI > >> > >> > >> > >> > >> > >> > > > > > > Is this a complaint? > > My irreverence wasn't directed at the browser dilemma ;) I have a longstanding and very strong preference for a particular browser and it really bothers me when I run into one of those browser blocking scripts that tells me I have to use the browser "they" like. Good luck with your problem :) Warren From pete at mollysrevenge.com Tue Feb 1 00:37:04 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 21:37:04 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: Assuming you mean typing a search into the Firefox search box, Firefox 3.6.13 works fine for me on Snow Leopard. Maybe you need an update to FireFox? Pete Haworth On Jan 31, 2011, at 9:12 PM, Joe Lewis Wilkins wrote: > Hi All, > > Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pepetoo at cox.net Tue Feb 1 01:10:40 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 22:10:40 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: Hi Pete, Same FireFox I'm using. Really mysterious. FireFox works OK, except for the Google Search. Started happening yesterday. I thought Google might be closed down for maintenance or something, but finding it works with Safari precludes that. So...? Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 9:37 PM, Peter Haworth wrote: > Assuming you mean typing a search into the Firefox search box, Firefox 3.6.13 works fine for me on Snow Leopard. Maybe you need an update to FireFox? > > Pete Haworth > > On Jan 31, 2011, at 9:12 PM, Joe Lewis Wilkins wrote: > >> Hi All, >> >> Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? From pete at mollysrevenge.com Tue Feb 1 01:22:27 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 22:22:27 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: Weird. When you say it doesn't work, what exactly happens? Error message, no results displayed, never connects to Google? Pete Haworth On Jan 31, 2011, at 10:10 PM, Joe Lewis Wilkins wrote: > Hi Pete, > > Same FireFox I'm using. Really mysterious. FireFox works OK, except for the Google Search. Started happening yesterday. I thought Google might be closed down for maintenance or something, but finding it works with Safari precludes that. So...? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > On Jan 31, 2011, at 9:37 PM, Peter Haworth wrote: > >> Assuming you mean typing a search into the Firefox search box, Firefox 3.6.13 works fine for me on Snow Leopard. Maybe you need an update to FireFox? >> >> Pete Haworth >> >> On Jan 31, 2011, at 9:12 PM, Joe Lewis Wilkins wrote: >> >>> Hi All, >>> >>> Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pepetoo at cox.net Tue Feb 1 02:08:33 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 23:08:33 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> Never connects to Google. Just sits there doing nothing. I've tried it from a number of websites and it's just dead. Wondering if I should post it to FireFox someplace. I use Google Search for a lot of things. The ASK search engineer does work from FireFox, however. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 10:22 PM, Peter Haworth wrote: > Weird. When you say it doesn't work, what exactly happens? Error message, no results displayed, never connects to Google? > > Pete Haworth From pete at mollysrevenge.com Tue Feb 1 02:21:00 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 23:21:00 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> Message-ID: <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> Have you tried going directly to google.com as a url instead if using the search box? Curious as to what happens. Pete Haworth On Jan 31, 2011, at 11:08 PM, Joe Lewis Wilkins wrote: > Never connects to Google. Just sits there doing nothing. I've tried it from a number of websites and it's just dead. Wondering if I should post it to FireFox someplace. I use Google Search for a lot of things. The ASK search engineer does work from FireFox, however. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > On Jan 31, 2011, at 10:22 PM, Peter Haworth wrote: > >> Weird. When you say it doesn't work, what exactly happens? Error message, no results displayed, never connects to Google? >> >> Pete Haworth > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 02:36:32 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 23:36:32 -0800 Subject: Update on defaultStack problem Message-ID: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> I still have no idea why this is happening but I have fixed it by setting the defaultStack to the topStack immediately on return form the modal dialog. I'm now chasing down another problem. I have a mouseUp and a mouseDoubleUp handler for the same control. When I double click, the mouseUp handler is triggered, not the mouseDoubleUp. How do suppress the mouseUp processing in favour of the mouseDoubleUp? Pete Haworth From pepetoo at cox.net Tue Feb 1 02:38:59 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 23:38:59 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> Message-ID: <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> I've never had to do that, but it does work that way. Hmn! Actually the results seem to be better this way. Thanks Pete. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 11:21 PM, Peter Haworth wrote: > Have you tried going directly to google.com as a url instead if using the search box? Curious as to what happens. > > Pete Haworth > > On Jan 31, 2011, at 11:08 PM, Joe Lewis Wilkins wrote: > >> Never connects to Google. Just sits there doing nothing. I've tried it from a number of websites and it's just dead. Wondering if I should post it to FireFox someplace. I use Google Search for a lot of things. The ASK search engineer does work from FireFox, however. >> >> Joe Lewis Wilkins >> Architect & Director of Product Development for GSI >> >> From pete at mollysrevenge.com Tue Feb 1 02:48:04 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Mon, 31 Jan 2011 23:48:04 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> Message-ID: Doesn't explain why the normal method doesn't work but at least you can still use Google. I'd be tempted to re-install Firefox. Pete Haworth On Jan 31, 2011, at 11:38 PM, Joe Lewis Wilkins wrote: > I've never had to do that, but it does work that way. Hmn! Actually the results seem to be better this way. > > Thanks Pete. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > On Jan 31, 2011, at 11:21 PM, Peter Haworth wrote: > >> Have you tried going directly to google.com as a url instead if using the search box? Curious as to what happens. >> >> Pete Haworth >> >> On Jan 31, 2011, at 11:08 PM, Joe Lewis Wilkins wrote: >> >>> Never connects to Google. Just sits there doing nothing. I've tried it from a number of websites and it's just dead. Wondering if I should post it to FireFox someplace. I use Google Search for a lot of things. The ASK search engineer does work from FireFox, however. >>> >>> Joe Lewis Wilkins >>> Architect & Director of Product Development for GSI >>> >>> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pepetoo at cox.net Tue Feb 1 02:50:38 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 31 Jan 2011 23:50:38 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> Message-ID: <33E29932-59D2-4ED5-89FC-BC5A14316F28@cox.net> Too late tonight. I'll give it a try tomorrow. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Jan 31, 2011, at 11:48 PM, Peter Haworth wrote: > Doesn't explain why the normal method doesn't work but at least you can still use Google. I'd be tempted to re-install Firefox. > > Pete Haworth > > On Jan 31, 2011, at 11:38 PM, Joe Lewis Wilkins wrote: > >> I've never had to do that, but it does work that way. Hmn! Actually the results seem to be better this way. >> >> Thanks Pete. >> >> Joe Lewis Wilkins >> Architect & Director of Product Development for GSI >> From andre at andregarzia.com Tue Feb 1 06:07:37 2011 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 1 Feb 2011 09:07:37 -0200 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <33E29932-59D2-4ED5-89FC-BC5A14316F28@cox.net> References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> <33E29932-59D2-4ED5-89FC-BC5A14316F28@cox.net> Message-ID: did you install any extension? On Tue, Feb 1, 2011 at 5:50 AM, Joe Lewis Wilkins wrote: > Too late tonight. I'll give it a try tomorrow. > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > On Jan 31, 2011, at 11:48 PM, Peter Haworth wrote: > >> Doesn't explain why the normal method doesn't work but at least you can still use Google. ?I'd be tempted to re-install Firefox. >> >> Pete Haworth >> >> On Jan 31, 2011, at 11:38 PM, Joe Lewis Wilkins wrote: >> >>> I've never had to do that, but it does work that way. Hmn! Actually the results seem to be better this way. >>> >>> Thanks Pete. >>> >>> Joe Lewis Wilkins >>> Architect & Director of Product Development for GSI >>> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From palcibiades-first at yahoo.co.uk Tue Feb 1 06:16:14 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Tue, 1 Feb 2011 03:16:14 -0800 (PST) Subject: Linux standalone In-Reply-To: <4D47218C.5080508@fourthworld.com> References: <5D9CAC97-9E0F-4E52-BD04-2A3E017D8E7A@snowcamp.org> <4D47218C.5080508@fourthworld.com> Message-ID: <1296558974314-3250931.post@n4.nabble.com> I bought revBrowser for Linux several years ago. I think it was called altBrowser then or something like that, Rev had just bought that and the sqlite package, and there was some sort of special offer, so I thought, this will be neat. Still waiting. The pleasures of anticipation are often so much greater than any that could possibly come from experience. Who would have thought this could be true of software too? On second thought, don't release it. Let us, like Des Esseintes, continue to anticipate something whose arrival after all this time can only disappoint.... One similarly rather dreads the actual arrival of Duke Nukem. Lets hope that never materializes either. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Linux-standalone-tp3249617p3250931.html Sent from the Revolution - User mailing list archive at Nabble.com. From andre at andregarzia.com Tue Feb 1 06:38:22 2011 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 1 Feb 2011 09:38:22 -0200 Subject: Linux standalone In-Reply-To: <1296558974314-3250931.post@n4.nabble.com> References: <5D9CAC97-9E0F-4E52-BD04-2A3E017D8E7A@snowcamp.org> <4D47218C.5080508@fourthworld.com> <1296558974314-3250931.post@n4.nabble.com> Message-ID: Peter, I have altBrowser and I don't think it ever shipped a linux external... am I wrong? andre On Tue, Feb 1, 2011 at 9:16 AM, Peter Alcibiades wrote: > > I bought revBrowser for Linux several years ago. ?I think it was called > altBrowser then or something like that, Rev had just bought that and the > sqlite package, and there was some sort of special offer, so I thought, this > will be neat. ?Still waiting. > > The pleasures of anticipation are often so much greater than any that could > possibly come from experience. ?Who would have thought this could be true of > software too? ?On second thought, don't release it. ?Let us, like Des > Esseintes, continue to anticipate something whose arrival after all this > time can only disappoint.... > > One similarly rather dreads the actual arrival of Duke Nukem. ?Lets hope > that never materializes either. > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Linux-standalone-tp3249617p3250931.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From palcibiades-first at yahoo.co.uk Tue Feb 1 06:48:26 2011 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Tue, 1 Feb 2011 03:48:26 -0800 (PST) Subject: Linux standalone In-Reply-To: References: <5D9CAC97-9E0F-4E52-BD04-2A3E017D8E7A@snowcamp.org> <4D47218C.5080508@fourthworld.com> <1296558974314-3250931.post@n4.nabble.com> Message-ID: <1296560906265-3250988.post@n4.nabble.com> Andre Garzia-3 wrote: > > Peter, > > I have altBrowser and I don't think it ever shipped a linux > external... am I wrong? > > andre > > You are quite right. I did buy it, or thought I had, but it never shipped. Its a long time ago now, maybe there was a misunderstanding. Sqlite did arrive finally, and that was a significant added feature. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Linux-standalone-tp3249617p3250988.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Feb 1 08:11:49 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 05:11:49 -0800 Subject: Weird defaultStack behavior Message-ID: <4D480695.2040200@fourthworld.com> Peter Haworth wrote: > Here's the problem. > > Immediately after I come out of ModalCardB, the defaultstack is set > differently depending on whether the user filled in just the initial > pair of controls or added more pairs. > > When just the initial pair of controls is used, the defaultStack is > set to CardA's stack. > > When more than one pair of controls is used, the defaultStack is set > to ModalCardB's stack, which totally messes up CardA's button > script. I can't hard code the stack name because this is a generic > script I want to use in many places. > > What could be causing this? I assume it must be something to do with > dynamically adding and deleting controls to the modal card, but maybe > it's a bug? If it is a bug, how can I work around it? I've seen some anomalies with the defaultStack vs the modal command, but I've been too busy to pin them down. I've found that explicitly setting the default stack can help, in my case esp. after a modal is dismissed. It shouldn't be necessary, and if you can pin down a recipe please submit a bug report. But as a workaround, setting the default stack after modal seems to cover the issues I've run into here. HTH - -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jmyepes at mac.com Tue Feb 1 08:29:55 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 05:29:55 -0800 (PST) Subject: datagrid: rows disapear when add new row Message-ID: <1296566995885-3251346.post@n4.nabble.com> Hi, I detected a strange issue with the datagrid. When add a row that is out of the visibles rows and modify data and add a new row all the data disapear, still into the datagrid but isn't showed... if I add a new row I can see flashing the data but disapear. Any idea? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3251346.html Sent from the Revolution - User mailing list archive at Nabble.com. From larsbrehmer at mac.com Tue Feb 1 08:30:34 2011 From: larsbrehmer at mac.com (Lars Brehmer) Date: Tue, 01 Feb 2011 15:30:34 +0200 Subject: weird IDE behaviour Message-ID: <554D1B65-796E-46D8-AF6C-E5DDB5DD54BE@mac.com> For reasons unknown my rev (2.8) IDE is doing strange things and I don't know why. - command-S used to save the top stack, now it opens the stack's script editor. - the arrow keys used to move an object 1 pixel, now it moves it 10 the way shift-arrow key used to. This is rather inconvenient, because if I want to move 20 object, I must do them individually in the inspector! Any ideas? I have examined the preferences tried everything to get it back to normal. Cheers, Lars From m.schonewille at economy-x-talk.com Tue Feb 1 08:35:56 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 1 Feb 2011 14:35:56 +0100 Subject: weird IDE behaviour In-Reply-To: <554D1B65-796E-46D8-AF6C-E5DDB5DD54BE@mac.com> References: <554D1B65-796E-46D8-AF6C-E5DDB5DD54BE@mac.com> Message-ID: HMM... IF YOU WOULD HAVE WRITTEN YOUR ENTIRE E-MAIL LIKE THIS, THEN I WOULD HAVE HAD THE ANSWER... SORRY :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.5 for LiveCode here http://qery.us/ce On 1 feb 2011, at 14:30, Lars Brehmer wrote: > For reasons unknown my rev (2.8) IDE is doing strange things and I don't know why. > > - command-S used to save the top stack, now it opens the stack's script editor. > > - the arrow keys used to move an object 1 pixel, now it moves it 10 the way shift-arrow key used to. > > This is rather inconvenient, because if I want to move 20 object, I must do them individually in the inspector! > > Any ideas? I have examined the preferences tried everything to get it back to normal. > > Cheers, > > > Lars From pmbrig at gmail.com Tue Feb 1 08:47:32 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 1 Feb 2011 08:47:32 -0500 Subject: Enhancement Vote In-Reply-To: <738B04DC-8795-4F90-A7BC-80ED60C2838B@mollysrevenge.com> References: <738B04DC-8795-4F90-A7BC-80ED60C2838B@mollysrevenge.com> Message-ID: <8AA2DB78-B515-4F11-9782-8F0C028F1BA5@gmail.com> Looks as if Mark Waddingham has already started implementing this for the next build. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Jan 31, 2011, at 3:56 PM, Peter Haworth wrote: > I submitted a request a while back to have an option to sort the > substacks of a main stack in alpha name order in the IDE Application > Browser Window. It's report number 9299. I have no idea if the dev > team place any weight on the number of votes a request receives but > if this is something you would like to see, give it a vote at http://quality.runrev.com/qacenter/show_bug.cgi?id=9299 > > Thanks, > > Pete Haworth > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larsbrehmer at mac.com Tue Feb 1 08:49:45 2011 From: larsbrehmer at mac.com (Lars Brehmer) Date: Tue, 01 Feb 2011 15:49:45 +0200 Subject: weird IDE behaviour Message-ID: <86E4E425-FA22-4204-92FD-883CA828438F@mac.com> Never mind - I restarted my machine and it's back to normal! From ambassador at fourthworld.com Tue Feb 1 09:54:08 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 06:54:08 -0800 Subject: Update on defaultStack problem Message-ID: <4D481E90.4060805@fourthworld.com> Peter Haworth wrote: > I'm now chasing down another problem. I have a mouseUp and a > mouseDoubleUp handler for the same control. > When I double click, the mouseUp handler is triggered, not the > mouseDoubleUp. How do suppress the mouseUp processing in favour > of the mouseDoubleUp? What do you want to do on each of those actions? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From DunbarX at aol.com Tue Feb 1 09:55:53 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 09:55:53 EST Subject: Update on defaultStack problem Message-ID: <1e21e.53eae13c.3a7978f9@aol.com> I have always had this problem, that the engine will not distinguish the two "ups" if they are in the same handler. I use the old HC method: on mouseUp wait 15 --your comfort level if the mouseCllick then doDoubleStuff else doSingleStuff end mouseUp You can do triples and more this way. Old fashioned, and I wonder if I am just not carefully implementing the two variations correctly. Craig Newman From form at nonsanity.com Tue Feb 1 10:12:49 2011 From: form at nonsanity.com (form) Date: Tue, 1 Feb 2011 10:12:49 -0500 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> <33E29932-59D2-4ED5-89FC-BC5A14316F28@cox.net> Message-ID: This isn't really a LiveCode thread, but since it is here, I'll chime in and mention that you can change what the search box in Firefox goes to. Note the icon on the left side of the search box - Make sure its set to Google. It may have been changed to something else, and that something else isn't working. ~ Chris Innanen ~ Nonsanity On Tue, Feb 1, 2011 at 6:07 AM, Andre Garzia wrote: > did you install any extension? > > On Tue, Feb 1, 2011 at 5:50 AM, Joe Lewis Wilkins wrote: > > Too late tonight. I'll give it a try tomorrow. > > > > Joe Lewis Wilkins > > Architect & Director of Product Development for GSI > > > > > > On Jan 31, 2011, at 11:48 PM, Peter Haworth wrote: > > > >> Doesn't explain why the normal method doesn't work but at least you can > still use Google. I'd be tempted to re-install Firefox. > >> > >> Pete Haworth > >> > >> On Jan 31, 2011, at 11:38 PM, Joe Lewis Wilkins wrote: > >> > >>> I've never had to do that, but it does work that way. Hmn! Actually the > results seem to be better this way. > >>> > >>> Thanks Pete. > >>> > >>> Joe Lewis Wilkins > >>> Architect & Director of Product Development for GSI > >>> > From form at nonsanity.com Tue Feb 1 10:18:08 2011 From: form at nonsanity.com (form) Date: Tue, 1 Feb 2011 10:18:08 -0500 Subject: weird IDE behaviour In-Reply-To: <86E4E425-FA22-4204-92FD-883CA828438F@mac.com> References: <86E4E425-FA22-4204-92FD-883CA828438F@mac.com> Message-ID: I've seen this happen too, where LiveCode thinks the shiftkey is down for some things. Happened just yesterday, in fact. I've also suspected other modifier keys as getting "stuck", but I'm not sure about that. This usually happens when I'm right in the middle of something, and don't have time to let it continue and test it. I just restart the IDE. ~ Chris Innanen ~ Nonsanity On Tue, Feb 1, 2011 at 8:49 AM, Lars Brehmer wrote: > Never mind - I restarted my machine and it's back to normal! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Tue Feb 1 10:37:56 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 01 Feb 2011 16:37:56 +0100 Subject: Update on defaultStack problem In-Reply-To: <1e21e.53eae13c.3a7978f9@aol.com> References: <1e21e.53eae13c.3a7978f9@aol.com> Message-ID: <8F42866F-0AAE-4364-AC56-4259EC4A7050@mac.com> > on mouseUp > wait 15 --your comfort level > if the mouseCllick then doDoubleStuff > else doSingleStuff > end mouseUp > > You can do triples and more this way. Ooh nifty... tho i never had problems with both mouseUp and mouseDoubleUp... only that mouseDoubleUp tends to trigger once, when mouseUp would trigger twice, and therefore frantic clicking would produce confusing results. I even filed a bug once, only to realise later on, that everything was fine, only me clicking too damn fast. -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From pete at mollysrevenge.com Tue Feb 1 11:03:51 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 08:03:51 -0800 Subject: Enhancement Vote In-Reply-To: <8AA2DB78-B515-4F11-9782-8F0C028F1BA5@gmail.com> References: <738B04DC-8795-4F90-A7BC-80ED60C2838B@mollysrevenge.com> <8AA2DB78-B515-4F11-9782-8F0C028F1BA5@gmail.com> Message-ID: <7C3D11D9-F8C9-4845-B227-BCEBF12A0C0A@mollysrevenge.com> Yep, just got an email to that effect. Pete Haworth On Feb 1, 2011, at 5:47 AM, Peter Brigham MD wrote: > Looks as if Mark Waddingham has already started implementing this for the next build. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > On Jan 31, 2011, at 3:56 PM, Peter Haworth wrote: > >> I submitted a request a while back to have an option to sort the substacks of a main stack in alpha name order in the IDE Application Browser Window. It's report number 9299. I have no idea if the dev team place any weight on the number of votes a request receives but if this is something you would like to see, give it a vote at http://quality.runrev.com/qacenter/show_bug.cgi?id=9299 >> >> Thanks, >> >> Pete Haworth >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 11:06:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 08:06:08 -0800 Subject: Update on defaultStack problem In-Reply-To: <4D481E90.4060805@fourthworld.com> References: <4D481E90.4060805@fourthworld.com> Message-ID: <45BF80A2-3B31-4AAF-9D28-6BDA553AD4C3@mollysrevenge.com> The single mouse click invokes the modal dialog that was the subject of my defaultStack problems. The double click basically undoes the what the modal dialog logic did. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Feb 1, 2011, at 6:54 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > > I'm now chasing down another problem. I have a mouseUp and a > > mouseDoubleUp handler for the same control. > > When I double click, the mouseUp handler is triggered, not the > > mouseDoubleUp. How do suppress the mouseUp processing in favour > > of the mouseDoubleUp? > > What do you want to do on each of those actions? > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 11:07:08 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 08:07:08 -0800 Subject: Update on defaultStack problem In-Reply-To: <1e21e.53eae13c.3a7978f9@aol.com> References: <1e21e.53eae13c.3a7978f9@aol.com> Message-ID: Thanks Craig, I'll give that a try. Sounds like a bug in LC. Pete Haworth On Feb 1, 2011, at 6:55 AM, DunbarX at aol.com wrote: > I have always had this problem, that the engine will not distinguish the > two "ups" if they are in the same handler. > > I use the old HC method: > > on mouseUp > wait 15 --your comfort level > if the mouseCllick then doDoubleStuff > else doSingleStuff > end mouseUp > > You can do triples and more this way. > > Old fashioned, and I wonder if I am just not carefully implementing the two > variations correctly. > > Craig Newman > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pepetoo at cox.net Tue Feb 1 11:07:26 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Tue, 1 Feb 2011 08:07:26 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: <2551BCFF-4C38-4FF5-B023-3FE033A33C7F@cox.net> <17912DBF-C452-4E3A-8C8B-921457CEEEC8@mollysrevenge.com> <8117EED6-EC37-4570-9609-ACDE70A68B98@cox.net> <33E29932-59D2-4ED5-89FC-BC5A14316F28@cox.net> Message-ID: <4B1BBFA2-37BF-4A77-863B-410283BD8E23@cox.net> Nope! and I found the icon nannity mentioned early on. I'll look into some more this AM and report back to those interested. Joe Lewis Wilkins Architect & Director of Product Development for GSI On Feb 1, 2011, at 3:07 AM, Andre Garzia wrote: > did you install any extension? > > On Tue, Feb 1, 2011 at 5:50 AM, Joe Lewis Wilkins wrote: >> Too late tonight. I'll give it a try tomorrow. >> >> Joe Lewis Wilkins >> Architect & Director of Product Development for GSI >> From jiml at netrin.com Tue Feb 1 11:16:45 2011 From: jiml at netrin.com (Jim Lambert) Date: Tue, 1 Feb 2011 08:16:45 -0800 Subject: Update on defaultStack problem In-Reply-To: References: Message-ID: <859EBEE8-4194-4115-8647-4AC0E69595FB@netrin.com> You might also try comparing the effect on your mouseDoubleUp of passing the mouseup vs. not passing the mouseup. Jim Lambert From pete at mollysrevenge.com Tue Feb 1 11:22:31 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 08:22:31 -0800 Subject: Update on defaultStack problem In-Reply-To: <859EBEE8-4194-4115-8647-4AC0E69595FB@netrin.com> References: <859EBEE8-4194-4115-8647-4AC0E69595FB@netrin.com> Message-ID: Thanks. mouseUp is passed right now. Pete Haworth On Feb 1, 2011, at 8:16 AM, Jim Lambert wrote: > You might also try comparing the effect on your mouseDoubleUp of passing the mouseup vs. not passing the mouseup. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jmyepes at mac.com Tue Feb 1 11:25:42 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 08:25:42 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: <1296566995885-3251346.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> Message-ID: <1296577542966-3252139.post@n4.nabble.com> Hi, I'm watching than the first time that the row is created and is beyond the rows that can be displayed the scrollbar doesn't scroll automatically to the new row, and when you edit some value in this row cause a) the first time that the value is edit isn't filled, so you need edit again to put the value. b) if you add a new row all the datagrid disappear. Still remaining into the datagrid but isn't showed. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3252139.html Sent from the Revolution - User mailing list archive at Nabble.com. From DunbarX at aol.com Tue Feb 1 11:42:28 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 11:42:28 EST Subject: mouseup/mouseDoubleUp Message-ID: <25b39.2759e798.3a7991f4@aol.com> This might need a new thread title. If you have this in a button script: on mouseUp put "single" wait 15 put "" --just to see it work end mouseup on mouseDoubleUp put "double" wait 15 put "" --just to see it work end mouseDoubleUp you can get all sorts of behaviors if you click at various rates. Sometimes you even get what you want, that is, a single response to a double click. This takes practice and luck, though, and that seems contrary to clean, robust programming methodology. Jim, can you elaborate on your idea of passing mouseup? How and where would you do that? Craig In a message dated 2/1/11 11:19:00 AM, jiml at netrin.com writes: > You might also try comparing the effect on your mouseDoubleUp of passing > the mouseup vs. not passing the mouseup. > > From bobs at twft.com Tue Feb 1 11:43:32 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 08:43:32 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: References: Message-ID: <50C146C8-AAE3-4B21-9D69-1D2D0294552E@twft.com> Not even a page not found or cannot find site kind of error? Check DNS. Ping the name and see what comes back. See if it's in the same subnet as the ping from a computer that DOES work. (they use round robin so it may not be *exactly* the same address.) Clear your web cache, clear your dns cache rinse repeat. Try another DNS like OpenDNS or Google DNS. Bob On Jan 31, 2011, at 9:12 PM, Joe Lewis Wilkins wrote: > Hi All, > > Using a MacPro with Snow Leopard and I'm getting no action when I try to Google. Any thoughts? > > Joe Lewis Wilkins > Architect & Director of Product Development for GSI > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Feb 1 11:46:25 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 08:46:25 -0800 Subject: Update on defaultStack problem In-Reply-To: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> References: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> Message-ID: Hmmm... does the modal stack have the destroystack property set to true? I wonder if not doing so leaves it in memory and it remains the default stack? Just guessing... Bob On Jan 31, 2011, at 11:36 PM, Peter Haworth wrote: > I still have no idea why this is happening but I have fixed it by setting the defaultStack to the topStack immediately on return form the modal dialog. > > I'm now chasing down another problem. I have a mouseUp and a mouseDoubleUp handler for the same control. When I double click, the mouseUp handler is triggered, not the mouseDoubleUp. How do suppress the mouseUp processing in favour of the mouseDoubleUp? > > Pete Haworth > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bill at bluewatermaritime.com Tue Feb 1 11:47:45 2011 From: bill at bluewatermaritime.com (william humphrey) Date: Tue, 1 Feb 2011 12:47:45 -0400 Subject: Cycle through active windows Message-ID: In Mac OS you should be able to use command plus to cycle through the active windows. I notice that it does not work on livecode lately. I also am wondering how to make a window come to the top. I used to select it and it would but lately I have to move all the other windows out of the way to get to the buried one. From pepetoo at cox.net Tue Feb 1 11:51:01 2011 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Tue, 1 Feb 2011 08:51:01 -0800 Subject: OT - GOOGLE NOT WORKING FOR ME In-Reply-To: <50C146C8-AAE3-4B21-9D69-1D2D0294552E@twft.com> References: <50C146C8-AAE3-4B21-9D69-1D2D0294552E@twft.com> Message-ID: <03DFD68D-79C2-48FA-B49B-C8BB73C8CCD8@cox.net> Absolutely "nada". No response what so ever. Please excuse me if I kill this thread. TIA, Joe Lewis Wilkins Architect & Director of Product Development for GSI On Feb 1, 2011, at 8:43 AM, Bob Sneidar wrote: > Not even a page not found or cannot find site kind of error? Check DNS. Ping the name and see what comes back. See if it's in the same subnet as the ping from a computer that DOES work. (they use round robin so it may not be *exactly* the same address.) > > Clear your web cache, clear your dns cache rinse repeat. Try another DNS like OpenDNS or Google DNS. > > Bob From DunbarX at aol.com Tue Feb 1 12:05:35 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 12:05:35 EST Subject: mouseup/mouseDoubleUp Message-ID: <27765.345edc61.3a79975f@aol.com> Pete. Does whatever you did work? Craig Thanks.? mouseUp is passed right now. Pete Haworth From pete at mollysrevenge.com Tue Feb 1 12:10:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 09:10:58 -0800 Subject: Update on defaultStack problem In-Reply-To: References: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> Message-ID: destroyStack is false. Sounds feasible but doesn't explain why the problem only occurs when I dynamically add new controls to the modal dialog and change its height. I'm about to submit a bug report for this. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Feb 1, 2011, at 8:46 AM, Bob Sneidar wrote: > Hmmm... does the modal stack have the destroystack property set to true? I wonder if not doing so leaves it in memory and it remains the default stack? Just guessing... > > Bob > > > On Jan 31, 2011, at 11:36 PM, Peter Haworth wrote: > >> I still have no idea why this is happening but I have fixed it by setting the defaultStack to the topStack immediately on return form the modal dialog. >> >> I'm now chasing down another problem. I have a mouseUp and a mouseDoubleUp handler for the same control. When I double click, the mouseUp handler is triggered, not the mouseDoubleUp. How do suppress the mouseUp processing in favour of the mouseDoubleUp? >> >> Pete Haworth >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From irog at mac.com Tue Feb 1 12:23:47 2011 From: irog at mac.com (Roger Guay) Date: Tue, 01 Feb 2011 10:23:47 -0700 Subject: [ANN] Revision to TimeMachine In-Reply-To: References: Message-ID: <93F2C7B8-F3EA-45AC-89C2-AB28F6555394@mac.com> Thanks for your interest, Alejandro. Unfortunately, I no longer have easy access to a Windows machine, and so have not tested TimeMachine for that OS. But, I agree with Bob Sneidar in a subsequent post to "Try changing it to is or is not. I always use words instead of operators because it makes the code easy to read, and I don't run into these kinds of problems." I seem to recall that was my experience as well when I used to test for Windows. Thanks for refreshing my memory, Bob. I'll try to remember this in the future. Anybody know where I put my car keys?? Cheers, Roger On Feb 1, 2011, at 4:38 AM, use-livecode-request at lists.runrev.com wrote: > Message: 11 > Date: Mon, 31 Jan 2011 15:55:49 -0800 (PST) > From: Alejandro Tejada > To: use-revolution at lists.runrev.com > Subject: Re: [ANN] Revision to TimeMachine > Message-ID: <1296518149001-3250202.post at n4.nabble.com> > Content-Type: text/plain; charset=UTF-8 > > > Hi Roger, > > Many thanks for updating > your stack with ideas > proposed in this list. > > Have you test it in Windows? > http://dl.dropbox.com/u/3834621/TimeMachine_screenshot.PNG > > When I open the stack on Windows, > I receive many warnings: > > compiling at 7:17:22 PM > Type if: missing 'then' > Object play > Line if gTP  eval then send "mouseUp" to btn "strtOvr" > Hint   > > (Probably, you used a Mac Only character instead of <>) > > Cant find handler "clearFlds" > Line: send "clearFlds" to stack "eventControl" > > How could I fix these warnings? > Thanks in advance. > > Alejandro From pete at mollysrevenge.com Tue Feb 1 12:32:52 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 09:32:52 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <25b39.2759e798.3a7991f4@aol.com> References: <25b39.2759e798.3a7991f4@aol.com> Message-ID: <4589DD64-0138-4C67-A2D0-3E150A2C5E1B@mollysrevenge.com> The dictionary talks about a couple of properties that affect double click, doubleclickinterval and doubleclickdelta. If the two mouse click happen in less time than is specified in doubleclickinterval and the mouse isn't moved more than the number of pixels defined in doubleclickdelta, a mouseDoubleup is supposed to be generated. Any other combinations should result in a mouseUp. On my computer, doubleclickinterval is set to 500 (which I think means half a second) and doubleclickdelta is set to 4. Seems like I'm doubleclicking within those limits but I might try messing with those settings to see what happens. But maybe not. The dictionary says you shouldn't mess with the doubleclickinterval "since doing so may discombobulate the user"!!! Really? Discombobulate? Maybe "confuse" would work just as well! I have submitted a bug report for this. If you want to vote, it's number 9366. There are a couple of duplicates, some quite old, so not sure what the chanxes are of it getting fixed. Pete Haworth On Feb 1, 2011, at 8:42 AM, DunbarX at aol.com wrote: > This might need a new thread title. > > If you have this in a button script: > > on mouseUp > put "single" > wait 15 > put "" --just to see it work > end mouseup > > on mouseDoubleUp > put "double" > wait 15 > put "" --just to see it work > end mouseDoubleUp > > you can get all sorts of behaviors if you click at various rates. Sometimes > you even get what you want, that is, a single response to a double click. > This takes practice and luck, though, and that seems contrary to clean, > robust programming methodology. > > Jim, can you elaborate on your idea of passing mouseup? How and where would > you do that? > > Craig > > > > In a message dated 2/1/11 11:19:00 AM, jiml at netrin.com writes: > > >> You might also try comparing the effect on your mouseDoubleUp of passing >> the mouseup vs. not passing the mouseup. >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 12:32:58 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 09:32:58 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <27765.345edc61.3a79975f@aol.com> References: <27765.345edc61.3a79975f@aol.com> Message-ID: <24AFF89F-0359-40D1-A960-4FBE48FED9F6@mollysrevenge.com> Hi Craig, Just about to start trying the various suggestions. Pete Haworth -------------- next part -------------- http://www.mollysrevenge.com http://www.sonicbids.com/MollysRevenge http://www.myspace.com/mollysrevengeband On Feb 1, 2011, at 9:05 AM, DunbarX at aol.com wrote: > Pete. > > Does whatever you did work? > > Craig > > > Thanks. mouseUp is passed right now. > > Pete Haworth > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Tue Feb 1 12:36:00 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Tue, 01 Feb 2011 18:36:00 +0100 Subject: mouseup/mouseDoubleUp In-Reply-To: <25b39.2759e798.3a7991f4@aol.com> References: <25b39.2759e798.3a7991f4@aol.com> Message-ID: <8506B62C-4B00-440F-8C4B-CEC914329290@mac.com> oh that's understandable... I never use wait, because it messes up messages. On 1 Feb 2011, at 17:42, dunbarx at aol.com wrote: > This might need a new thread title. > > If you have this in a button script: > > on mouseUp > put "single" > wait 15 > put "" --just to see it work > end mouseup > > on mouseDoubleUp > put "double" > wait 15 > put "" --just to see it work > end mouseDoubleUp > > you can get all sorts of behaviors if you click at various rates. Sometimes > you even get what you want, that is, a single response to a double click. > This takes practice and luck, though, and that seems contrary to clean, > robust programming methodology. > > Jim, can you elaborate on your idea of passing mouseup? How and where would > you do that? > > Craig > > > > In a message dated 2/1/11 11:19:00 AM, jiml at netrin.com writes: > > >> You might also try comparing the effect on your mouseDoubleUp of passing >> the mouseup vs. not passing the mouseup. >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Feb 1 12:37:30 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 09:37:30 -0800 Subject: Weird defaultStack behavior In-Reply-To: <4D480695.2040200@fourthworld.com> References: <4D480695.2040200@fourthworld.com> Message-ID: <36F40589-3BBD-4FCC-8658-BEBA342FC35E@mollysrevenge.com> Thanks Richard. As you've probably seen, I've worked around the problem as you suggested. I submitted a bug report, it's number 9367. Pete Haworth On Feb 1, 2011, at 5:11 AM, Richard Gaskin wrote: > t shouldn't be necessary, and if you can pin down a recipe please submit a bug report. But as a workaround, setting the default stack after modal seems to cover the issues I've run into here. From ambassador at fourthworld.com Tue Feb 1 12:50:05 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 09:50:05 -0800 Subject: How to get current text hiliteColor in Linux? Message-ID: <4D4847CD.9060607@fourthworld.com> Currently the LiveCode engine uses the Windows hiliteColor when selecting text, ignoring whatever highlight color may be in use by the current theme. Is there a shell query I can run to determine the current text highlight color? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bill at bluewatermaritime.com Tue Feb 1 12:52:44 2011 From: bill at bluewatermaritime.com (william humphrey) Date: Tue, 1 Feb 2011 13:52:44 -0400 Subject: Cycle through active windows In-Reply-To: References: Message-ID: I guess my problems with the windows not coming to the top is some kind of bug. Has anyone else had this happen? On Tue, Feb 1, 2011 at 12:47 PM, william humphrey < bill at bluewatermaritime.com> wrote: > In Mac OS you should be able to use command plus to cycle through the > active windows. I notice that it does not work on livecode lately. I also am > wondering how to make a window come to the top. I used to select it and it > would but lately I have to move all the other windows out of the way to get > to the buried one. -- http://www.bluewatermaritime.com From DunbarX at aol.com Tue Feb 1 13:14:19 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 13:14:19 EST Subject: mouseup/mouseDoubleUp Message-ID: <2c271.87c21ab.3a79a77b@aol.com> I have weaned myself off of "wait" as well. But in this very special instance, where the wait command is only implemented when you absolutely know the user has his hand on the mouse and his finger on a button, it should not cause any undue delay or harm. That said, if for some reason you "send" either message to the button that contains those handlers, you have to wait, though there is of course no confusion. This is useless information, unfortunately. Craig In a message dated 2/1/11 12:38:07 PM, bvg at mac.com writes: > oh that's understandable...? I never use wait, because it messes up > messages. > From ma at snowcamp.org Tue Feb 1 13:18:15 2011 From: ma at snowcamp.org (Mike Arnold) Date: Tue, 1 Feb 2011 13:18:15 -0500 Subject: revBrowserPrint Message-ID: <0843AD92-3B56-49C0-A043-44DEB3ECEA55@snowcamp.org> On Mac (not sure about windows), I've implemented a print command as just case "Print" revBrowserPrint tBrowserId break It will always print the right thing, but sometimes (I have not determined a true pattern) the preview window will be blank. At first I thought it was determined by which window had the focus, but that is not consistent. Any thoughts? thanks, Mike. From ambassador at fourthworld.com Tue Feb 1 13:33:04 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 10:33:04 -0800 Subject: Update on defaultStack problem Message-ID: <4D4851E0.9060900@fourthworld.com> Peter Haworth wrote: > On Feb 1, 2011, at 6:55 AM, DunbarX at aol.com wrote: > >> I have always had this problem, that the engine will not distinguish >> the two "ups" if they are in the same handler. >> >> I use the old HC method: >> >> on mouseUp >> wait 15 --your comfort level >> if the mouseCllick then doDoubleStuff >> else doSingleStuff >> end mouseUp > > Thanks Craig, I'll give that a try. Sounds like a bug in LC. Not a bug, it's just extremely rare that the two messages are used in the same control. Personally, I'd sooner at a "Revert" control than ask a user to double-click, but maybe that's just me. DunbarX's script will do the trick, but if you like you can account for the user-settable nature of the double click interval by using the LC global property named -- you guessed it -- doubleClickInterval. To be uber-correct in such distinctions you may also want to take into account the doubleClickDelta, but that may be overkill for a simple app. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Tue Feb 1 13:34:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 10:34:28 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <27765.345edc61.3a79975f@aol.com> References: <27765.345edc61.3a79975f@aol.com> Message-ID: I just implemented the wit technique in the mouseUp handler and so far that appears to work consistently without any unwanted side effects. Thanks for the help. Pete Haworth On Feb 1, 2011, at 9:05 AM, DunbarX at aol.com wrote: > Pete. > > Does whatever you did work? > > Craig > > > Thanks. mouseUp is passed right now. > > Pete Haworth > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Feb 1 13:57:31 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 12:57:31 -0600 Subject: Update on defaultStack problem In-Reply-To: References: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> Message-ID: <4D48579B.9050405@hyperactivesw.com> On 2/1/11 11:10 AM, Peter Haworth wrote: > destroyStack is false. Sounds feasible but doesn't explain why the > problem only occurs when I dynamically add new controls to the modal > dialog and change its height. > > I'm about to submit a bug report for this. The act of manually manipulating controls will reset the defaultstack. That makes sense, since the user will be actively working with it and the engine needs to direct its instructions to that stack. If your user doesn't change the controls, then the defaultstack doesn't have to change. The workaround is to do what you did -- reset the defaultstack when the script returns to the originating handler. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From DunbarX at aol.com Tue Feb 1 14:00:05 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:00:05 EST Subject: mouseup/mouseDoubleUp Message-ID: <2f43d.638f141a.3a79b235@aol.com> Pete, So you did not get any sort of "pass mouseUp" to work? Only the old fashioned way? I tried, again, (because even 20 years ago I struggled with this in HC) to play with the doubelClickSpeed. To no avail. Anyone else Craig From jacque at hyperactivesw.com Tue Feb 1 14:01:39 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 13:01:39 -0600 Subject: Cycle through active windows In-Reply-To: References: Message-ID: <4D485893.5000101@hyperactivesw.com> On 2/1/11 11:52 AM, william humphrey wrote: > I guess my problems with the windows not coming to the top is some kind of > bug. Has anyone else had this happen? Yes. I mentioned it on the list a while ago, it just started with the last release. The titlebar does not activate. You have to click on some other window and then back again (and often you have to click directly on the titlebar) to get the window to activate. I suppose I should submit a report about it if no one else has. I don't know if it happens on all operating systems, but it does happen on OS X. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Feb 1 14:02:26 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 11:02:26 -0800 Subject: Update on defaultStack problem In-Reply-To: <4D4851E0.9060900@fourthworld.com> References: <4D4851E0.9060900@fourthworld.com> Message-ID: <86885C2B-422F-4972-BF1D-2A110867842A@mollysrevenge.com> I'm not entirely happy with using double click for the user interface either - I may switch to a button or something as you suggest. I do think this is either software or a documentation bug though. I know it's unusual to have mouseUp and mouseDoubleup for the same control but there's nothing in the dictionary that indicates it causes problems. If the dictionary had mentioned that mouseDoubleup doesn't work in these circumstances, I wouldn't have gone down this path in the first place. Maybe I should enter a dictionary user comment? I did see the doubleclickinterval in the dictionary but preferred not to "discombobulate the user" as the dictionary so elegantly puts it! Pete Haworth On Feb 1, 2011, at 10:33 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > > On Feb 1, 2011, at 6:55 AM, DunbarX at aol.com wrote: > > > >> I have always had this problem, that the engine will not distinguish > >> the two "ups" if they are in the same handler. > >> > >> I use the old HC method: > >> > >> on mouseUp > >> wait 15 --your comfort level > >> if the mouseCllick then doDoubleStuff > >> else doSingleStuff > >> end mouseUp > > > > Thanks Craig, I'll give that a try. Sounds like a bug in LC. > > Not a bug, it's just extremely rare that the two messages are used in the same control. > > Personally, I'd sooner at a "Revert" control than ask a user to double-click, but maybe that's just me. > > DunbarX's script will do the trick, but if you like you can account for the user-settable nature of the double click interval by using the LC global property named -- you guessed it -- doubleClickInterval. > > To be uber-correct in such distinctions you may also want to take into account the doubleClickDelta, but that may be overkill for a simple app. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From DunbarX at aol.com Tue Feb 1 14:04:12 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:04:12 EST Subject: Update on defaultStack problem Message-ID: <2f8a7.2d4cb8b6.3a79b32c@aol.com> Richard. I disagree. It seems that those two click options in a single button is a compact and natural way to get increased functionality. The actual work that either operation might perform could be anything. I use this all the time. Maybe It is just my way... Craig In a message dated 2/1/11 1:35:18 PM, ambassador at fourthworld.com writes: > > Not a bug, it's just extremely rare that the two messages are used in > the same control. > > Personally, I'd sooner at a "Revert" control than ask a user to > double-click, but maybe that's just me. > From DunbarX at aol.com Tue Feb 1 14:05:45 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:05:45 EST Subject: Update on defaultStack problem Message-ID: <2fa76.995cc13.3a79b389@aol.com> I think a note is definitely called for. I would test the doubleclickinterval just a little more, but I have never found it to help at all. Craig Newman In a message dated 2/1/11 2:04:08 PM, pete at mollysrevenge.com writes: > I did see the doubleclickinterval in the dictionary but preferred not to > "discombobulate the user" as the dictionary so elegantly puts it! > From coiin at verizon.net Tue Feb 1 14:08:47 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 14:08:47 -0500 Subject: mouseup/mouseDoubleUp In-Reply-To: <2f43d.638f141a.3a79b235@aol.com> References: <2f43d.638f141a.3a79b235@aol.com> Message-ID: <01CB997B-0D00-4D6D-8CB0-367D2962DF0C@verizon.net> I haven't been following this topic, but here's the approach I would use for telling single and double clicks in Hypercard (plus a mouseDoubleUp check to see that it didn't get through: on mouseUp wait 20 if the mouseclick then put "double click" && the ticks else put "single click" && the ticks end if end mouseUp on mouseDoubleUp put "double up" end mouseDoubleUp If you comment out the wait line, you'll see that the double up handler gets called. From jacque at hyperactivesw.com Tue Feb 1 14:13:12 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 13:13:12 -0600 Subject: mouseup/mouseDoubleUp In-Reply-To: <4589DD64-0138-4C67-A2D0-3E150A2C5E1B@mollysrevenge.com> References: <25b39.2759e798.3a7991f4@aol.com> <4589DD64-0138-4C67-A2D0-3E150A2C5E1B@mollysrevenge.com> Message-ID: <4D485B48.5060603@hyperactivesw.com> On 2/1/11 11:32 AM, Peter Haworth wrote: > > I have submitted a bug report for this. If you want to vote, it's > number 9366. There are a couple of duplicates, some quite old, so > not sure what the chanxes are of it getting fixed. It isn't a bug, though it may not be what you want. A mouseclick will always produce a mouseUp (-down, -stilldown, etc.) If a second mouse click happens within the double-click interval, the second set of mouse messages is skipped and you get the mousedouble-whatever instead. But you'll always get at least one mouseUp on the first click, and you need to. Otherwise the engine would have to wait after every click to see if it was a double or not before triggering. To accomodate, either avoid using both messages in the same control, or use a work-around like Craig suggested. The work-around is a good idea, because it places the onus of waiting on your own script without crippling the engine in all situations. All x-talk engines have worked like this. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Feb 1 14:16:45 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 11:16:45 -0800 Subject: Update on defaultStack problem In-Reply-To: <4D48579B.9050405@hyperactivesw.com> References: <496DAA2C-CEEE-4628-AD44-1CBFCF40F53A@mollysrevenge.com> <4D48579B.9050405@hyperactivesw.com> Message-ID: <5D77B3DE-7176-44F7-8E8C-8AE16EB32639@mollysrevenge.com> I've just come across another inconsistency with this. The QC asked me to supply a stack to demonstrated the problem so I put together a simple stack and substack for them that mimics the stacks that caused the problem, but the defaultstack is set correctly! I'm still working on it because while the QC stack does add and delete fields, it doesn't have quite all the logic from the original stack so I'll add everything and see if I can reproduce the problem. Maybe it's something other than adding/deleting controls and resizing the stack. Pete Haworth On Feb 1, 2011, at 10:57 AM, J. Landman Gay wrote: > On 2/1/11 11:10 AM, Peter Haworth wrote: >> destroyStack is false. Sounds feasible but doesn't explain why the >> problem only occurs when I dynamically add new controls to the modal >> dialog and change its height. >> >> I'm about to submit a bug report for this. > > The act of manually manipulating controls will reset the defaultstack. That makes sense, since the user will be actively working with it and the engine needs to direct its instructions to that stack. If your user doesn't change the controls, then the defaultstack doesn't have to change. > > The workaround is to do what you did -- reset the defaultstack when the script returns to the originating handler. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rman at free.fr Tue Feb 1 14:18:06 2011 From: rman at free.fr (Robert Mann) Date: Tue, 1 Feb 2011 11:18:06 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? Message-ID: <1296587886610-3252755.post@n4.nabble.com> 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. I use the following script on mouseUp reset printing -- set the printPaperSize to 595,842 set the printMargins to 0,0,0,0 -- set the printGutters to 0,0 open printing to pdf "pdfprintfile.pdf" print this card -- print this card from 0,0 to 595,842 close printing end mouseUp It works.. but : something like 2 cm at the bottom are just blank, so the whole design layout is messed up. TO check I printed to pdf from the print menu, and the rendering is just fine. The commented lines have been tried with no impact on the result. The following discussion talks about that problem, but seems to imply it only happens only for landscape printing. http://runtime-revolution.278305.n4.nabble.com/Open-printing-to-PDF-bug-td2550663.html open printing to pdf bug Any clue?? thanks! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3252755.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Tue Feb 1 14:18:56 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 13:18:56 -0600 Subject: Update on defaultStack problem In-Reply-To: <2f8a7.2d4cb8b6.3a79b32c@aol.com> References: <2f8a7.2d4cb8b6.3a79b32c@aol.com> Message-ID: <4D485CA0.5020609@hyperactivesw.com> On 2/1/11 1:04 PM, DunbarX at aol.com wrote: > Richard. > > I disagree. It seems that those two click options in a single button is a > compact and natural way to get increased functionality. The actual work that > either operation might perform could be anything. > > I use this all the time. Maybe It is just my way... I don't know of any HIG that officially supports double-clicking a button. In fact, it's common to put in scripts explicitly blocking double-clicks from doing anything. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Feb 1 14:21:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 11:21:28 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <2f43d.638f141a.3a79b235@aol.com> References: <2f43d.638f141a.3a79b235@aol.com> Message-ID: <00A87CF7-9C49-40AA-BADF-9BD3CA157752@mollysrevenge.com> There was a pass mouseUp in the mouseUp handler. I took that out but the mouseDoubleup handler still didn't pop. Pete Haworth On Feb 1, 2011, at 11:00 AM, DunbarX at aol.com wrote: > Pete, > > So you did not get any sort of "pass mouseUp" to work? Only the old > fashioned way? > > I tried, again, (because even 20 years ago I struggled with this in HC) to > play with the doubelClickSpeed. To no avail. > > Anyone else > > Craig > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 14:22:52 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 11:22:52 -0800 Subject: Cycle through active windows In-Reply-To: <4D485893.5000101@hyperactivesw.com> References: <4D485893.5000101@hyperactivesw.com> Message-ID: I've had the problem where I have to click on the titlebar to activate a window (on OSX). It doesn;t happen all the time and I haven't been able to narrow down what causes that behavior. Pete Haworth On Feb 1, 2011, at 11:01 AM, J. Landman Gay wrote: > On 2/1/11 11:52 AM, william humphrey wrote: >> I guess my problems with the windows not coming to the top is some kind of >> bug. Has anyone else had this happen? > > Yes. I mentioned it on the list a while ago, it just started with the last release. The titlebar does not activate. You have to click on some other window and then back again (and often you have to click directly on the titlebar) to get the window to activate. > > I suppose I should submit a report about it if no one else has. I don't know if it happens on all operating systems, but it does happen on OS X. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jmyepes at mac.com Tue Feb 1 14:28:44 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 11:28:44 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: <1296587886610-3252755.post@n4.nabble.com> References: <1296587886610-3252755.post@n4.nabble.com> Message-ID: <1296588524599-3252783.post@n4.nabble.com> Hi Robert, Seems that is a bug both portatrait and landscape modes that cut the bottom. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3252783.html Sent from the Revolution - User mailing list archive at Nabble.com. From DunbarX at aol.com Tue Feb 1 14:30:08 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:30:08 EST Subject: mouseup/mouseDoubleUp Message-ID: <31447.95890e2.3a79b940@aol.com> Only Colin could comment, and provide a script, on a topic he has not followed. From jmyepes at mac.com Tue Feb 1 14:31:01 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 11:31:01 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: <1296577542966-3252139.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296577542966-3252139.post@n4.nabble.com> Message-ID: <1296588661854-3252791.post@n4.nabble.com> Hi, This happen with "addLine" command, with "addData" the effect is that the last row is duplicated into the first row... :( Any help or idea... Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3252791.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Feb 1 14:31:54 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 11:31:54 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <4D485B48.5060603@hyperactivesw.com> References: <25b39.2759e798.3a7991f4@aol.com> <4589DD64-0138-4C67-A2D0-3E150A2C5E1B@mollysrevenge.com> <4D485B48.5060603@hyperactivesw.com> Message-ID: I did implement Craig's suggestion and it works fine. I have to respectfully disagree that this isn't a bug. The mouseDoubleUp message never happens in these circumstances, at least in my application, that's the bug. Even if it did, what's the point of having a mousedoubleup message if I have to handle it by extra code in the mouseUp message? Pete Haworth On Feb 1, 2011, at 11:13 AM, J. Landman Gay wrote: > On 2/1/11 11:32 AM, Peter Haworth wrote: >> >> I have submitted a bug report for this. If you want to vote, it's >> number 9366. There are a couple of duplicates, some quite old, so >> not sure what the chanxes are of it getting fixed. > > It isn't a bug, though it may not be what you want. A mouseclick will always produce a mouseUp (-down, -stilldown, etc.) If a second mouse click happens within the double-click interval, the second set of mouse messages is skipped and you get the mousedouble-whatever instead. But you'll always get at least one mouseUp on the first click, and you need to. Otherwise the engine would have to wait after every click to see if it was a double or not before triggering. > > To accomodate, either avoid using both messages in the same control, or use a work-around like Craig suggested. The work-around is a good idea, because it places the onus of waiting on your own script without crippling the engine in all situations. > > All x-talk engines have worked like this. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Feb 1 14:35:13 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 13:35:13 -0600 Subject: Cycle through active windows In-Reply-To: References: <4D485893.5000101@hyperactivesw.com> Message-ID: <4D486071.50507@hyperactivesw.com> On 2/1/11 1:22 PM, Peter Haworth wrote: > I've had the problem where I have to click on the titlebar to > activate a window (on OSX). It doesn;t happen all the time and I > haven't been able to narrow down what causes that behavior. Me either, which is why I hesitated to report it. If I could just get a reproducible recipe... But it happens a lot. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Feb 1 14:37:35 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 13:37:35 -0600 Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: <1296587886610-3252755.post@n4.nabble.com> References: <1296587886610-3252755.post@n4.nabble.com> Message-ID: <4D4860FF.8070808@hyperactivesw.com> On 2/1/11 1:18 PM, Robert Mann wrote: > > It works.. but : something like 2 cm at the bottom are just blank, so the > whole design layout is messed up. > > TO check I printed to pdf from the print menu, and the rendering is just > fine. Some printers can't print beyond a certain position at the top or bottom. You can get the printrectangle for your printer to see if that's the case. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Tue Feb 1 14:40:00 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 11:40:00 -0800 Subject: Update on defaultStack problem In-Reply-To: <4D485CA0.5020609@hyperactivesw.com> References: <2f8a7.2d4cb8b6.3a79b32c@aol.com> <4D485CA0.5020609@hyperactivesw.com> Message-ID: I will toss in my 2 cents as I am wont to do. We had a problem with our accounting app throwing errors something to the effect that a modal window had to be closed before another could be opened. This stymied the tech support who could not figure out what the heck was happening. It was not reproducible easily, as it only happened once in a great while. Finally I got ahold of a wise and savvy tech support person who asked, "Is the user double clicking the link?" I asked the user, and they replied in the affirmative! It seems that if you could double click at just exactly the right speed, the parent app, not seeing that the first instance was running, tried to launch a second instance with the second click, which the code normally forbid. But since the second click came so fast, the parent app didn't have time to create the first instance yet so it proceeded merrily on it's way. The moral to the story? Stick to the interface guidelines. :-) Bob On Feb 1, 2011, at 11:18 AM, J. Landman Gay wrote: > On 2/1/11 1:04 PM, DunbarX at aol.com wrote: >> Richard. >> >> I disagree. It seems that those two click options in a single button is a >> compact and natural way to get increased functionality. The actual work that >> either operation might perform could be anything. >> >> I use this all the time. Maybe It is just my way... > > I don't know of any HIG that officially supports double-clicking a button. In fact, it's common to put in scripts explicitly blocking double-clicks from doing anything. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From coiin at verizon.net Tue Feb 1 14:40:28 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 14:40:28 -0500 Subject: mouseup/mouseDoubleUp In-Reply-To: <31447.95890e2.3a79b940@aol.com> References: <31447.95890e2.3a79b940@aol.com> Message-ID: <0356C77E-9DB1-4543-BCA7-E0F71B90131B@verizon.net> On Feb 1, 2011, at 2:30 PM, DunbarX at aol.com wrote: > Only Colin could comment, and provide a script, on a topic he has not > followed. Was it remotely close to being useful? From lists at mangomultimedia.com Tue Feb 1 14:44:54 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 1 Feb 2011 14:44:54 -0500 Subject: datagrid: rows disapear when add new row In-Reply-To: <1296566995885-3251346.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> Message-ID: On Tue, Feb 1, 2011 at 8:29 AM, JosepM wrote: > > When add a row that is out of the visibles rows and modify data and add a > new row all the data disapear, still into the datagrid but isn't showed... > if I add a new row I can see flashing the data but disapear. Can you post the code you are using? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From DunbarX at aol.com Tue Feb 1 14:46:16 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:46:16 EST Subject: mouseup/mouseDoubleUp Message-ID: <32539.243f43f2.3a79bd08@aol.com> I don't know. I couldn't follow it. In a message dated 2/1/11 2:42:18 PM, coiin at verizon.net writes: > > Was it remotely close to being useful? > From jiml at netrin.com Tue Feb 1 14:47:15 2011 From: jiml at netrin.com (Jim Lambert) Date: Tue, 1 Feb 2011 11:47:15 -0800 Subject: mouseup/mouseDoubleU In-Reply-To: References: Message-ID: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> On Feb 1, 2011, at 10:00 AM, Craig wrote: > If you have this in a button script: > > on mouseUp > put "single" > wait 15 > put "" --just to see it work > end mouseup > > on mouseDoubleUp > put "double" > wait 15 > put "" --just to see it work > end mouseDoubleUp > > you can get all sorts of behaviors if you click at various rates. Sometimes > you even get what you want, that is, a single response to a double click. > This takes practice and luck, though, and that seems contrary to clean, > robust programming methodology. > > Jim, can you elaborate on your idea of passing mouseup? How and where would > you do that? > > I was guessing that trapping a single mouseUp might affect the doubleUp. But it doesn't. So ignore that suggestion! When I try this without any 'waits': on mouseUp put cr & "single" after msg end mouseup on mouseDoubleUp put cr & "double" after msg end mouseDoubleUp I get the expected output. The mouseUp is always triggered. The mouseDoubleUp only triggers if I meet the doubleclickinterval and doubleclickdelta as Peter noted. Jim Lambert From jiml at netrin.com Tue Feb 1 14:53:04 2011 From: jiml at netrin.com (Jim Lambert) Date: Tue, 1 Feb 2011 11:53:04 -0800 Subject: How to get current text hiliteColor in Linux? In-Reply-To: References: Message-ID: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> Richard wrote: > Currently the LiveCode engine uses the Windows hiliteColor when > selecting text, ignoring whatever highlight color may be in use by the > current theme. > > Is there a shell query I can run to determine the current text highlight > color? There probably is a shell query, but if there isn't, you might possibly programmatically select some text on a white background then use mouseColor to sniff out the hiliteColor. Or pixelColorAt(x,y), if we ever get it! ;) Jim Lambert From ambassador at fourthworld.com Tue Feb 1 14:54:19 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 11:54:19 -0800 Subject: Update on defaultStack problem Message-ID: <4D4864EB.4080008@fourthworld.com> DunbarX wrote: > I think a note is definitely called for. I would test the > doubleclickinterval just a little more, but I have never found it to help at all. Given how rare it is that a UI will use both messages in a single control, the doubleClickInterval is equally uncommonly used. But the one place it can help is exactly the handler you provided: on mouseUp wait 15 --your comfort level if the mouseClick then doDoubleStuff else doSingleStuff end mouseUp The comfort level that matters most is that of the end-user. :) Instead of "wait 15" you could use the doubleClickInterval, which is the number of milliseconds the user has their system set to use as a double-click threshold: on mouseUp wait the doubleClickInterval millisecs if the mouseClick then doDoubleStuff else doSingleStuff end mouseUp -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From DunbarX at aol.com Tue Feb 1 14:56:02 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 14:56:02 EST Subject: mouseup/mouseDoubleU Message-ID: <32f5a.5a24fe51.3a79bf52@aol.com> Jim. Yes, and as Jacques points out, the engine has to send a mouseUp message no matter what. The original intent was to be able to ignore a single click if a double click was in the offing. In other words, to have one and only one of the two, depending on whether one or two clicks was made. It seems that only the HC workaround can reliably implement this. Craig In a message dated 2/1/11 2:48:44 PM, jiml at netrin.com writes: > > > > I get the expected output. The mouseUp is always triggered. The > mouseDoubleUp only triggers if I meet the doubleclickinterval and doubleclickdelta as > Peter noted. > From coiin at verizon.net Tue Feb 1 15:01:42 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 15:01:42 -0500 Subject: mouseup/mouseDoubleUp In-Reply-To: <32539.243f43f2.3a79bd08@aol.com> References: <32539.243f43f2.3a79bd08@aol.com> Message-ID: On Feb 1, 2011, at 2:46 PM, DunbarX at aol.com wrote: > I don't know. I couldn't follow it. My script was identical to yours, other than I used a longer wait time, and I also had the mouseDoubleUp in there to prove that it didn't get triggered. From richmondmathewson at gmail.com Tue Feb 1 15:08:57 2011 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 01 Feb 2011 22:08:57 +0200 Subject: printRectangle Message-ID: <4D486859.8060108@gmail.com> Um . . . connected up my printer and turned it on (yes, oddly enough I have looked a "right banana" when I haven't done that in the past) and typed this into the message box: put printRectangle and got 0,0,612,795 put printPaperRectangle gave me the same result PRESUMABLY that means that my printable area is 612 wide by 795 high; whether that is US letter or A$ or some rococo size only available in Burkino Faso has to be set by printPaperSize tried this set printPaperSize to "B3" and got nowhere (!!!!) so, I assume, one has to "know" one's paper sizes in terms of pixels . . . . Oink, Oink, Oink. Now what IS NOT clear to me is whether, when I muck about with the printMargins, the printRectangle will change: Let's have a go: set the printMargins to 200,200,200,200 and put printRectangle gives me 0,0,612,792 No joy there! SO, my question is . . . how does one find out what the printable area is WITHOUT having to muck about mathematically subtracting printMargins from printRectangle? From pete at mollysrevenge.com Tue Feb 1 15:17:54 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 12:17:54 -0800 Subject: mouseup/mouseDoubleU In-Reply-To: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> References: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> Message-ID: Interesting. The problem I have is that the mouseDoubleup never triggers even if I'm within the doubleclick... parameters. And even if it did, it doesn't really help because I still have to write some code in the mouseUp handler to make sure the user didn't double click so the mouseDoubleup message is kind of pointless since I've already dealt with it in mouseUp. It's just an anomaly I guess but sure would be nice if the dictionary said something somewhere about this issue. I have to admit I'm a bit puzzled by the references to double clicks not being part of HIG. I'm sitting here looking at the finder window on my Mac and if I want to open a file or run an application, I have to double click on it. I'm sure there are other examples. Pete Haworth On Feb 1, 2011, at 11:47 AM, Jim Lambert wrote: > On Feb 1, 2011, at 10:00 AM, Craig wrote: > >> If you have this in a button script: >> >> on mouseUp >> put "single" >> wait 15 >> put "" --just to see it work >> end mouseup >> >> on mouseDoubleUp >> put "double" >> wait 15 >> put "" --just to see it work >> end mouseDoubleUp >> >> you can get all sorts of behaviors if you click at various rates. Sometimes >> you even get what you want, that is, a single response to a double click. >> This takes practice and luck, though, and that seems contrary to clean, >> robust programming methodology. >> >> Jim, can you elaborate on your idea of passing mouseup? How and where would >> you do that? >> >> > > I was guessing that trapping a single mouseUp might affect the doubleUp. But it doesn't. So ignore that suggestion! > > When I try this without any 'waits': > > on mouseUp > put cr & "single" after msg > end mouseup > > on mouseDoubleUp > put cr & "double" after msg > end mouseDoubleUp > > > I get the expected output. The mouseUp is always triggered. The mouseDoubleUp only triggers if I meet the doubleclickinterval and doubleclickdelta as Peter noted. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at mollysrevenge.com Tue Feb 1 15:19:52 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 12:19:52 -0800 Subject: Update on defaultStack problem In-Reply-To: <4D4864EB.4080008@fourthworld.com> References: <4D4864EB.4080008@fourthworld.com> Message-ID: <9F69A2E7-11A3-4292-8FC1-7EBCCAD3CB43@mollysrevenge.com> Agreed, and I have done exactly that in my mouseUp handler. Pete Haworth On Feb 1, 2011, at 11:54 AM, Richard Gaskin wrote: > The comfort level that matters most is that of the end-user. :) > > Instead of "wait 15" you could use the doubleClickInterval, which is the number of milliseconds the user has their system set to use as a double-click threshold: From DunbarX at aol.com Tue Feb 1 15:23:22 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 15:23:22 EST Subject: mouseup/mouseDoubleUp Message-ID: <34ca3.7e47b1ec.3a79c5ba@aol.com> Colin. So it was identical except for where it was different? Lovingly, Craig From jmyepes at mac.com Tue Feb 1 15:25:30 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 12:25:30 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: References: <1296566995885-3251346.post@n4.nabble.com> Message-ID: <1296591930876-3252893.post@n4.nabble.com> The filldata on FillInData pData Global gRecargo Global gTaxes put glxapp_getPref ("decimals_price") into tDecimals_Price put glxapp_getPref ("decimals_unit") into tDecimals_Unit try set the numberFormat to tDecimals_Price -- dollar format -- This message is sent when the Data Grid needs to populate -- this template with the column data. pData is the value to be displayed. set the text of me to pData --set the unicodetext of me to uniencode(pData,"utf8") SetForegroundColor switch the dgColumn of me case "NAME" --find fld f_buscar --truncatetail the short id of me, "..." set the dontwrap of me to false break case "UNITS" if isnumber(pData) then put GetDataOfIndex (the dgIndex of me, "PRICE") into tPrecioCoste put GetDataOfIndex (the dgIndex of me, "UNITS") into tUnidades put GetDataOfIndex (the dgIndex of me, "REDUCTION_PERCENT_1") into tDto1 put GetDataOfIndex (the dgIndex of me, "REDUCTION_PERCENT_2") into tDto2 replace comma with "." in tPrecioCoste replace comma with "." in tUnidades replace comma with "." in tDto1 replace comma with "." in tDto2 put tUnidades * tPrecioCoste into tTotal put tDto1 / 100 into tDto1 put tTotal * tDto1 into tDtoTotal put tTotal - tDtoTotal into tTotal --replace "." with comma in tTotal SetDataOfIndex the dgIndex of me, "AMOUNT_LINE", tTotal --& " ?" end if break end switch [... calculations ...] catch e answer e end try end FillInData The CloseFieldEditor on CloseFieldEditor pFieldEditor Global gTaxes Global tCliente Global gDocType put glxapp_getPref ("decimals_price") into tDecimals_Price put glxapp_getPref ("decimals_unit") into tDecimals_Unit --set the numberFormat to tDecimals_Price --"#.00" -- euro format ## save the data to dgData array before upating aggregate fields switch the dgColumn of me case "CODE" put the text of pFieldEditor into tCode --answer tCode put _GetProduct (tCode) into tArrayA printkeys tArrayA ## Begin Control numeros de serie --answer tArrayA["NEEDSSERIALNUMBER"] --if tArrayA["NEEDSSERIALNUMBER"] is not empty then --answer "Capturar numero serie" as sheet --else --answer "Else" as sheet --end if ## End Control numeros de serie if gDocType is 8 or gDocType is 9 then ## Aplicar precio compra producto if isnumber(tArrayA[1]["PRICE_WHOLESALE"]) then set the numberFormat to tDecimals_Price replace "," with "." in tArrayA[1]["PRICE_WHOLESALE"] put tArrayA[1]["PRICE_WHOLESALE"] into tPrice if tPrice is not empty then put tArrayA[1]["PRICE"] into tPrecioTarifa multiply tPrecioTarifa by 1 end if else put 0 into tPrecioTarifa end if else ## Aplicar precio venta producto ## Aplicar precio tarifa por cliente put DESC & tCliente["CLI_ID_PRICELIST"] into tTarifa if isnumber(tArrayA[1]["PRICE"]) then set the numberFormat to tDecimals_Price replace "," with "." in tArrayA[1]["PRICE"] put tArrayA[1]["PRICE"] into tPrice if tPrice is not empty then replace "," with "." in tArrayA[1][tTarifa] put tArrayA[1][tTarifa] into tPercent if tPrecent is not 0 then multiply tPrice by tPercent divide tPrice by 100 put tArrayA[1]["PRICE"]-tPrice into tPrecioTarifa multiply tPrecioTarifa by 1 else put tArrayA[1]["PRICE"] into tPrecioTarifa multiply tPrecioTarifa by 1 end if end if else put 0 into tPrecioTarifa end if end if if gDocType is 8 or gDocType is 9 then ## Poner valores en la datagrid SetDataOfIndex the dgIndex of me, "NAME", "(" & tArrayA[1]["SUPPLIER_REFERENCE"] & ") " & tArrayA[1]["NAME"] else ## Poner valores en la datagrid SetDataOfIndex the dgIndex of me, "NAME", tArrayA[1]["NAME"] end if SetDataOfIndex the dgIndex of me, "PRICE", tPrecioTarifa put gTaxes[tArrayA[1]["ID_TAX"]]["VALOR"] into tValorIVA SetDataOfIndex the dgIndex of me, "ID_TAX", tValorIVA set the text of pFieldEditor to tCode break case "UNITS" set the numberFormat to tDecimals_Unit put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "PRICE" set the numberFormat to tDecimals_Price -- dollar format put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "REDUCTION_PERCENT_1" put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "DAYS" set the numberFormat to tDecimals_Unit put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "DIMENSION3" set the numberFormat to tDecimals_Unit put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "DIMENSION4" set the numberFormat to tDecimals_Unit put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break case "ADUANA" set the numberFormat to tDecimals_Price put the text of pFieldEditor into tValue replace "," with "." in tValue set the text of pFieldEditor to tValue+0 break default put the text of pFieldEditor into tValue break end switch SetDataOfIndex the dgIndex of me, the dgColumn of me, the text of pFieldEditor end CloseFieldEditor -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3252893.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Feb 1 15:28:25 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 12:28:25 -0800 Subject: mouseup/mouseDoubleUp Message-ID: <4D486CE9.6050008@fourthworld.com> Peter Haworth wrote: > I have to respectfully disagree that this isn't a bug. The > mouseDoubleUp message never happens in these circumstances, > at least in my application, that's the bug. Even if it did, > what's the point of having a mousedoubleup message if I have > to handle it by extra code in the mouseUp message? I think Jacque put this succinctly: I don't know of any HIG that officially supports double-clicking a button. In fact, it's common to put in scripts explicitly blocking double-clicks from doing anything. GUIs are driven by an implied noun-verb interaction model, in which the user selects an object (noun) and applies an action to it (verb). Push buttons are commonly verb triggers - that is, they perform an action, usually on some object other than themselves. The things verb objects act on could be consider nouns. Consider these common operations: - You select text in a field, then click a "B" button in a toolbar to make its style bold. - You select a file object in the Finder, then select File->Open to open it. The latter is a good example here, because it reminds us that most people use the shortcut for File->Open, which is to double-click the file object. In that case, the verb object is a separate thing, the File->Open menu item. Double-clicking the noun object (the file) is merely a shortcut for triggering the most common action performed on the object. Note that single-clicking a file object triggers no action; it's merely a selection. You'll see a similar pattern in many dialogs that contain lists with a default button: you can single-click a list item to select it and then click the default button to apply that action to the selection, or you can double-click the list item to trigger the default button. In each of these cases the verb and noun objects are different things, and the single-click merely selects the object but performs no action on it, and a double-click is merely a shortcut to a diffent action control. So while it's common to see double-clicks used throughout many UIs, they're almost always a shortcut to a more visible verb trigger, and I can't think of any example in a popular app in which an object that triggers an action on double-click will also trigger a different action with a single-click. There may be one, perhaps even two if we search far and wide, but here I would use what I like to call the Brother Guy Threshold: "Name three". :) In your app, the double-click acts as a sort of Undo - from your earlier email: The single mouse click invokes the modal dialog that was the subject of my defaultStack problems. The double click basically undoes the what the modal dialog logic did. Given how frequently users accidentally double-click objects, you could consider a "Reset" or "Undo Changes" button next to the one that invokes the dialog, or perhaps a menu item or some other visible element. As the OS X HIG suggests (in User Input/Double-Clicking): Double-clicking is most commonly used as a shortcut for other actions, such as pressing Command-O to open a document or dragging to select a word. Because not everyone is physically able to perform a double click, it should never be the only way to perform an action. The ways this could be optimally handled will vary according to the specifics of the app, of course, and it may well be that yours is the rare case where having one push button perform two different actions may be best. You're free to submit a bug report on this if you like, but don't be surprised if it gets flagged "Not a bug", since the only way to "fix" this would be to delay processing of all mouse clicks by the doubleClickInterval, and would only benefit the exceptional rare case relying on both messages in a single control. For such unusual behaviors it seems reasonable to expect the scripter to craft the unique behavior they want - Craig did a great job on coming through with that so quickly. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From coiin at verizon.net Tue Feb 1 15:28:37 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 15:28:37 -0500 Subject: mouseup/mouseDoubleUp In-Reply-To: <34ca3.7e47b1ec.3a79c5ba@aol.com> References: <34ca3.7e47b1ec.3a79c5ba@aol.com> Message-ID: <302142E7-5A69-4B37-8DBE-59A89725AEAE@verizon.net> On Feb 1, 2011, at 3:23 PM, DunbarX at aol.com wrote: > So it was identical except for where it was different? Functionally it was identical. From DunbarX at aol.com Tue Feb 1 15:32:40 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 15:32:40 EST Subject: mouseup/mouseDoubleUp Message-ID: <356cf.646d70e.3a79c7e8@aol.com> Colin. I think we need to re-examine the ultimate question. Craig From lists at mangomultimedia.com Tue Feb 1 15:41:27 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 1 Feb 2011 15:41:27 -0500 Subject: datagrid: rows disapear when add new row In-Reply-To: <1296591930876-3252893.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> Message-ID: On Tue, Feb 1, 2011 at 3:25 PM, JosepM wrote: > > The filldata > ... I don't see any code here that adds rows to the data grid. Where is that code? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From jmyepes at mac.com Tue Feb 1 15:57:42 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 12:57:42 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> Message-ID: <1296593862167-3252939.post@n4.nabble.com> Sorry... on mouseup put the dgNumberOfLines of group "dg_test" of this stack into tFilas if tFilas<9 then put "00" & tFilas+1 into tLinea else put "0" & tFilas+1 into tLinea end if dispatch "addLine" to group "dg_test" of this stack with tLinea dispatch "ResetList" to group "dg_test" of this stack end mouseup -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3252939.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Tue Feb 1 16:16:21 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 15:16:21 -0600 Subject: mouseup/mouseDoubleU In-Reply-To: References: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> Message-ID: <4D487825.3000807@hyperactivesw.com> On 2/1/11 2:17 PM, Peter Haworth wrote: > > I have to admit I'm a bit puzzled by the references to double clicks > not being part of HIG. I'm sitting here looking at the finder window > on my Mac and if I want to open a file or run an application, I have > to double click on it. I'm sure there are other examples. Richard explained it well. You're right that double-clicks are very common, especially in lists, but I can't think of any app that allows double clicks for buttons. Buttons are pretty universally one-click objects. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rman at free.fr Tue Feb 1 16:21:23 2011 From: rman at free.fr (Robert Mann) Date: Tue, 1 Feb 2011 13:21:23 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: <4D4860FF.8070808@hyperactivesw.com> References: <1296587886610-3252755.post@n4.nabble.com> <4D4860FF.8070808@hyperactivesw.com> Message-ID: <1296595283854-3252984.post@n4.nabble.com> The 2 cm blank line at the bottom appears not only on the actual printing but also the screen view preview. So it seems independant from the printer and related to livecode pdf engine. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3252984.html Sent from the Revolution - User mailing list archive at Nabble.com. From coiin at verizon.net Tue Feb 1 16:23:37 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 16:23:37 -0500 Subject: mouseup/mouseDoubleU In-Reply-To: <4D487825.3000807@hyperactivesw.com> References: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> <4D487825.3000807@hyperactivesw.com> Message-ID: <3479D610-7E4A-49A7-B01F-E8E0C33BACC2@verizon.net> On Feb 1, 2011, at 4:16 PM, J. Landman Gay wrote: > Richard explained it well. You're right that double-clicks are very common, especially in lists, but I can't think of any app that allows double clicks for buttons. Buttons are pretty universally one-click objects. Interestingly, in Flash they solve some of the potential issues by making it be that you have to enable doubleclick detection in the first place. For most people who don't need doubleclicks, the default behavior of it being off suits them just fine. If you do need to have single and double click interaction, then you can enable the detection, and live with any potential confusion. From lists at mangomultimedia.com Tue Feb 1 16:23:44 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 1 Feb 2011 16:23:44 -0500 Subject: datagrid: rows disapear when add new row In-Reply-To: <1296593862167-3252939.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> <1296593862167-3252939.post@n4.nabble.com> Message-ID: On Tue, Feb 1, 2011 at 3:57 PM, JosepM wrote: > > on mouseup > put the dgNumberOfLines of group "dg_test" of this stack into tFilas > > if tFilas<9 then > put "00" & tFilas+1 into tLinea > else > put "0" & tFilas+1 into tLinea > end if > > dispatch "addLine" to group "dg_test" of this stack with tLinea > > dispatch "ResetList" to group "dg_test" of this stack > end mouseup I assume this button resides outside of the data grid. So clicking on this button causes a line to be added and the bug you are seeing to occur? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From pete at mollysrevenge.com Tue Feb 1 16:30:55 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 13:30:55 -0800 Subject: mouseup/mouseDoubleUp In-Reply-To: <4D486CE9.6050008@fourthworld.com> References: <4D486CE9.6050008@fourthworld.com> Message-ID: <609BE82D-5C8C-4FC8-9301-3BE544A662D8@mollysrevenge.com> Thanks for your thoughts Richard. Couple of points to be made. I am not clicking or double clicking on a button, I am clicking on the header of a datagrid. Furthermore, I'm looking for right clicks since a left click on a datagrid header sorts the datagrid by the clicked column and I want to retain that functionality. Here's the logic I am trying to implement. A single right click on a column heading brings up a modal dialog where the user can enter search criteria for the data in that column. After filtering the data, I append an asterisk to the column label to indicate that a filter is in place. A single right click on a column that is already filtered removes the filter for that column and the asterisk in its label. So the right click is an on/off switch for filtering data in a specific column. Then I wanted a way to remove filters on all columns and that's where the double right click came in to play and all hell broke loose! Your thoughts have made me realise I should provide an Undo menu item and keystroke equivalent for the removal of all filters. In fact, as mentioned in an earlier post, I agree that the double click is probably not the way to go for what I want to do. So implementation of all this according to HIG is one thing and I may have made a bad choice there, but the mouseDoubleUp message is never sent in my scenario, at least my handlers never see it. I can accept that the first click generates a mouseUp message but the second click within the doubleUpInterval should generate a mouseDoubleUp shouldn't it? That's what I consider to be a bug. Pete Haworth On Feb 1, 2011, at 12:28 PM, Richard Gaskin wrote: > Peter Haworth wrote: > > > I have to respectfully disagree that this isn't a bug. The > > mouseDoubleUp message never happens in these circumstances, > > at least in my application, that's the bug. Even if it did, > > what's the point of having a mousedoubleup message if I have > > to handle it by extra code in the mouseUp message? > > I think Jacque put this succinctly: > > I don't know of any HIG that officially supports > double-clicking a button. In fact, it's common > to put in scripts explicitly blocking double-clicks > from doing anything. > > GUIs are driven by an implied noun-verb interaction model, in which the user selects an object (noun) and applies an action to it (verb). > > Push buttons are commonly verb triggers - that is, they perform an action, usually on some object other than themselves. The things verb objects act on could be consider nouns. > > Consider these common operations: > > - You select text in a field, then click a "B" button in a toolbar > to make its style bold. > > - You select a file object in the Finder, then select File->Open > to open it. > > The latter is a good example here, because it reminds us that most people use the shortcut for File->Open, which is to double-click the file object. > > In that case, the verb object is a separate thing, the File->Open menu item. Double-clicking the noun object (the file) is merely a shortcut for triggering the most common action performed on the object. > > Note that single-clicking a file object triggers no action; it's merely a selection. > > You'll see a similar pattern in many dialogs that contain lists with a default button: you can single-click a list item to select it and then click the default button to apply that action to the selection, or you can double-click the list item to trigger the default button. > > In each of these cases the verb and noun objects are different things, and the single-click merely selects the object but performs no action on it, and a double-click is merely a shortcut to a diffent action control. > > So while it's common to see double-clicks used throughout many UIs, they're almost always a shortcut to a more visible verb trigger, and I can't think of any example in a popular app in which an object that triggers an action on double-click will also trigger a different action with a single-click. > > There may be one, perhaps even two if we search far and wide, but here I would use what I like to call the Brother Guy Threshold: "Name three". :) > > > In your app, the double-click acts as a sort of Undo - from your earlier email: > > The single mouse click invokes the modal dialog that was the > subject of my defaultStack problems. The double click basically > undoes the what the modal dialog logic did. > > Given how frequently users accidentally double-click objects, you could consider a "Reset" or "Undo Changes" button next to the one that invokes the dialog, or perhaps a menu item or some other visible element. > > As the OS X HIG suggests (in User Input/Double-Clicking): > > Double-clicking is most commonly used as a shortcut for other > actions, such as pressing Command-O to open a document or > dragging to select a word. Because not everyone is physically > able to perform a double click, it should never be the only > way to perform an action. > > The ways this could be optimally handled will vary according to the specifics of the app, of course, and it may well be that yours is the rare case where having one push button perform two different actions may be best. > > You're free to submit a bug report on this if you like, but don't be surprised if it gets flagged "Not a bug", since the only way to "fix" this would be to delay processing of all mouse clicks by the doubleClickInterval, and would only benefit the exceptional rare case relying on both messages in a single control. > > For such unusual behaviors it seems reasonable to expect the scripter to craft the unique behavior they want - Craig did a great job on coming through with that so quickly. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rman at free.fr Tue Feb 1 16:32:27 2011 From: rman at free.fr (Robert Mann) Date: Tue, 1 Feb 2011 13:32:27 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: <1296595283854-3252984.post@n4.nabble.com> References: <1296587886610-3252755.post@n4.nabble.com> <4D4860FF.8070808@hyperactivesw.com> <1296595283854-3252984.post@n4.nabble.com> Message-ID: <1296595947290-3252999.post@n4.nabble.com> I tried to set the printScale to 0.85 and sure that prints the whole story above the bottom blank line.. but.. useless to send the pdf to the printer!! I tried to expand the stack size so that a 0.85 scale would come back to a strict A4 size.. but that does not help : the 2 cm bottom line is there. Any other clue? (this is an other occasion to express my zenitude to livecode!-) Robert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3252999.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Feb 1 16:32:28 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 13:32:28 -0800 Subject: mouseup/mouseDoubleU In-Reply-To: <4D487825.3000807@hyperactivesw.com> References: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> <4D487825.3000807@hyperactivesw.com> Message-ID: <082D6960-C87B-431D-92AD-DD08EFCAF878@mollysrevenge.com> Agreed, As mentioned in a response I just sent out, I'm not clicking on a button. I don;t think I ever said that but if I did, I apologise for the confusion. Pete Haworth On Feb 1, 2011, at 1:16 PM, J. Landman Gay wrote: > Buttons are pretty universally one-click objects. From lists at mangomultimedia.com Tue Feb 1 16:43:36 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 1 Feb 2011 16:43:36 -0500 Subject: datagrid: rows disapear when add new row In-Reply-To: <1296591930876-3252893.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> Message-ID: On Tue, Feb 1, 2011 at 3:25 PM, JosepM wrote: > > The CloseFieldEditor > > on CloseFieldEditor pFieldEditor > Global gTaxes > Global tCliente > Global gDocType > > ... > > end CloseFieldEditor > Have you tried adding a try/catch block to the CloseFieldEditor code to see if some sort of error is occurring? Also, why are you calling ResetList? AddLine should refresh the data grid for you automatically. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From DunbarX at aol.com Tue Feb 1 16:45:28 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 16:45:28 EST Subject: mouseup/mouseDoubleU Message-ID: <3a2c9.1d6b6957.3a79d8f8@aol.com> Pete. Are you saying that you never get the mouseDoubleUp message? Even with both simple handlers I sent earlier? That is odd. Not being able to isolate the two is one thing, not getting mouseDoubleUp at all is another, and indicates a problem somewhere. I don't suppose you are trapping it somewhere else? Craig Newman From jacque at hyperactivesw.com Tue Feb 1 16:54:25 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 15:54:25 -0600 Subject: mouseup/mouseDoubleU In-Reply-To: <082D6960-C87B-431D-92AD-DD08EFCAF878@mollysrevenge.com> References: <3D0175F4-4B8F-47DE-823D-30038B289CDE@netrin.com> <4D487825.3000807@hyperactivesw.com> <082D6960-C87B-431D-92AD-DD08EFCAF878@mollysrevenge.com> Message-ID: <4D488111.7020704@hyperactivesw.com> On 2/1/11 3:32 PM, Peter Haworth wrote: > Agreed, As mentioned in a response I just sent out, I'm not clicking > on a button. I don;t think I ever said that but if I did, I > apologise for the confusion. Yeah, your explanation made sense. I see now what you're up to. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Feb 1 16:56:53 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 13:56:53 -0800 Subject: mouseup/mouseDoubleUp Message-ID: <4D4881A5.1030404@fourthworld.com> Peter Haworth wrote: > I can accept that the first click generates a mouseUp message but > the second click within the doubleUpInterval should generate a > mouseDoubleUp shouldn't it? That's what I consider to be a bug. HyperCard (and apparently Flash in its default setup - interesting note, Colin) obviated the problem altogether by not providing any way to detect double clicks at all. Problem solved. :) LiveCode (and SuperCard and a few other xTalks) do provide messages for both single and double-clicks, but like I said the only way to invoke an action on a double-click without invoking two single-click actions is to delay all single-click handling by the doubleClickInterval. That's what Craig's handy handler does, but if that were the default behavior of the LiveCode engine I suspect it would annoy people who don't need that distinction. Consider the Finder: imagine if you single-clicked on an object and it never hilited until more than 1/5th of a second had passed (the default doubleClickInterval is 200 ms). Sure, that's a short duration, but it would make the Finder feel subtly sluggish. Fortunately this isn't an issue with the Finder: since single-clicks on file objects perform no action, it can faithfully display your selection immediately without delay, appearing snappy and responsive. The need to invoke actions on both messages is such an edge case that I feel it's appropriate to expect scripters to script things for such specialized needs. Feel free to submit it to the RQCC if you like, but don't be surprised if it gets flagged as "Not a bug" because the only "fix" would reduce the apparent responsiveness of all other apps. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From admin at FlexibleLearning.com Tue Feb 1 16:57:38 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Tue, 1 Feb 2011 21:57:38 -0000 Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: Message-ID: 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 From tkuypers at telenet.be Tue Feb 1 16:58:19 2011 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Tue, 1 Feb 2011 22:58:19 +0100 Subject: semi[OT] Preview of Intelli-Pubs In-Reply-To: References: Message-ID: <466E492A-6BB0-4D1A-B9A5-1F360D571FCB@telenet.be> Major attack at the servers of my provider, should be up and running asap :-( warm regards, Ton Kuypers On 31-jan-2011, at 21:12, Howard Bornstein wrote: > On Mon, Jan 31, 2011 at 3:41 AM, wrote: > >> Please take a look at some screenshots at http://www.intelli-pubs.com, >> look forward to some reactions. >> > > Couldn't get this link to work: "the server where this page is located isn?t > responding." > > -- > Regards, > > Howard Bornstein > ----------------------- > www.designeq.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Tue Feb 1 16:58:27 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 13:58:27 -0800 Subject: mouseup/mouseDoubleU In-Reply-To: <3a2c9.1d6b6957.3a79d8f8@aol.com> References: <3a2c9.1d6b6957.3a79d8f8@aol.com> Message-ID: <663FA17C-4C4D-4BCB-81EA-8311A1E4FCA9@mollysrevenge.com> I didn't try the simple handlers you sent as written. I implemented the wait in the existing mouseUp and left the mouseDoubleUp code as it was. I set a breakpoint at the mousedoubleUp handler and it never popped. I don't think I am handling mouseDoubleUp anywhere else but I will double click, err, I mean check. Pete Haworth On Feb 1, 2011, at 1:45 PM, DunbarX at aol.com wrote: > Pete. > > Are you saying that you never get the mouseDoubleUp message? Even with both > simple handlers I sent earlier? That is odd. Not being able to isolate the > two is one thing, not getting mouseDoubleUp at all is another, and indicates > a problem somewhere. I don't suppose you are trapping it somewhere else? > > Craig Newman > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bill at bluewatermaritime.com Tue Feb 1 17:01:59 2011 From: bill at bluewatermaritime.com (william humphrey) Date: Tue, 1 Feb 2011 18:01:59 -0400 Subject: Cycle through active windows In-Reply-To: <4D486071.50507@hyperactivesw.com> References: <4D485893.5000101@hyperactivesw.com> <4D486071.50507@hyperactivesw.com> Message-ID: Yes. I noticed that if I quit and restart the problem will go away and not come back until I'm least expecting it. On Tue, Feb 1, 2011 at 3:35 PM, J. Landman Gay wrote: > On 2/1/11 1:22 PM, Peter Haworth wrote: > >> I've had the problem where I have to click on the titlebar to >> activate a window (on OSX). It doesn;t happen all the time and I >> haven't been able to narrow down what causes that behavior. >> > > Me either, which is why I hesitated to report it. If I could just get a > reproducible recipe... > > But it happens a lot. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.bluewatermaritime.com From DunbarX at aol.com Tue Feb 1 17:05:13 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 17:05:13 EST Subject: mouseup/mouseDoubleU Message-ID: <3b798.3f2b3e30.3a79dd99@aol.com> Ah, I see. Well if you click once or twice with the wait handler in place, you will never get to the actual mouseDoubleUp handler. But you can if click three times. Craig From coiin at verizon.net Tue Feb 1 17:06:22 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 17:06:22 -0500 Subject: mouseup/mouseDoubleU In-Reply-To: <663FA17C-4C4D-4BCB-81EA-8311A1E4FCA9@mollysrevenge.com> References: <3a2c9.1d6b6957.3a79d8f8@aol.com> <663FA17C-4C4D-4BCB-81EA-8311A1E4FCA9@mollysrevenge.com> Message-ID: <0F674B1B-CDCB-4518-8C41-94902306F628@verizon.net> On Feb 1, 2011, at 4:58 PM, Peter Haworth wrote: > I didn't try the simple handlers you sent as written. I implemented the wait in the existing mouseUp and left the mouseDoubleUp code as it was. I set a breakpoint at the mousedoubleUp handler and it never popped. I don't think I am handling mouseDoubleUp anywhere else but I will double click, err, I mean check. As I showed in my example, if you use the wait approach, it will prevent mouseDoubleUp, which it should. From ambassador at fourthworld.com Tue Feb 1 17:12:26 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 14:12:26 -0800 Subject: How to get current text hiliteColor in Linux? Message-ID: <4D48854A.7010105@fourthworld.com> Jim Lambert wrote: > Richard wrote: > >> Currently the LiveCode engine uses the Windows hiliteColor when >> selecting text, ignoring whatever highlight color may be in use >> by the current theme. >> >> Is there a shell query I can run to determine the current text >> highlight color? > > There probably is a shell query, but if there isn't, you might > possibly programmatically select some text on a white background > then use mouseColor to sniff out the hiliteColor. Thanks, Jim, but there's the rub: the hiliteColor LiveCode uses on Linux isn't the one in the current theme (it looks like some Win95 default). In fact, that's my goal: once I can find out what the current theme uses, I can make my own text selection look normal within the user's setup. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From coiin at verizon.net Tue Feb 1 17:12:57 2011 From: coiin at verizon.net (Colin Holgate) Date: Tue, 01 Feb 2011 17:12:57 -0500 Subject: mouseup/mouseDoubleU In-Reply-To: <3b798.3f2b3e30.3a79dd99@aol.com> References: <3b798.3f2b3e30.3a79dd99@aol.com> Message-ID: On Feb 1, 2011, at 5:05 PM, DunbarX at aol.com wrote: > But you can if click three times. That can be risky. I ended up in Kansas one time I tried that. From DunbarX at aol.com Tue Feb 1 17:15:16 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 17:15:16 EST Subject: mouseup/mouseDoubleU Message-ID: <3c138.47919801.3a79dff4@aol.com> Well, there is no place like home. From DunbarX at aol.com Tue Feb 1 17:29:38 2011 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 1 Feb 2011 17:29:38 EST Subject: No dial command Message-ID: <3cf60.4a9a1494.3a79e352@aol.com> HC sends DTMF tones with the "dial" command through the speaker jack. These can connect to a dialer gadget called a "TurboDialer", which connects to a telephone handset. Nothing like that in LC at all? Never mind the hardware. It is actually possible to make calls that way by holding the receiver up to the computer speaker. Shades of Captain Crunch. From warren at warrensweb.us Tue Feb 1 17:33:25 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Feb 2011 16:33:25 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> References: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> Message-ID: <1296599605.8083.346.camel@mint-i7> On Tue, 2011-02-01 at 11:53 -0800, Jim Lambert wrote: > Richard wrote: > > > Currently the LiveCode engine uses the Windows hiliteColor when > > selecting text, ignoring whatever highlight color may be in use by the > > current theme. > > > > Is there a shell query I can run to determine the current text highlight > > color? > > > There probably is a shell query, but if there isn't, you might possibly programmatically select some text on a white background then use mouseColor to sniff out the hiliteColor. > > Or pixelColorAt(x,y), if we ever get it! ;) > > Jim Lambert Richard, It probably will depend on what desktop environment the user is running, but try searching GConf and gconftool. This may turn up your answer for Gnome. I would also ask in Linux forums, where you will probably have better luck getting a definitive answer or set of answers. (But if you find out, please share - it's ugly hyperlink blue here in Mint!) Good luck, Warren From bobs at twft.com Tue Feb 1 17:45:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 14:45:43 -0800 Subject: Referencing a single datagrid cell Message-ID: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Hi all. I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. Bob ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. From paul at researchware.com Tue Feb 1 17:50:26 2011 From: paul at researchware.com (Paul Dupuis) Date: Tue, 01 Feb 2011 17:50:26 -0500 Subject: No dial command In-Reply-To: <3cf60.4a9a1494.3a79e352@aol.com> References: <3cf60.4a9a1494.3a79e352@aol.com> Message-ID: <4D488E32.1050306@researchware.com> On 2/1/2011 5:29 PM, DunbarX at aol.com wrote: > HC sends DTMF tones with the "dial" command through the speaker jack. > These can connect to a dialer gadget called a "TurboDialer", which connects to a > telephone handset. > > Nothing like that in LC at all? Never mind the hardware. > > It is actually possible to make calls that way by holding the receiver up > to the computer speaker. > > Shades of Captain Crunch. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > A quick Google search turned up all of the DTMF tones as mp3 audio files at http://www.jetcityorange.com/dtmf/ and it looks like there are other sites with the tones available as well. A script to "dial" a number and parse the number into playing appropriate tone sound file in order shouldn't be too difficult. Just a suggestion. -- Paul Dupuis Cofounder Researchware, Inc. http://www.researchware.com/ From warren at warrensweb.us Tue Feb 1 17:57:28 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Feb 2011 16:57:28 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <1296599605.8083.346.camel@mint-i7> References: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> <1296599605.8083.346.camel@mint-i7> Message-ID: <1296601048.8083.348.camel@mint-i7> On Tue, 2011-02-01 at 16:33 -0600, Warren Samples wrote: > On Tue, 2011-02-01 at 11:53 -0800, Jim Lambert wrote: > > Richard wrote: > > > > > Currently the LiveCode engine uses the Windows hiliteColor when > > > selecting text, ignoring whatever highlight color may be in use by the > > > current theme. > > > > > > Is there a shell query I can run to determine the current text highlight > > > color? > > > > > > There probably is a shell query, but if there isn't, you might possibly programmatically select some text on a white background then use mouseColor to sniff out the hiliteColor. > > > > Or pixelColorAt(x,y), if we ever get it! ;) > > > > Jim Lambert > > > Richard, > > It probably will depend on what desktop environment the user is running, > but try searching GConf and gconftool. This may turn up your answer for > Gnome. I would also ask in Linux forums, where you will probably have > better luck getting a definitive answer or set of answers. (But if you > find out, please share - it's ugly hyperlink blue here in Mint!) > > Good luck, > > Warren > > here's a link that might be helpful: http://projects.gnome.org/gconf/ From jacque at hyperactivesw.com Tue Feb 1 18:02:03 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Feb 2011 17:02:03 -0600 Subject: mouseup/mouseDoubleU In-Reply-To: References: <3b798.3f2b3e30.3a79dd99@aol.com> Message-ID: <4D4890EB.5020107@hyperactivesw.com> On 2/1/11 4:12 PM, Colin Holgate wrote: > > On Feb 1, 2011, at 5:05 PM, DunbarX at aol.com wrote: > >> But you can if click three times. > > That can be risky. I ended up in Kansas one time I tried that. LOL! -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at mollysrevenge.com Tue Feb 1 18:05:18 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 15:05:18 -0800 Subject: Referencing a single datagrid cell In-Reply-To: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Message-ID: <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> Have you tried GetDataofIndex/GetDataofLine? put GetDataofLine(linenumber,columnname) into xyz there's corresponding setData commands as well. setDataofLine linenumber,columnname,value You have to do a RefreshLine after setDataofLine to see the results in the datagrid. Pete Haworth On Feb 1, 2011, at 2:45 PM, Bob Sneidar wrote: > Hi all. > > I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. > > What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: > > set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. > > I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? > > If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. > > I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. > > So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. > > > > Bob > > ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Tue Feb 1 18:14:57 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Feb 2011 17:14:57 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <1296601048.8083.348.camel@mint-i7> References: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> <1296599605.8083.346.camel@mint-i7> <1296601048.8083.348.camel@mint-i7> Message-ID: <1296602097.8083.358.camel@mint-i7> On Tue, 2011-02-01 at 16:57 -0600, Warren Samples wrote: > On Tue, 2011-02-01 at 16:33 -0600, Warren Samples wrote: > > On Tue, 2011-02-01 at 11:53 -0800, Jim Lambert wrote: > > > Richard wrote: > > > > > > > Currently the LiveCode engine uses the Windows hiliteColor when > > > > selecting text, ignoring whatever highlight color may be in use by the > > > > current theme. > > > > > > > > Is there a shell query I can run to determine the current text highlight > > > > color? > > > > > > > > > There probably is a shell query, but if there isn't, you might possibly programmatically select some text on a white background then use mouseColor to sniff out the hiliteColor. > > > > > > Or pixelColorAt(x,y), if we ever get it! ;) > > > > > > Jim Lambert > > > > > > Richard, > > > > It probably will depend on what desktop environment the user is running, > > but try searching GConf and gconftool. This may turn up your answer for > > Gnome. I would also ask in Linux forums, where you will probably have > > better luck getting a definitive answer or set of answers. (But if you > > find out, please share - it's ugly hyperlink blue here in Mint!) > > > > Good luck, > > > > Warren > > > > > > > here's a link that might be helpful: > > http://projects.gnome.org/gconf/ > > > In fact, run the command found on the page linked to in the previous post: 'gconftool-2 -R /desktop/gnome' Scroll down a bit and you should come to entries like this: gtk_color_scheme = fg_color:#3d3d3d3d3d3d bg_color:#e0e0deded3d3 text_color:#c7c7c7c7c7c7 base_color:#3c3c3b3b3737 selected_fg_color:#3d3d3d3d3d3d selected_bg_color:#d0d0d9d9d3d3 tooltip_fg_color:#ffffffffffff tooltip_bg_color:#2e2e2d2d2a2a Those might be what you need. Hope this helps :) Warren From bobs at twft.com Tue Feb 1 18:14:13 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 15:14:13 -0800 Subject: Referencing a single datagrid cell In-Reply-To: <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> Message-ID: GetDataOfLine won't work for me because I may be referencing a cell that is not visible. I am updating the first empty cell of a column, so I have to use index. Also, the API does not mention anything about the second arguement. I quote: dgDataOfIndex - get the dgDataOfIndex [ pIndex ] - set the dgDataOfIndex [ pIndex ] of group "DataGrid" to pDataA - Get or set the data associated with a particular index. The value is the array assigned to that index. Note that setting the data of an index will cause the data grid to refresh the row associated with the index if it is visible on screen. put the dgDataOfIndex[1] of group "DataGrid" into theMessageA put theMessageA["message"] -- puts "hi" Thanks for the tip, maybe the API needs updating at some point. I hope it is as simple as that! Bob On Feb 1, 2011, at 3:05 PM, Peter Haworth wrote: > Have you tried GetDataofIndex/GetDataofLine? > > put GetDataofLine(linenumber,columnname) into xyz > > there's corresponding setData commands as well. > > setDataofLine linenumber,columnname,value > You have to do a RefreshLine after setDataofLine to see the results in the datagrid. > > Pete Haworth > > On Feb 1, 2011, at 2:45 PM, Bob Sneidar wrote: > >> Hi all. >> >> I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. >> >> What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: >> >> set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. >> >> I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? >> >> If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. >> >> I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. >> >> So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. >> >> >> >> Bob >> >> ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobs at twft.com Tue Feb 1 18:14:52 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 15:14:52 -0800 Subject: Referencing a single datagrid cell In-Reply-To: <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> Message-ID: Whoops! wrong function belay my last. Bob On Feb 1, 2011, at 3:05 PM, Peter Haworth wrote: > Have you tried GetDataofIndex/GetDataofLine? From zryip.theslug at gmail.com Tue Feb 1 18:14:13 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 2 Feb 2011 00:14:13 +0100 Subject: Referencing a single datagrid cell In-Reply-To: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Message-ID: On Tue, Feb 1, 2011 at 11:45 PM, Bob Sneidar wrote: > Hi all. > > I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. > > What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: > > set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. > > I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? > > If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. > > I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, ?set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. > > So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. > > Hi Bob, First of all have a look to these lessons: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column- and to the SetDataOfIndex and SetDataOfLine commands, in the API documentation > ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. I planned to create a new step by step tutorial about drag & drop technics in datagrids. A kind of compilation of all the experiments I done on this subject but this time with details explanation. Will write it at soon as I have more time for. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From bobs at twft.com Tue Feb 1 18:27:03 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 15:27:03 -0800 Subject: Referencing a single datagrid cell In-Reply-To: <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> Message-ID: <649D26DA-3E26-4B8B-A481-8B4E3F4ED6B8@twft.com> Hi Peter. I tried your method and it worked. I'm still a bit nervous at this point because of the problems I have had using the arrays and such so for now I am going to use dgText. The data in these particular datagrids is never going to be very much data, but later when I work with larger data sets I will need to use this. Bob On Feb 1, 2011, at 3:05 PM, Peter Haworth wrote: > Have you tried GetDataofIndex/GetDataofLine? > > put GetDataofLine(linenumber,columnname) into xyz > > there's corresponding setData commands as well. > > setDataofLine linenumber,columnname,value > You have to do a RefreshLine after setDataofLine to see the results in the datagrid. > > Pete Haworth > > On Feb 1, 2011, at 2:45 PM, Bob Sneidar wrote: > >> Hi all. >> >> I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. >> >> What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: >> >> set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. >> >> I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? >> >> If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. >> >> I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. >> >> So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. >> >> >> >> Bob >> >> ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmyepes at mac.com Tue Feb 1 18:27:55 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 15:27:55 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> Message-ID: <1296602875229-3253181.post@n4.nabble.com> I don't remember why I use ResetList but sometimes doesn't refresh correctly. The bug success when you scroll down to edit the row that is out of the viewable area. But only the first time, if you add many rows and scroll down and edit, nothing happen. This happen with a fresh datagrid. 1) create a datagrid with 6 rows and 4 cols visibles. Left the properties by default. 2) add 5 rows and edit the col 2 and col 3. Tab from col 3 to col 4. 3) add the 6th row and edit col 2 and col 3 and press tab until col 4. The value filled into col 3 isn't showed. 4) add the 7th row and scroll and edit. The scroll isn't showed auto, you must scroll down. 5) if you add another row, all data flash and disappear. The data still here but isn't showed. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3253181.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Feb 1 18:23:57 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 15:23:57 -0800 Subject: Referencing a single datagrid cell In-Reply-To: References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> Message-ID: Confusion reigns I think! You're quoting dgDataofIndex, I'm talking about getDataofIndex or Line. dgDataofIndex is a property and getDataofIndex is a function. It does have an optional second parameter to define which column you want to get instead of the whole line. I think either of the getxxx functions should work for you, don;t think it matters if the cell is visible or not. Pete Haworth On Feb 1, 2011, at 3:14 PM, Bob Sneidar wrote: > GetDataOfLine won't work for me because I may be referencing a cell that is not visible. I am updating the first empty cell of a column, so I have to use index. Also, the API does not mention anything about the second arguement. I quote: > > dgDataOfIndex > - get the dgDataOfIndex [ pIndex ] > - set the dgDataOfIndex [ pIndex ] of group "DataGrid" to pDataA > - Get or set the data associated with a particular index. The value is the array assigned to that index. Note that setting the data of an index will cause the data grid to refresh the row associated with the index if it is visible on screen. > > put the dgDataOfIndex[1] of group "DataGrid" into theMessageA > put theMessageA["message"] -- puts "hi" > > Thanks for the tip, maybe the API needs updating at some point. I hope it is as simple as that! > > Bob > > > On Feb 1, 2011, at 3:05 PM, Peter Haworth wrote: > >> Have you tried GetDataofIndex/GetDataofLine? >> >> put GetDataofLine(linenumber,columnname) into xyz >> >> there's corresponding setData commands as well. >> >> setDataofLine linenumber,columnname,value >> You have to do a RefreshLine after setDataofLine to see the results in the datagrid. >> >> Pete Haworth >> >> On Feb 1, 2011, at 2:45 PM, Bob Sneidar wrote: >> >>> Hi all. >>> >>> I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. >>> >>> What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: >>> >>> set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. >>> >>> I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? >>> >>> If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. >>> >>> I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. >>> >>> So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. >>> >>> >>> >>> Bob >>> >>> ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Tue Feb 1 18:29:43 2011 From: bobs at twft.com (Bob Sneidar) Date: Tue, 1 Feb 2011 15:29:43 -0800 Subject: Referencing a single datagrid cell In-Reply-To: References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Message-ID: Ok Peter helped me understand the GetDataOfIndex/SetDataOfIndex functions. I think when I read, "- Retrieves the internal array for key pIndex of the internal array in the data grid..." I just assumed that the returned value would always be an array. I see now that if you reference a column name for the second argument you get a value instead. Bob On Feb 1, 2011, at 3:14 PM, zryip theSlug wrote: > On Tue, Feb 1, 2011 at 11:45 PM, Bob Sneidar wrote: >> Hi all. >> >> I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. >> >> What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: >> >> set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. >> >> I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? >> >> If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. >> >> I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. >> >> So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. >> >> > > Hi Bob, > > First of all have a look to these lessons: > > http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column- > > and to the > SetDataOfIndex and SetDataOfLine commands, in the API documentation > >> ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. > > I planned to create a new step by step tutorial about drag & drop > technics in datagrids. A kind of compilation of all the experiments I > done on this subject but this time with details explanation. Will > write it at soon as I have more time for. > > > Best regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmyepes at mac.com Tue Feb 1 18:35:28 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 15:35:28 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: <1296602875229-3253181.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> <1296602875229-3253181.post@n4.nabble.com> Message-ID: <1296603328510-3253191.post@n4.nabble.com> I put try-catch into each message and no error found, but the effect is the same. Is when edit the new row that isn't showed, after this the data presentation crash. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3253191.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Feb 1 18:36:14 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 15:36:14 -0800 Subject: Referencing a single datagrid cell In-Reply-To: <649D26DA-3E26-4B8B-A481-8B4E3F4ED6B8@twft.com> References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> <0F93C9E1-8579-4E1B-9761-57421D6DD991@mollysrevenge.com> <649D26DA-3E26-4B8B-A481-8B4E3F4ED6B8@twft.com> Message-ID: <0F00501E-2434-477E-895A-348BFC4B924D@mollysrevenge.com> Yeah, I've written my own handlers to manipulate the dgText. Just seems simpler somehow. Good luck. Pete Haworth On Feb 1, 2011, at 3:27 PM, Bob Sneidar wrote: > Hi Peter. > > I tried your method and it worked. I'm still a bit nervous at this point because of the problems I have had using the arrays and such so for now I am going to use dgText. The data in these particular datagrids is never going to be very much data, but later when I work with larger data sets I will need to use this. > > Bob > > > On Feb 1, 2011, at 3:05 PM, Peter Haworth wrote: > >> Have you tried GetDataofIndex/GetDataofLine? >> >> put GetDataofLine(linenumber,columnname) into xyz >> >> there's corresponding setData commands as well. >> >> setDataofLine linenumber,columnname,value >> You have to do a RefreshLine after setDataofLine to see the results in the datagrid. >> >> Pete Haworth >> >> On Feb 1, 2011, at 2:45 PM, Bob Sneidar wrote: >> >>> Hi all. >>> >>> I am still having fits doing what I want. Perhaps in the past I have not described it very well, so I am going to try a different approach. >>> >>> What I need is to access the value in a single cell of a data grid and change it. For instance I would like to do something like: >>> >>> set the value of column 1 of row 1 of myDatagrid to "test". Better yet, although I know this is wishful thinking, set the 1:1 of myDataGrid to "test". Or how about, set the 1:1 to 1:3 of myDataGrid to "test1" & tab & "test2" & tab & "test3"? That was the kind of API I envisioned for a table object. I know that is simplistic, but I am not getting what I expect to get when I use the existing datagrid API. >>> >>> I have really tried to understand the API but I am at a total loss. I don't want to work with arrays here, I want to work with the indexes that the API returns. The closest I can get is to get and set the dgDataOfIndex but those are arrays. I don't want to change the whole line. I don't want to have to put the whole line back together when I only want to change the one value in the one column in the one row. Is this even possible? >>> >>> If not I understand, but it sure oughta be don't you think? Permit me a small rant. Shouldn't a table object work kind of like a spreadsheet, where I can reference a row and a column and get/set a value? This is really what I need. Knowing the internal array structure has not helped me. >>> >>> I have gotten the dgDataOfIndex for a data grid, modified the first element in the array, set the dgDataOfIndex and then used DataGrid Helper to show me the contents of the data grid. The array is IDENTICAL to the one I get if I manually edit the values, but if I do it using code the datagrid appears empty, and refreshing the datagrid does not help. >>> >>> So I guess until there is a method of simple row:column referencing of datagrids, I am going to revert to using the dgText. Thank GOD and thank Trevor for this, or for me data grids would be unusable. >>> >>> >>> >>> Bob >>> >>> ps. Thanks Zryip for all the help, but it appears your methods call things in the parent script that I cannot see or access (that may be a good thing) and so I cannot see what they are doing and why. I need to see code happen to understand it. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Tue Feb 1 18:50:20 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Feb 2011 17:50:20 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <1296602097.8083.358.camel@mint-i7> References: <0CB59AD0-3758-4339-B726-C2B3545E3D2C@netrin.com> <1296599605.8083.346.camel@mint-i7> <1296601048.8083.348.camel@mint-i7> <1296602097.8083.358.camel@mint-i7> Message-ID: <1296604220.8083.371.camel@mint-i7> On Tue, 2011-02-01 at 17:14 -0600, Warren Samples wrote: > On Tue, 2011-02-01 at 16:57 -0600, Warren Samples wrote: > > On Tue, 2011-02-01 at 16:33 -0600, Warren Samples wrote: > > > On Tue, 2011-02-01 at 11:53 -0800, Jim Lambert wrote: > > > > Richard wrote: > > > > > > > > > Currently the LiveCode engine uses the Windows hiliteColor when > > > > > selecting text, ignoring whatever highlight color may be in use by the > > > > > current theme. > > > > > > > > > > Is there a shell query I can run to determine the current text highlight > > > > > color? > > > > > > > > > > > > There probably is a shell query, but if there isn't, you might possibly programmatically select some text on a white background then use mouseColor to sniff out the hiliteColor. > > > > > > > > Or pixelColorAt(x,y), if we ever get it! ;) > > > > > > > > Jim Lambert > > > > > > > > > Richard, > > > > > > It probably will depend on what desktop environment the user is running, > > > but try searching GConf and gconftool. This may turn up your answer for > > > Gnome. I would also ask in Linux forums, where you will probably have > > > better luck getting a definitive answer or set of answers. (But if you > > > find out, please share - it's ugly hyperlink blue here in Mint!) > > > > > > Good luck, > > > > > > Warren > > > > > > > > > > > > here's a link that might be helpful: > > > > http://projects.gnome.org/gconf/ > > > > > > > > > In fact, run the command found on the page linked to in the previous > post: > > 'gconftool-2 -R /desktop/gnome' > > Scroll down a bit and you should come to entries like this: > > gtk_color_scheme = fg_color:#3d3d3d3d3d3d > bg_color:#e0e0deded3d3 > text_color:#c7c7c7c7c7c7 > base_color:#3c3c3b3b3737 > selected_fg_color:#3d3d3d3d3d3d > selected_bg_color:#d0d0d9d9d3d3 > tooltip_fg_color:#ffffffffffff > tooltip_bg_color:#2e2e2d2d2a2a > > > Those might be what you need. > > Hope this helps :) > > Warren > Richard, Try this in your terminal: 'gconftool-2 -g /desktop/gnome/interface/gtk_color_scheme' Here's what it gives me: warren at mint-i7 ~ $ gconftool-2 -g /desktop/gnome/interface/gtk_color_scheme fg_color:#3d3d3d3d3d3d bg_color:#e0e0deded3d3 text_color:#c7c7c7c7c7c7 base_color:#3c3c3b3b3737 selected_fg_color:#3d3d3d3d3d3d selected_bg_color:#d0d0d9d9d3d3 tooltip_fg_color:#ffffffffffff tooltip_bg_color:#2e2e2d2d2a2a From jmyepes at mac.com Tue Feb 1 18:57:22 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 15:57:22 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: References: <1296587886610-3252755.post@n4.nabble.com> Message-ID: <1296604642297-3253206.post@n4.nabble.com> Perfect! works for me... What is the difference? the reset printing? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3253206.html Sent from the Revolution - User mailing list archive at Nabble.com. From zryip.theslug at gmail.com Tue Feb 1 19:01:59 2011 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 2 Feb 2011 01:01:59 +0100 Subject: Referencing a single datagrid cell In-Reply-To: References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Message-ID: On Wed, Feb 2, 2011 at 12:29 AM, Bob Sneidar wrote: > Ok Peter helped me understand the GetDataOfIndex/SetDataOfIndex functions. I think when I read, "- Retrieves the internal array for key pIndex of the internal array in the data grid..." I just assumed that the returned value would always be an array. I see now that if you reference a column name for the second argument you get a value instead. > Internally the datagrid works with arrays even if you populate with the dgText property. For populating a datagrid of 3 columns with the dgData property we could use a script such as: put "a1" into theData[1]["col1"] put "b1" into theData[1]["col2"] put "c1" into theData[1]["col3"] put "a2" into theData[2]["col1"] put "b2" into theData[2]["col2"] put "c2" into theData[2]["col3"] Now if you transpose this code as bricks or pieces of puzzle and encase each piece by index and column names you could get: theData[1]["col1"]["col2"]["col3"] a1 b1 c1 theData[2]["col1"]["col2"]["col3"] a2 b2 c2 Now let's join the col names and extract each index theData["col1"]["col2"]["col3"] 1 a1 b1 c1 2 a2 b2 c2 Then you have a double entry table: the datagrid. Understand how working with arrays is one of the key to understand the datagrid object, I think. It make good sense why a name of a column (not the label) must be filled and unique: its just a key in an array. getDataOfIndex simply read the corresponding value in a double entry table such as you could do it in a spreadsheet, by using A2 or L2C1 Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From ambassador at fourthworld.com Tue Feb 1 19:18:21 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 01 Feb 2011 16:18:21 -0800 Subject: How to get current text hiliteColor in Linux? Message-ID: <4D48A2CD.4060901@fourthworld.com> Warren Samples wrote: > Try this in your terminal: > > 'gconftool-2 -g /desktop/gnome/interface/gtk_color_scheme' > > > Here's what it gives me: > > warren at mint-i7 ~ $ gconftool-2 > -g /desktop/gnome/interface/gtk_color_scheme > fg_color:#3d3d3d3d3d3d > bg_color:#e0e0deded3d3 > text_color:#c7c7c7c7c7c7 > base_color:#3c3c3b3b3737 > selected_fg_color:#3d3d3d3d3d3d > selected_bg_color:#d0d0d9d9d3d3 > tooltip_fg_color:#ffffffffffff > tooltip_bg_color:#2e2e2d2d2a2a Here I get a "no value set for '/desktop/gnome/interface/gtk_color_scheme' :( As much as I appreciate your help (and will no doubt find the other gconf elements valuable later on), after I posted I realized that the Lambert Method will work: enough LC objects take on the appropriate hilite color automatically (like default buttons, checkboxes that are set, and others) that I should be able to use those to get what I need. The extra advantage of the Lambert Method is that it'll (hopefully) work under KDE as well as Gnome. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From lists at mangomultimedia.com Tue Feb 1 19:52:10 2011 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 1 Feb 2011 19:52:10 -0500 Subject: datagrid: rows disapear when add new row In-Reply-To: <1296602875229-3253181.post@n4.nabble.com> References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> <1296602875229-3253181.post@n4.nabble.com> Message-ID: On Tue, Feb 1, 2011 at 6:27 PM, JosepM wrote: > > I don't remember why I use ResetList but sometimes doesn't refresh > correctly. > > The bug success when you scroll down to edit the row that is out of the > viewable area. But only the first time, if you add many rows and scroll > down > and edit, nothing happen. > > This happen with a fresh datagrid. > > 1) create a datagrid with 6 rows and 4 cols visibles. Left the properties > by > default. > 2) add 5 rows and edit the col 2 and col 3. Tab from col 3 to col 4. > 3) add the 6th row and edit col 2 and col 3 and press tab until col 4. The > value filled into col 3 isn't showed. > 4) add the 7th row and scroll and edit. The scroll isn't showed auto, you > must scroll down. > 5) if you add another row, all data flash and disappear. The data still > here > but isn't showed. > I created the data grid as specified above and used your mouseUp script. This code worked fine in my tests. What version of LiveCode are you using and what do you get if you execute the following in the message box: put the uRIP["version"] of stack "revDataGridLibrary" && the uRIP["buildnumber"] of stack "revDataGridLibrary" -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com LiveCode Resources for Developers: http://livecode.bluemangolearning.com From jmyepes at mac.com Tue Feb 1 19:56:17 2011 From: jmyepes at mac.com (JosepM) Date: Tue, 1 Feb 2011 16:56:17 -0800 (PST) Subject: datagrid: rows disapear when add new row In-Reply-To: References: <1296566995885-3251346.post@n4.nabble.com> <1296591930876-3252893.post@n4.nabble.com> <1296602875229-3253181.post@n4.nabble.com> Message-ID: <1296608177607-3253264.post@n4.nabble.com> I get 1.0.2 11 I try with 4.5.3 and 4.6 and the same. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-rows-disapear-when-add-new-row-tp3251346p3253264.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Tue Feb 1 20:25:59 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 1 Feb 2011 17:25:59 -0800 Subject: Referencing a single datagrid cell In-Reply-To: References: <090BE2B6-6BA8-4A11-AE1B-5BB602B38E67@twft.com> Message-ID: Thanks for the clear explanation. For me, it's not the use of arrays that is the problem, I'm a fan of arrays. My simple brain just has a hard time wrapping my head around when I can call the dg commands/functions directly, when I have to dispatch/send them, when I have to tag on "in zero seconds". I have been bitten by that many times! On the other hand, the dgText is always easily accessible and I can turn it into an array if I need to. I have some homegrown handlers that are pretty much the equivalent of the dg command/functions but accessing the dgText instead of internal dg arrays and so far they have worked well for me and I have not had to worry if the scripts that use them are in the datagrid group path or not. Pete Haworth On Feb 1, 2011, at 4:01 PM, zryip theSlug wrote: > On Wed, Feb 2, 2011 at 12:29 AM, Bob Sneidar wrote: >> Ok Peter helped me understand the GetDataOfIndex/SetDataOfIndex functions. I think when I read, "- Retrieves the internal array for key pIndex of the internal array in the data grid..." I just assumed that the returned value would always be an array. I see now that if you reference a column name for the second argument you get a value instead. >> > > Internally the datagrid works with arrays even if you populate with > the dgText property. > > For populating a datagrid of 3 columns with the dgData property we > could use a script such as: > > put "a1" into theData[1]["col1"] > put "b1" into theData[1]["col2"] > put "c1" into theData[1]["col3"] > put "a2" into theData[2]["col1"] > put "b2" into theData[2]["col2"] > put "c2" into theData[2]["col3"] > > Now if you transpose this code as bricks or pieces of puzzle and > encase each piece by index and column names you could get: > > theData[1]["col1"]["col2"]["col3"] > a1 b1 c1 > theData[2]["col1"]["col2"]["col3"] > a2 b2 c2 > > Now let's join the col names and extract each index > > theData["col1"]["col2"]["col3"] > 1 a1 b1 c1 > 2 a2 b2 c2 > > Then you have a double entry table: the datagrid. > > Understand how working with arrays is one of the key to understand the > datagrid object, I think. It make good sense why a name of a column > (not the label) must be filled and unique: its just a key in an array. > > getDataOfIndex simply read the corresponding value in a double entry > table such as you could do it in a spreadsheet, by using A2 or L2C1 > > > Best regards, > > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From warren at warrensweb.us Tue Feb 1 21:31:29 2011 From: warren at warrensweb.us (Warren Samples) Date: Tue, 01 Feb 2011 20:31:29 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <4D48A2CD.4060901@fourthworld.com> References: <4D48A2CD.4060901@fourthworld.com> Message-ID: <1296613889.8083.430.camel@mint-i7> On Tue, 2011-02-01 at 16:18 -0800, Richard Gaskin wrote: > Warren Samples wrote: > > > Try this in your terminal: > > > > 'gconftool-2 -g /desktop/gnome/interface/gtk_color_scheme' > > > > > > Here's what it gives me: > > > > warren at mint-i7 ~ $ gconftool-2 > > -g /desktop/gnome/interface/gtk_color_scheme > > fg_color:#3d3d3d3d3d3d > > bg_color:#e0e0deded3d3 > > text_color:#c7c7c7c7c7c7 > > base_color:#3c3c3b3b3737 > > selected_fg_color:#3d3d3d3d3d3d > > selected_bg_color:#d0d0d9d9d3d3 > > tooltip_fg_color:#ffffffffffff > > tooltip_bg_color:#2e2e2d2d2a2a > > Here I get a "no value set for '/desktop/gnome/interface/gtk_color_scheme' > > :( > > As much as I appreciate your help (and will no doubt find the other > gconf elements valuable later on), after I posted I realized that the > Lambert Method will work: enough LC objects take on the appropriate > hilite color automatically (like default buttons, checkboxes that are > set, and others) that I should be able to use those to get what I need. > > The extra advantage of the Lambert Method is that it'll (hopefully) work > under KDE as well as Gnome. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv Hi Richard, This gives a reasonable approximation, certainly much better than the default, but it raises a question for me. Is there a way to set the foreground color of the selection? I don't find it in the dictionary, and the white text doesn't work so well in all cases. Obviously there's a global property that is being set be set, but I can't find it. Btw, it might be that you'll get some result running the command: 'gconftool-2 -R /desktop/gnome/interface' or 'get shell("gconftool-2 -R /desktop/gnome/interface")' in Livecode It's just an attempt to return a smaller result than getting the whole user desktop config. Warren From capellan2000 at gmail.com Tue Feb 1 23:22:52 2011 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 1 Feb 2011 20:22:52 -0800 (PST) Subject: No dial command In-Reply-To: <3cf60.4a9a1494.3a79e352@aol.com> References: <3cf60.4a9a1494.3a79e352@aol.com> Message-ID: <1296620572792-3253395.post@n4.nabble.com> Hi Craig, Look at this page, from Ken Ray website: http://www.sonsothunder.com/devres/livecode/tips/port001.htm ------------------------------------------- Dialing a Phone Number With the modem: Port > Hello, > > Few years ago, I have used the dial function in Hypercard, e.g. : dial > 05552222 > > What is the corresponding function in Metacard? There is none in MetaCard. You could try to build something like that yourself. E.g.: on dial dNumber open file "modem:" for write write "ATDT" && dNumber to file "modem:" close file "modem:" end dial dNumber Regards, Sjoerd Posted 2/28/2002 by Sjoerd Op 't Land to the MetaCard List (See the complete post/thread) Macintosh users that want to dial a Phone number from MetaCard using a Global Village Voice-Modem must add "return" after dNumber. on dial dNumber -- function by Sjoerd Op 't Land open file modem: for write write "ATDT" && dNumber && return to file modem: end dial dNumber As I don't want to close the modem immediately after dialing, I put the last handler in a button: on mouseUp close file modem: end mouseUp ------------------------------------------ Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/No-dial-command-tp3253093p3253395.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Wed Feb 2 00:44:20 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 1 Feb 2011 21:44:20 -0800 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <4D48A2CD.4060901@fourthworld.com> References: <4D48A2CD.4060901@fourthworld.com> Message-ID: <1251429052125.20110201214420@ahsoftware.net> Richard- > Here I get a "no value set for > '/desktop/gnome/interface/gtk_color_scheme' I get the same. > As much as I appreciate your help (and will no doubt find the other > gconf elements valuable later on), after I posted I realized that the > Lambert Method will work: enough LC objects take on the appropriate > hilite color automatically (like default buttons, checkboxes that are > set, and others) that I should be able to use those to get what I need. That's a pretty clever workaround, and it works for me. put line 6 of the effective colors of button x into tHiliteColor -- -Mark Wieder mwieder at ahsoftware.net From jmyepes at mac.com Wed Feb 2 04:15:43 2011 From: jmyepes at mac.com (JosepM) Date: Wed, 2 Feb 2011 01:15:43 -0800 (PST) Subject: iOS: Developing a project for others Message-ID: <1296638143183-3253649.post@n4.nabble.com> Hi, I have a question about develop a project for others. I'm enrolled into the Apple program for iOS, so I can upload apps to the App Store, but what happen if I develop a app for others that must upload the app to the App Store? Is posible? At first, I think that I will need their certificate to sign the app, isn't? Thoughts? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/iOS-Developing-a-project-for-others-tp3253649p3253649.html Sent from the Revolution - User mailing list archive at Nabble.com. From coiin at verizon.net Wed Feb 2 07:11:59 2011 From: coiin at verizon.net (Colin Holgate) Date: Wed, 02 Feb 2011 07:11:59 -0500 Subject: iOS: Developing a project for others In-Reply-To: <1296638143183-3253649.post@n4.nabble.com> References: <1296638143183-3253649.post@n4.nabble.com> Message-ID: <83B6881A-C65C-43BA-B284-6709B53E7F0F@verizon.net> On Feb 2, 2011, at 4:15 AM, JosepM wrote: > >At first, I think that I will need their certificate to sign the app, isn't? Have them add you as a team member, so you can log in and do the upload for them. Then, on whoever's machine is their primary account contact, export a P12 certificate from their Keychain Access, and import that file into your Keychain Access. After that you should be able to log in to their account and create the distribution provisioning files, do the build, and upload to their account (assuming they gave you the right level of access). The upload process involves a lot of questions, so when I did that with an app I had screen sharing on, and my client was watching, and sending over Word files with all the description texts already laid out. I just had to copy and paste things into the right slots. From rman at free.fr Wed Feb 2 07:20:23 2011 From: rman at free.fr (Robert Mann) Date: Wed, 2 Feb 2011 04:20:23 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: References: <1296587886610-3252755.post@n4.nabble.com> Message-ID: <1296649223030-3253898.post@n4.nabble.com> Thanks a lot Hugh. Tried, I thought reset formatPrinting to false could have helped.. but does not do the trick over here (mac os x 10.6.5 - liveCode 450 build 1080) - possible to check what version you tried it on?? [i modified my script And tried yours straight from the box] I still get a blank space at the bottom as shows here : Here is the correct pdf printed from the menu http://runtime-revolution.278305.n4.nabble.com/file/n3253898/titiPrint.pdf titiPrint.pdf Here is the faulty pdf printed from the script http://runtime-revolution.278305.n4.nabble.com/file/n3253898/totoPrint.pdf totoPrint.pdf RObert -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3253898.html Sent from the Revolution - User mailing list archive at Nabble.com. From rman at free.fr Wed Feb 2 07:21:49 2011 From: rman at free.fr (Robert Mann) Date: Wed, 2 Feb 2011 04:21:49 -0800 (PST) Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: <1296604642297-3253206.post@n4.nabble.com> References: <1296587886610-3252755.post@n4.nabble.com> <1296604642297-3253206.post@n4.nabble.com> Message-ID: <1296649309076-3253901.post@n4.nabble.com> Hi Joseph, could you check which livecode and system version this is running fine for you? thanks. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-print-a-A4-stack-to-an-A4-pdf-tp3252755p3253901.html Sent from the Revolution - User mailing list archive at Nabble.com. From pmbrig at gmail.com Wed Feb 2 08:11:04 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Wed, 2 Feb 2011 08:11:04 -0500 Subject: No dial command In-Reply-To: <3cf60.4a9a1494.3a79e352@aol.com> References: <3cf60.4a9a1494.3a79e352@aol.com> Message-ID: On Feb 1, 2011, at 5:29 PM, DunbarX at aol.com wrote: > HC sends DTMF tones with the "dial" command through the speaker jack. > These can connect to a dialer gadget called a "TurboDialer", which > connects to a > telephone handset. > > Nothing like that in LC at all? Never mind the hardware. > > It is actually possible to make calls that way by holding the > receiver up > to the computer speaker. > > Shades of Captain Crunch. I used this in an old HC stack. When I joined my current group practice I discovered that the modern phone system here (apparently a LAN with its own server, all self-contained) wouldn't recognize the tones played through the receiver. So I retired that feature. The loss is now somewhat mitigated by my being able to use voice-activated dialing on my iPhone.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig It was all so different before everything changed. From ambassador at fourthworld.com Wed Feb 2 08:40:34 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 02 Feb 2011 05:40:34 -0800 Subject: How to get current text hiliteColor in Linux? Message-ID: <4D495ED2.70408@fourthworld.com> Warren Samples wrote: > This gives a reasonable approximation, certainly much better than the > default, but it raises a question for me. Is there a way to set the > foreground color of the selection? I don't find it in the dictionary, > and the white text doesn't work so well in all cases. Obviously there's > a global property that is being set be set, but I can't find it. In contrast to the engine's behavior on OS X, in Windows and Linux selected text is inverted and I can find no way to have it do otherwise. This has been an ongoing problem that has limited a good many xplat designs for several years, so with your prompting I finally took the time to submit a request for that, coupling it with a request for improved behavior of the hiliteColor property in fields since they seem related and could hopefully be implemented at the same time: need more control over the appearance of selected text -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pmbrig at gmail.com Wed Feb 2 08:51:33 2011 From: pmbrig at gmail.com (Peter Brigham MD) Date: Wed, 2 Feb 2011 08:51:33 -0500 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <1251429052125.20110201214420@ahsoftware.net> References: <4D48A2CD.4060901@fourthworld.com> <1251429052125.20110201214420@ahsoftware.net> Message-ID: <8A410381-F2B2-4273-AB79-62985D226A41@gmail.com> On Feb 2, 2011, at 12:44 AM, Mark Wieder wrote: > put line 6 of the effective colors of button x into tHiliteColor The colors property! -- very handy, and not just for Linux. I should spend more time reading the dictionary. (I think I just revealed my essential geekiness.) -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From warren at warrensweb.us Wed Feb 2 09:01:45 2011 From: warren at warrensweb.us (Warren Samples) Date: Wed, 02 Feb 2011 08:01:45 -0600 Subject: How to get current text hiliteColor in Linux? In-Reply-To: <4D495ED2.70408@fourthworld.com> References: <4D495ED2.70408@fourthworld.com> Message-ID: <1296655305.2163.26.camel@mint-i7> On Wed, 2011-02-02 at 05:40 -0800, Richard Gaskin wrote: > Warren Samples wrote: > > > This gives a reasonable approximation, certainly much better than the > > default, but it raises a question for me. Is there a way to set the > > foreground color of the selection? I don't find it in the dictionary, > > and the white text doesn't work so well in all cases. Obviously there's > > a global property that is being set be set, but I can't find it. > > In contrast to the engine's behavior on OS X, in Windows and Linux > selected text is inverted and I can find no way to have it do otherwise. > > This has been an ongoing problem that has limited a good many xplat > designs for several years, so with your prompting I finally took the > time to submit a request for that, coupling it with a request for > improved behavior of the hiliteColor property in fields since they seem > related and could hopefully be implemented at the same time: > > need more control over the appearance of selected text > > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ Voted for this :) Thanks! From baccheschi at tin.it Wed Feb 2 09:47:45 2011 From: baccheschi at tin.it (baccheschi at tin.it) Date: Wed, 2 Feb 2011 15:47:45 +0100 (CET) Subject: How upload.. Message-ID: <12de6d7e779.baccheschi@tin.it> Hi, I developed some small applications that I wanted to publish on the AppStore Mac, I have inscribed me as a developer for the Mac App Store, I created the two certificates and Mac Mac App Installer, I added up Itunesconnect my applications that are now waiting to upload BUT when I try to use Application Loader .. it does not see my applications LiveCode created and placed on the desktop. Must be a special operation at the time of the creation of applications with LiveCode so that they can be seen from the Application Loader and then sent for publication to Apple? Excuse my English..please?. mario From john at splash21.com Wed Feb 2 09:56:42 2011 From: john at splash21.com (John Craig) Date: Wed, 02 Feb 2011 14:56:42 +0000 Subject: How upload.. In-Reply-To: <12de6d7e779.baccheschi@tin.it> References: <12de6d7e779.baccheschi@tin.it> Message-ID: <4D4970AA.8030100@splash21.com> Hi, Mario. A few of us got caught out for iOS apps - we had to zip the file first. HTH. On 02/02/2011 14:47, baccheschi at tin.it wrote: > > > Hi, I developed some small applications that I wanted to publish on the > AppStore Mac, > I have inscribed me as a developer for the Mac App Store, > I created the two certificates and Mac Mac App Installer, > I added up Itunesconnect my applications that are now waiting to upload > BUT > when I try to use Application Loader .. it does not see my applications > LiveCode created and placed on the desktop. > Must be a special operation at the time of the creation of applications with > LiveCode so that they can be seen from the Application Loader and then > sent for publication to Apple? > > > Excuse my English..please?. > mario > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Wed Feb 2 10:20:09 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 02 Feb 2011 07:20:09 -0800 Subject: Reminder: Linux poll @ forums Message-ID: <4D497629.2040606@fourthworld.com> A couple months ago I posted a poll to see which Linux distros you LiveCode folks are using: So far we've had only 19 responses, but I'm guessing we have more Linux users on this list than that. If you can spare a moment it would be nice to see which distro you're using, and whichever one you like it's good to see how many Linux users we have here. Thanks - -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From baccheschi at tin.it Wed Feb 2 10:29:16 2011 From: baccheschi at tin.it (baccheschi at tin.it) Date: Wed, 2 Feb 2011 16:29:16 +0100 (CET) Subject: R: Re: How upload.. Message-ID: <12de6fdebb7.baccheschi@tin.it> ----Messaggio originale---- Da: john at splash21.com Data: 2-feb-2011 15.56 A: "How to use LiveCode" Ogg: Re: How upload.. Hi, Mario. A few of us got caught out for iOS apps - we had to zip the file first. HTH. On 02/02/2011 14:47, baccheschi at tin.it wrote: > > > Hi, I developed some small applications that I wanted to publish on the > AppStore Mac, > I have inscribed me as a developer for the Mac App Store, > I created the two certificates and Mac Mac App Installer, > I added up Itunesconnect my applications that are now waiting to upload > BUT > when I try to use Application Loader .. it does not see my applications > LiveCode created and placed on the desktop. > Must be a special operation at the time of the creation of applications with > LiveCode so that they can be seen from the Application Loader and then > sent for publication to Apple? > > > Excuse my English..please?. > mario > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Yes i didmario From admin at FlexibleLearning.com Wed Feb 2 10:40:31 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Wed, 2 Feb 2011 15:40:31 -0000 Subject: How to : print a A4 stack to an A4 pdf ?? In-Reply-To: Message-ID: Hi Robert, I just tried Windows XP - 4.5(1080) with supplied revpdfprinter.dll dated Sep 2010 - 4.5.2(1150) with supplied revpdfprinter.dll dated Dec 2010 I also tried Mac OS X 10.6.6 - 4.5.2(1150) with supplied revpdfprinter.dll dated Dec 2010 All prints are as expected with no 2cm print offset in the output. Maybe it's a 10.6.5 thing? Someone with 10.6.5 would need to run the script and see if your results can be replicated. Hugh Senior FLCo -- Original message Thanks a lot Hugh. Tried, I thought reset formatPrinting to false could have helped.. but does not do the trick over here (mac os x 10.6.5 - liveCode 450 build 1080) - possible to check what version you tried it on?? [i modified my script And tried yours straight from the box] I still get a blank space at the bottom as shows here : Here is the correct pdf printed from the menu http://runtime-revolution.278305.n4.nabble.com/file/n3253898/titiPrint.pdf titiPrint.pdf Here is the faulty pdf printed from the script http://runtime-revolution.278305.n4.nabble.com/file/n3253898/totoPrint.pdf totoPrint.pdf RObert From jemirandav at gmail.com Wed Feb 2 11:32:38 2011 From: jemirandav at gmail.com (Javier Miranda V.) Date: Wed, 2 Feb 2011 12:32:38 -0400 Subject: LiveCode for e-book production Message-ID: <3B441D40-E350-4ECC-AB04-A33A4318F882@gmail.com> Thank you very much for your posts regarding this topic. Your feedback will be very helpful, I?m glad you find it interesting, this confirms the great characteristics and features of LiveCode and the great community around it. Saludos, Javier Miranda V. From pete at mollysrevenge.com Wed Feb 2 12:37:41 2011 From: pete at mollysrevenge.com (Peter Haworth) Date: Wed, 2 Feb 2011 09:37:41 -0800 Subject: Cascading Option Menus Message-ID: The recent thread on mouseDoubleup and particularly Richard's thought on HIG have made me realise the UI choices I made weren't the best. I'm now thinking of using a cascading option menu. The menuPick dictionary entry says "If the menu item is part of a submenu, the menu item label is followed by a vertical bar (|) and the submenu's label." but what I'm seeing is just the actual submenu choice with tabs at the front of it. I don't think I can make this work since I could have the same submenu item listed under more than one main menu item. What am I missing? This is all on a Mac. Pete Haworth From dunbarx at aol.com Wed Feb 2 13:15:07 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Wed, 02 Feb 2011 13:15:07 -0500 Subject: Cascading Option Menus In-Reply-To: References: Message-ID: <8CD911C40564512-AD8-7FF@webmail-d084.sysops.aol.com> Pete: There should be no issue here. In a cascade menu put: AA : BB CC DD EE : BB CC DD FF You will want to get the menuHistory in order to distinguish between the redundant choices: on menuPick pItemName put pItemname && the menuhistory of me end menuPick I got this from Jan Shenkel wrote a nice description of "menu tags", which I append here: Well, rev 3.5 introduced something called menu 'tagging' - here's a copy from the IDE change log included with rev 3.5 --=== --Menu-item tagging --~~~~~~~~~~~~~~~~~ --The menu item specification has been extended to allow a tag to be specified. It is now of the form: --