Re: Having fits with the menu bar

2011-03-11 Thread J. Landman Gay
On 3/11/11 7:13 PM, James Hurley wrote: &&%R$$#^#*(( I'm trying to keep this clean. I'm getting nowhere with the menu bar. (Mac OS) I have two item in the menu bar, a "File" menu and a "Help" menu. They both work as expected in the IDE. But when I set the menubar property of the stack to the

Re: [ANN} iOS UINavigationBar Kit V 1.4.2 Released

2011-03-11 Thread J. Landman Gay
On 3/10/11 6:02 PM, Thomas McGrath III wrote: The funny thing is when I open this in the Android simulator I get this very weird feeling inside like I just did something wrong?!?!?! SO, in the next update I plan on making a unique to Android Navigation Bar. Not as many standards to go by though

Re: Scale Icon in a Button

2011-03-11 Thread J. Landman Gay
On 3/11/11 11:07 PM, Bob Sneidar wrote: That would work I guess. Since it's true I have the image in my LiveCode stack, should I employ some of the methodology for scaling graphics in LiveCode on the original image itself? The Button icon should then follow suit eh? I will explore later. Right.

Re: What's wrong with this picture?

2011-03-11 Thread Warren Samples
On Fri, 2011-03-11 at 21:33 -0800, Bob Sneidar wrote: > error : You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use > near '(30), Bob, Isn't trying to tell you that "datetime(30)" is not a valid declaration? Should it

Re: Scale Icon in a Button

2011-03-11 Thread Scott Rossi
Recently, Bob Sneidar wrote: > I have a button with an icon. The icon is too big and I don't have the image > anymore so I cannot photoshop it. I want to make the button about half the > size and have the icon scale with it. Is this possible? Changing th size of > the button only clips the icon im

What's wrong with this picture?

