Re: Table field colored rows question

2015-08-11 Thread BNig
Hi, some code to make alternating row colors for fields in LC http://livecodeshare.runrev.com/stack/661/ListStripes_0_0_5 at least one of the attempts to improve on tableField is here. -- http://berndniggemann.on-rev.com/modTableField/modTableField_0_3_2.zip ---

Re: Table field colored rows question

2015-08-11 Thread Paul Dupuis
On 8/11/2015 11:44 AM, j...@souslelogo.com wrote: > Hi list > > Is there a quick way, like a property, to have successive rows of a > table field in alternate colors, like white, grey, white, grey, etc ? > I checked the graphic effects, but didn't find anything of the sort... > I'm using LC communi

Re: Table field colored rows question

2015-08-11 Thread Paul Hibbert
I guess you missed Scott Rossi’s announcement a few days ago… Paul >> I recently posted a little demo of a technique to customize a field with >> alternating colored lines, making a row-based table with no additional >> objects. You can download the stack from the forums: >> http://forums.liveco

Re: Table field

2015-07-12 Thread Michael Doub
d LC techniques. As per the above, if you wanted that third item all down the table, you have to loop through each line and dig it out, as others have already said. Craig Newman -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Sat, Jul 11, 2015 6:36 pm Subject: R

Re: Table field

2015-07-12 Thread JB
wrote: >> >>> The colunDelimiter will not. in and of itself, extract, say, the third item >>> of all the lines in a tab and return formatted dataSet. DataGrids have this >>> sort of functionality built-in, but that is still constructed from standard >>

Re: Table field

2015-07-12 Thread Peter M. Brigham
ig it out, as others have already said. >> >> >> Craig Newman >> >> >> >> -Original Message- >> From: Peter Haworth >> To: How to use LiveCode >> Sent: Sat, Jul 11, 2015 6:36 pm >> Subject: Re: Table field >>

Re: Table field

2015-07-11 Thread JB
and dig it out, as others have already said. > > > Craig Newman > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Sat, Jul 11, 2015 6:36 pm > Subject: Re: Table field > > > What Mike said. It's somewhat c

Re: Table field

2015-07-11 Thread dunbarx
down the table, you have to loop through each line and dig it out, as others have already said. Craig Newman -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Sat, Jul 11, 2015 6:36 pm Subject: Re: Table field What Mike said. It's somewhat confusing since

Re: Table field

2015-07-11 Thread Peter Haworth
What Mike said. It's somewhat confusing since there is a "columndelimiter" property which is set to tab by default but it seems to only be used in conjunction with the split command. On Sat, Jul 11, 2015 at 12:57 PM Mike Bonner wrote: > Its tab and cr delimited data, so set the itemdelimiter to

Re: Table field

2015-07-11 Thread Richmond
On 11/07/15 22:57, Mike Bonner wrote: Its tab and cr delimited data, so set the itemdelimiter to tab and get item 2 o fline 3 of field "xxx" Smashing: Thanks for a rapid and intelligible answer: you're the Man! Richmond. On Sat, Jul 11, 2015 at 1:51 PM, Richmond wrote: I have a table fiel

Re: Table field