2011-03-11 Thread Bob Sneidar
Hi all. I am having a problem with this sql and I do not know why. I am using mySQL. The error I am generating is: error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(30), `sw_service_pack_major_version

Re: Scale Icon in a Button

2011-03-11 Thread Bob Sneidar
Thanks Phil! I'll give that a go. Bob On Mar 11, 2011, at 8:54 PM, Phil Davis wrote: > Hi Bob, > > If the icon still shows up as the icon of the button, you still have the > image - at least the icon-size one. > > Try this script in a new button and see what you get: > on mouseUp > ask fi

Re: Scale Icon in a Button

2011-03-11 Thread Bob Sneidar
That would work I guess. Since it's true I have the image in my LiveCode stack, should I employ some of the methodology for scaling graphics in LiveCode on the original image itself? The Button icon should then follow suit eh? I will explore later. Now I have SQL problems. Bob On Mar 11, 201

Re: Scale Icon in a Button

2011-03-11 Thread Phil Davis
Hi Bob, If the icon still shows up as the icon of the button, you still have the image - at least the icon-size one. Try this script in a new button and see what you get: on mouseUp ask file "Save as PNG:" if it = empty then exit to top put the icon of btn "myButtonWithMissingIcon" in

Re: Scale Icon in a Button

2011-03-11 Thread Colin Holgate
On Mar 11, 2011, at 11:24 PM, Bob Sneidar wrote: > I have a button with an icon. The icon is too big and I don't have the image > anymore so I cannot photoshop it. I want to make the button about half the > size and have the icon scale with it. Is this possible? Changing th size of > the butto

Scale Icon in a Button

2011-03-11 Thread Bob Sneidar
Hi all. I have a button with an icon. The icon is too big and I don't have the image anymore so I cannot photoshop it. I want to make the button about half the size and have the icon scale with it. Is this possible? Changing th size of the button only clips the icon image. Bob ___

Re: [OT] Autocad clone for Linux

2011-03-11 Thread Mark Wieder
Richmond- http://www.omgubuntu.co.uk/2011/03/the-end-of-ubuntu-netbook-edition-the-return-of-ubuntu/ The comments are hilarious. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this ur

Compare: Cheap at half the price

2011-03-11 Thread J. Landman Gay
Recently brought to my attention: An iApp builder. All it does is make ebooks and it costs three times more than LiveCode. Plus you have to buy InDesign, of course. They don't know what they're missing. -- Jacqueline Landman Gay

Having fits with the menu bar

2011-03-11 Thread James Hurley
&&%R$$#^#*(( I'm trying to keep this clean. I'm getting nowhere with the menu bar. (Mac OS) I have two item in the menu bar, a "File" menu and a "Help" menu. They both work as expected in the IDE. But when I set the menubar property of the stack to the name of the menu bar group, the menu di

Re: Efficiency question for list modification

2011-03-11 Thread Bob Sneidar
Wha?? There is a newer form of split and combine?? Bob On Mar 11, 2011, at 4:42 PM, Alex Tweedly wrote: > >> FlexibleLearning wrote: >> >>> This is BAD... >>> repeat for each line L in tData >>> add 1 to n >>> put (item 1 of L/div1) into item 1 of line n of stdout >>> put (item

Re: Efficiency question for list modification

2011-03-11 Thread Alex Tweedly
FlexibleLearning wrote: This is BAD... repeat for each line L in tData add 1 to n put (item 1 of L/div1) into item 1 of line n of stdout put (item 2 of L/div2) into item 2 of line n of stdout end repeat The use of "put ... after ..." is so efficient this may be an intere

Re: Coding Challenge

2011-03-11 Thread Alex Tweedly
You could use getRelationship() as I sent earlier, but it would be a bit clumsy. Easier to test for validity directly, something like (off the top of my head ...) function canItBeValid p1, p2, pRelationship put sample(p1) into p1 put sample(p2) into p2 switch pRelationship case "="

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry
Yes, it's a blank image already on the card. g -- photo site: http://gerryorkin.com On Saturday, 12 March 2011 at 8:59 AM, Bob Sneidar wrote: > Are you creating image 1 first before you do this? > > Bob > > > On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > > > Bob, it's working here :) >

Re: Standalone Problems

2011-03-11 Thread edward cawley
Thanks Bob, The permissions were the problem, some of the files were read only, so it worked fine from my system but when I tried to load it into the C drive it wouldn't transfer. Made them all read&write and it worked like a charm. Ed > > Message: 17 > Date: Thu, 10 Mar 2011 09:51:58 -0800 > F

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
Are you creating image 1 first before you do this? Bob On Mar 11, 2011, at 1:22 PM, Gerry Orkin wrote: > Bob, it's working here :) > > Gerry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry Orkin
Bob, it's working here :) Gerry -- http://gerryorkin.com On 12/03/2011, at 5:06 AM, Bob Sneidar wrote: > I have this in a button on a card with a field named "Place". > > on mouseUp pMouseBtnNo >breakpoint >put url ("http://maps.google.com/maps/api/staticmap?center="; & fld "place"

[OT] Autocad clone for Linux

2011-03-11 Thread Richmond
Mmmm . . . tasty: http://www.omgubuntu.co.uk/2011/03/autocad-clone-draftsight-hits-linux-beta/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://

Re: > Importing big JPEGs goes wonky

2011-03-11 Thread Richmond
On 03/11/2011 07:16 PM, Richard Gaskin wrote: Richmond wrote: On 03/11/2011 06:45 PM, John Dixon wrote: How big is big ? 4150 x 1120 This is a known issue with images> 4096px, which I believe has been fixed for the forthcoming v4.6. Thanks for the help. However . . . until I've "m

Re: Coding Challenge

2011-03-11 Thread Nonsanity
On Fri, Mar 11, 2011 at 2:32 PM, Nonsanity wrote: > On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity wrote: > >> Try this. I haven't tested, but the logic looks sound enough... > > > Actually, don't try that, try this. That one had flaws this one should fix. > (But again, not tested at ALL.) > Typo.

Re: Coding Challenge

2011-03-11 Thread Nonsanity
On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity wrote: > Try this. I haven't tested, but the logic looks sound enough... Actually, don't try that, try this. That one had flaws this one should fix. (But again, not tested at ALL.) private function resolveRelation pPers1,pPers2,pRelation put sRel

Re: Coding Challenge

2011-03-11 Thread Nonsanity
Try this. I haven't tested, but the logic looks sound enough... private function resolveRelation pPers1,pPers2,pRelation put sRelations[pPers1][pPers2] into relationship -- if the two are equal but we're testing for > or < then return false if relationship is "=" and pRelation is not "="

Re: datagrid: when sort by text column datagrid add many empty rows

2011-03-11 Thread Bob Sneidar
Seems you have empty rows or rows with no data in the column you are sorting by. To determine if this is true, get the dgText of the datagrid, and examine it either in the debugger or else by putting it in a scrolling field. I made a custom sort function that sorts rows with a particular value

Re: Coding Challenge

2011-03-11 Thread Nonsanity
I don't think this works... The Iterating function doesn't really iterate. It just does a bit of tire spinning without going anywhere. And gives a wrong result. Let say the array looked like this: [B][A] = > [B][C] = < [B][D] = < [C][E] = < [D][E] = < Which is enough information to determine thi

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
I have this in a button on a card with a field named "Place". on mouseUp pMouseBtnNo breakpoint put url ("http://maps.google.com/maps/api/staticmap?center="; & fld "place" & "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage put someimage into image 1 end mouseUp so

Re: Efficiency question for list modification

2011-03-11 Thread Bob Sneidar
hmmm interesting, concatenation is much better than enumeration. Whoda think it? I will keep that in mind for large data sets. Thanks for the info! Bob On Mar 11, 2011, at 3:24 AM, FlexibleLearning wrote: > Proof of how optimized syntax can make an enormous difference to speed (by > orders of

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
I would imagine you have more than you think in the field. It probably contains a space, a tab or a carriage return, or some other invisible character. Try stepping through your code and looking at the contents of the variables. You will have to put the field contents into a variable to do this

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Bob Sneidar
When I do this, I am getting the HTML for the image, and not the image itself. Therefore the statement "put someImage into image 1" fails. Bob On Mar 11, 2011, at 2:55 AM, Gerry wrote: > This works: > > put url > "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512

Re: [ANN} iOS UINavigationBar Kit V 1.4.2 Released

2011-03-11 Thread JosepM
Thanks! :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-iOS-UINavigationBar-Kit-V-1-4-2-Released-tp3346875p3348685.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing

Re: Standalone problem

2011-03-11 Thread J. Landman Gay
On 3/10/11 11:18 AM, edward cawley wrote: Thank you much Jacque, I'm almost there. I made the changes you suggested and I have one remaining problem. If I run it off the shared disk in VM Fusion it works fine, but if I move the app and associated files to the C drive on the students laptops, or

Re: Efficiency question for list modification

2011-03-11 Thread Richard Gaskin
FlexibleLearning wrote: > Proof of how optimized syntax can make an enormous difference to speed (by > orders of magnitude in this case). > > This is BAD... > repeat for each line L in tData > add 1 to n > put (item 1 of L/div1) into item 1 of line n of stdout > put (item 2 of L/div

datagrid: when sort by text column datagrid add many empty rows

2011-03-11 Thread JosepM
Hi, I detected that when I order by a column that is defined as text and scroll down to the last row many many empty rows are added and cause that only the last row left visible on top of the datagrid and the rows scroll without moving it, if you scroll up again the rows after pass the empty ones

Re: > Importing big JPEGs goes wonky

2011-03-11 Thread Richard Gaskin
Richmond wrote: > On 03/11/2011 06:45 PM, John Dixon wrote: >> How big is big ? > > 4150 x 1120 This is a known issue with images > 4096px, which I believe has been fixed for the forthcoming v4.6. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthw

Re: datagrid: force to send "on closeeditor" to one column

2011-03-11 Thread JosepM
Seems that I prefer check before finish the drop operation... Thanks, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/datagrid-force-to-send-on-closeeditor-to-one-column-tp3342154p3348633.html Sent from the Revolution - User mailing list archive at Nabble.c

Re: Importing big JPEGs goes wonky

2011-03-11 Thread Richmond
On 03/11/2011 06:45 PM, John Dixon wrote: How big is big ? 4150 x 1120 Date: Fri, 11 Mar 2011 18:39:30 +0200 From: richmondmathew...@gmail.com To: use-livecode@lists.runrev.com Subject: Importing big JPEGs goes wonky They become corrupted. Behaviour reported on MacPPC, MacINTEL and Windows

RE: Importing big JPEGs goes wonky

2011-03-11 Thread John Dixon
How big is big ? > Date: Fri, 11 Mar 2011 18:39:30 +0200 > From: richmondmathew...@gmail.com > To: use-livecode@lists.runrev.com > Subject: Importing big JPEGs goes wonky > > They become corrupted. > > Behaviour reported on MacPPC, MacINTEL and Windows, > __

Importing big JPEGs goes wonky

2011-03-11 Thread Richmond
They become corrupted. Behaviour reported on MacPPC, MacINTEL and Windows, ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mai

Re: Coding Challenge

2011-03-11 Thread Malte Brill
Ok, I will not claim I understand how this works, but it appears to do. :-) Still needs more testing, but for now I think it works. Cheers, Malte I have been asking a colleague for help (Danke danke danke Steffen) and here is what he came up with: local sRelations, sOpList on mouseUp lo

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Mike Bonner
Could also use merge for this Could have your default string stored in a property, load it into a global on startup then use merge. global gDefUrl put the defUrl of this stack into gDefUrl This would be in defUrl http://maps.google.com/maps/api/staticmap?center=[[fld "zoom"]]=8&size=512x512&maptype

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry
That's it! I actually jumped out of bed to try that, and found your message suggesting the same thing! Phew. Thanks for your response! Gerry -- photo site: http://gerryorkin.com On Friday, 11 March 2011 at 10:05 PM, Alex Tweedly wrote: > Haven't tried, but I always use parentheses with URL, s

Re: Coding Challenge

2011-03-11 Thread Malte Brill
Hi Alex, well what I need to do is to check if the relationship I am wanting to set is valid or not, before I write it to the database. I might not be clear enough. But my goal is not really to check for existing relations, but the validity of the data I am about to enter into the Database. So

Re: Efficiency question for list modification

2011-03-11 Thread FlexibleLearning
Proof of how optimized syntax can make an enormous difference to speed (by orders of magnitude in this case). This is BAD... repeat for each line L in tData add 1 to n put (item 1 of L/div1) into item 1 of line n of stdout put (item 2 of L/div2) into item 2 of line n of stdout end

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Alex Tweedly
Haven't tried, but I always use parentheses with URL, so try put url ("http://maps.google.com/maps/api/staticmap?center="&; fld "place"& "&zoom=8&size=512x512&maptype=roadmap&sensor=false") into someimage -- Alex. On 11/03/2011 10:55, Gerry wrote: This works: put url "http://maps.google.

Re: Arggggh. put Google maps URL weirdness

2011-03-11 Thread Keith Clarke
...try replacing the "place" with quote place quote ? On 11 Mar 2011, at 10:55, Gerry wrote: > This works: > > put url > "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false"; > into someimage > put someimage into image 1 > > > > But w

Re: Coding Challenge

2011-03-11 Thread Alex Tweedly
Sorry Malte - I didn't handle > relationships, only = and <. That part of the script should be changed to be -- now normalize the direct relationships put empty into gRelate repeat for each line L in tData if word 2 of L = "<" then put sample(word 1 of L) into t1

Arggggh. put Google maps URL weirdness

2011-03-11 Thread Gerry
This works: put url "http://maps.google.com/maps/api/staticmap?center=canberra&zoom=8&size=512x512&maptype=roadmap&sensor=false"; into someimage put someimage into image 1 But when I use the text in a field in building the url it breaks - I get a "bad request 400 error" from the Google serve

Re: Coding Challenge

2011-03-11 Thread Malte Brill
Hi Alex, thanks for taking the time to look into this. (and not late to the party at all) If I provide this data to your Script: Steffen > Malte Sascha < Malte Fritz = Sascha I get back Fritz-> Malte in the field. Which is true, but it leaves steffen untouched in this case. I guess what

Re: On-Rev antispam

2011-03-11 Thread Medard
Medard wrote: > it would be a good idea to take a look from time to time in the forums I began to write an article in the forum, but "subito" it vanished in the air ;-> (bad maneuver?) I think that I will resume offline! ___ use-livecode mailing lis