2015-07-11 Thread Mike Bonner
Its tab and cr delimited data, so set the itemdelimiter to tab and get item 2 o fline 3 of field "xxx" On Sat, Jul 11, 2015 at 1:51 PM, Richmond wrote: > I have a table field containing some data I copy pasted from a spreadsheet > > [being unable to find a reliable way to import data directly fr

Re: Table Field question

2013-04-20 Thread dunbarx
I wish I had thought of that. Worked like a charm. Bravo, Jacque.. Craig -Original Message- From: J. Landman Gay To: How to use LiveCode Sent: Sat, Apr 20, 2013 9:51 pm Subject: Re: Table Field question On 4/20/13 5:55 PM, dunb...@aol.com wrote: > This is an instance wh

Re: Table Field question

2013-04-20 Thread J. Landman Gay
On 4/20/13 5:55 PM, dunb...@aol.com wrote: This is an instance where WYSIWYG is really useful. My kluge solves this, but the editable field has its text offset from the final text displayed, and is visually annoying. You could try setting the text attributes of the card. I suspect the table f

Re: Table Field question

2013-04-20 Thread dunbarx
, but that means more work getting stuff in and out. Rats. Miss you, by the way. Craig -Original Message- From: Colin Holgate To: How to use LiveCode Sent: Sat, Apr 20, 2013 6:40 pm Subject: Re: Table Field question I meant the field at the top of the spreadsheet. The cells do take

Re: Table Field question

2013-04-20 Thread Colin Holgate
I meant the field at the top of the spreadsheet. The cells do take on the font and size you set, but the field at the top, where what you type also appears, is a fixed size. On Apr 20, 2013, at 6:23 PM, dunb...@aol.com wrote: > > >I use excel all the time, and have never seen that. The newly

Re: Table Field question

2013-04-20 Thread dunbarx
Colin. I use excel all the time, and have never seen that. The newly editable cell is exactly like the rest of the sheet in look and feel. ??? Craig -Original Message- From: Colin Holgate To: How to use LiveCode Sent: Sat, Apr 20, 2013 5:55 pm Subject: Re: Table Field question

Re: Table Field question

2013-04-20 Thread Colin Holgate
Notice too that the font changes. It seems similar to how in Excel the text entry field is a fixed font and size, regardless of the font settings of the cells themselves. On Apr 20, 2013, at 5:33 PM, dunb...@aol.com wrote: > >If I set the textSize of a virgin table field to something like 24,

Re: Table field

2012-07-06 Thread Peter Haworth
All taken care thanks Bjornke. Pete lcSQL Software On Fri, Jul 6, 2012 at 1:53 AM, Björnke von Gierke wrote: > Uhm... Is this still a problem for you? I Was away on a conference ;-) > > I see a lot of talk about gradients from you, which is weird, as my > description ta

Re: Table field

2012-07-06 Thread Björnke von Gierke
Uhm... Is this still a problem for you? I Was away on a conference ;-) I see a lot of talk about gradients from you, which is weird, as my description talks of two solid colors, no gradients at all. Please go and see this example graphic: http://i.imgur.com/AXVve.png Bjoernke On 27.06.2012, a

Re: Table field

2012-06-27 Thread Peter Haworth
Hi Bjornke, With lots of help from various people, I succeeded in creating a graphic as you described. However, when I set the background pattern of my table to the id of the graphic, I just get a solid grey color as the background of the whole table, no alternating row colors no matter what color

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Peter Haworth
Thanks Bernd. I think I'm finally beginning to understand at least some of the gradient parameters. I still can't figure out how to do this in the Inspector though but that's OK, the scripts from everyone work great. Pete lcSQL Software On Tue, Jun 26, 2012 at 2:07 PM, BN

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Peter Haworth
> Jan Schenkel. > > = > Quartam Reports & PDF Library for LiveCode > www.quartam.com > > > = > "As we grow older, we grow both wiser and more foolish at the same time." > (La Rochefoucauld) > > > - Original Message - > From:

Re: Gradients (was "Re: Table field")

2012-06-26 Thread BNig
Pete, the ramp of the gradient has 4 positons. 1 at 0, 2 at .50001 and 1 at 1. the ramp is what you work on in the inspector. the first two define the first color and the other two the second color. By setting the color of the pair of the positions to the same color and making the middle posi

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Scott Rossi
Hi Pete: Use duplicate gradient stops in the ramp: 0.0,255,0,0 -- red 0% 0.5,255,0,0 -- red 50% 0.5,0,255,0 -- green 50%, same position as above 1.0,0,255,0 -- green 100% Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > Thanks

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Jan Schenkel
www.quartam.com = "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) - Original Message - From: Jan Schenkel To: How to use LiveCode Cc: Sent: Tuesday, June 26, 2012 10:57 PM Subject: Re: Gradients (was "Re: Table fiel

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Jan Schenkel
nd more foolish at the same time." (La Rochefoucauld) - Original Message - From: Peter Haworth To: How to use LiveCode Cc: Sent: Tuesday, June 26, 2012 10:08 PM Subject: Re: Gradients (was "Re: Table field") Thanks Scott.  As usual, a very useful learning tool. Here&

Re: Gradients (was "Re: Table field")

2012-06-26 Thread Peter Haworth
Thanks Scott. As usual, a very useful learning tool. Here's what I can't figure out though. Your stack fades in the colors from top to bottom. How can I get the graphic to contain two separate colors, one that fills the top half of the graphic and another that fills in the bottom half, with no f

Re: Gradients (was "Re: Table field")

2012-06-25 Thread Bob Sneidar
Scott, that is just a magnificent tool. You never cease to amaze me! Bob On Jun 25, 2012, at 10:31 AM, Scott Rossi wrote: > Hi Peter: > > Execute the following in your LiveCode message box: > > go url > "http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev"; > > Regards,

Re: Gradients (was "Re: Table field")

2012-06-25 Thread Scott Rossi
Hi Peter: Execute the following in your LiveCode message box: go url "http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev"; Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > I'm glad this came up because it's an opportunity

Re: Table field

2012-06-25 Thread Peter Haworth
Thanks Bjornke. Jacques' idea wouyld work but I'd prefere a Livecode approach so I can alter it to deal with, e.g., different line heights and colors. I'm glad this came up because it's an opportunity for me to learn yet another area of Livecode - gradients - for which there is precious little pu

Re: Table field

2012-06-25 Thread Björnke von Gierke
Hey, did Jacques tip help you achieve what you want? If not, here's an image that can be used as a line thingy: http://i.imgur.com/AXVve.png On 24.06.2012, at 15:55, Peter Haworth wrote: > Hi Jacques, > Thanks for the tip! > Pete > lcSQL Software > > > > On Sun, Jun 24,

Re: Table field

2012-06-24 Thread Peter Haworth
Hi Jacques, Thanks for the tip! Pete lcSQL Software On Sun, Jun 24, 2012 at 11:40 AM, Jacques Hausser wrote: > Hi Peter, > > I followed this thread with interest (I am still intimidate by Datagrid's > complexities) and for the graphic, I simply did it with another applica

Re: Table field

2012-06-24 Thread Jacques Hausser
Hi Peter, I followed this thread with interest (I am still intimidate by Datagrid's complexities) and for the graphic, I simply did it with another application (Pixelmator). Works great ! Thanks to Björnke ! Jacques Le 24 juin 2012 à 03:43, Peter Haworth a écrit : > Bjornke, > My grpahic ski

Re: Table field

2012-06-23 Thread Peter Haworth
Bjornke, My grpahic skills being pretty much nonexistent, how do you do this? I made a graphic rectangle on my card and I'm assuming that the different colors are achieved by using a gradient but try as I might, I cannot make it work. Any instructions greatly appreciated! Thanks, Pete lcSQL Softw

Re: Table field

2012-06-23 Thread Peter Haworth
Thank you Bjornke, that's another great solution. I guess my attempt to do this with a repeat loop to set the background of each line to either empty or a color was way too simplistic. I have to say that, now I'm learning more about what can be done with tables, I'm less and less inclined to use

Re: Table field

2012-06-23 Thread Björnke von Gierke
To cook yourself the perfect scrolling field, you need: A graphic: 32 pixels high at least 1 pixel wide (or more for easier handling, width doesn't matter) upper 16 pixels white lower half very light blue or very light grey Also a list type field (dontwrap= true) with: textHeight = 16 fixedLineHe

Re: Table field

2012-06-21 Thread Peter Haworth
Thanks Bernd, that looks very nice. Pete lcSQL Software On Thu, Jun 21, 2012 at 2:01 PM, BNig wrote: > Hi Peter, > > here is my take on the alternating Lines. It uses a graphic with a > fillgradient that is behind the non-opaque table field. > I made a demo stack: > > be

Re: Table field

2012-06-21 Thread Bob Sneidar
Another approach would be to have a group of rectangles, and a script that would resize it and rearrange it so that the rows of rectangles always aligned with the rows. That way you could resize both the table field and the font, size and row height and the color grid would adapt. But what wou

Re: Table field

2012-06-21 Thread BNig
Hi Peter, here is my take on the alternating Lines. It uses a graphic with a fillgradient that is behind the non-opaque table field. I made a demo stack: berndniggemann.on-rev.com/alternatingLines/alternatingLines.livecode.zip Kind regards Bernd -- View this message in context: http://runtim

Re: Table field names

2011-03-22 Thread Tim Ponn
Bob, I'm using the "Basic Table Field". I tried the selectedObject, but I get nothing. Here.. 1...create 3 fields, one a regular Text Entry Field and two Basic Table Fields. 2...give each field a name 3...put this in the card script: on rawKeyUp keyCode put the target end rawKeyUp 4...c

Re: Table field names

2011-03-22 Thread Mike Bonner
You can use focusIn and focusOut to keep track of which field is currently selected, then you can do as you were to know which specific cell of the current field is being modified. If I understand how the table field works, when you select a cell to type in, it pops up an overlay field named for l

Re: Table field names

2011-03-22 Thread Bob Sneidar
Did you try the selectedObject? Are you talking about a Datagrid? Bob On Mar 22, 2011, at 8:36 AM, Tim Ponn wrote: > Hello all! > > Though not a newbie to LiveCode, I'm rusty and trying to catch up on some > featuresso...my apologies. > > I've got a few table fields in my app. I need t