Polygrid questions

2023-08-22 Thread Paul Dupuis via use-livecode

I see I have the properties of a polygrid for:

pgColumns -- an array of all column properties

and

pgColumnWidths -- a comma delimited list of widths

There does not seem to be a distinct property just for alignments, such 
as pgColumnAlignments


What I need to do is change the width and/or alignment of a specific 
column (that can change which column based on data). I can se no way of 
doing this other than repopulating the pgColumns array


If I try

set the pgColumnWidths of widget "rwTableview" to 
"300,75,75,75,75,75,75,75,75"


for example, that seems to have no effect.

If I try to just change one element of the column array, such as

put "300" into tArray[1]["width"]; set the pgColumns of widget 
"rwTableview" to tArray, it replaces all the other column information 
(names, etc.) with defaults (as I would expect)


Am I missing some syntax that will allow changing the name, label, 
width, alignment, or whatever property desired of a single column 
without touching any of the other column data already set?





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [[ ANN ]] Release 9.6.10 RC-1

2023-08-22 Thread Tom Glod via use-livecode
Interesting, when I tried to use them recently they didn't work.
Will test again, maybe it was my bad, thanks Mark.

On Sun, Aug 20, 2023 at 3:09 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2023-08-19 21:57, Tom Glod via use-livecode wrote:
> > Hello,
> >
> > Does this mean we have JSON support in SQLite?
> >
> > This is from the documentation.:
> >
> >  In other words, the JSON functions went from being opt-in with SQLite
> > version 3.37.2 and earlier to opt-out with SQLite version 3.38.0 and
> > later.
>
> The SQLite JSON support was included in dbsqlite in 9.0.3 -
> https://quality.livecode.com/show_bug.cgi?id=21821
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Build Amazing Things
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Group corners

2023-08-22 Thread J. Landman Gay via use-livecode
It's probably about time to submit a bug report. The behavior we see isn't expected. 




On 8/22/23 12:12 PM, Dar Scott via use-livecode wrote:

Arg. There is a pixel missing in the upper left corner even when the border 
width is 1. — Dar


On Aug 22, 2023, at 7:05 AM, Dar Scott via use-livecode 
 wrote:

Yeah, the order of things seem to make a difference. It is sometimes hard to do 
deltas. My lazy programming style is to rebuild GUI features based on the 
current state whenever there is a change, and then look closer if that gets 
slow.


On Aug 21, 2023, at 7:44 PM, J. Landman Gay via use-livecode 
 wrote:

Right, but the weird thing is that with a 4-pixel border and 3d, it isn't 3d. 
It's a plain gray border with the label appropriately placed. Three pixels 
works about the same.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 21, 2023 5:38:26 PM Bob Sneidar via use-livecode 
 wrote:


Oh right! You can’t have 3D with a 1 pixel border, can you?? I missed that.

Bob S



On Aug 21, 2023, at 3:07 PM, J. Landman Gay via use-livecode 
 wrote:

On 8/21/23 11:50 AM, Dar Scott via use-livecode wrote:

For now, I’m using a temporary solution: I am setting the border width to 1. 
That might become a long-term workaround.


I can reproduce your results. Weird thing: if I leave showName and showBorder 
on, and set the borderWidth to 4, and then turn on 3D I get a nice clean 
gray-ish border without any splits or lines.

Tested in LC 9.6.10 RC 1.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Behaviors

2023-08-22 Thread Mike Kerner via use-livecode
you probably know this: in the property inspector, there's a panel for
behavior, so you can just select the behavior from a menu button,
without having to type it

On Tue, Aug 22, 2023 at 1:37 PM Dar Scott via use-livecode
 wrote:
>
> I figured out how to do it in the IDE. I needed to include “of stack” in the 
> reference. — Dar
>
> > On Aug 22, 2023, at 11:09 AM, Alex Tweedly via use-livecode 
> >  wrote:
> >
> > Not sure how it works in the IDE - seems a problem because it only presents 
> > button in the current stack.
> >
> > So I do it all in preOpen... scripts, doing something like
> >
> >> set the behavior of fld "F" of grp tmpName to the long id of button 
> >> "RichTextFieldBehaviour" of \
> >>  card "Behaviours" of stack "/Users/alextweedly/Dropbox/My 
> >> Livecode/Libraries/richText.livecode"
> >
> > Alex.
> >
> > On 22/08/2023 17:57, Dar Scott via use-livecode wrote:
> >> I am misremembering things about Behaviors.
> >>
> >> I have a card with my behavior buttons, but I can’t seem to point to 
> >> buttons on that card. Maybe, I’m remembering what I did long ago with 
> >> front scripts.
> >>
> >> I suppose I can use substacks, but I’m worried that the stacks would be in 
> >> the message path. Is there a way to keep the stack out of the message path?
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your 
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Behaviors

2023-08-22 Thread Dar Scott via use-livecode
I figured out how to do it in the IDE. I needed to include “of stack” in the 
reference. — Dar

> On Aug 22, 2023, at 11:09 AM, Alex Tweedly via use-livecode 
>  wrote:
> 
> Not sure how it works in the IDE - seems a problem because it only presents 
> button in the current stack.
> 
> So I do it all in preOpen... scripts, doing something like
> 
>> set the behavior of fld "F" of grp tmpName to the long id of button 
>> "RichTextFieldBehaviour" of \
>>  card "Behaviours" of stack "/Users/alextweedly/Dropbox/My 
>> Livecode/Libraries/richText.livecode"
> 
> Alex.
> 
> On 22/08/2023 17:57, Dar Scott via use-livecode wrote:
>> I am misremembering things about Behaviors.
>> 
>> I have a card with my behavior buttons, but I can’t seem to point to buttons 
>> on that card. Maybe, I’m remembering what I did long ago with front scripts.
>> 
>> I suppose I can use substacks, but I’m worried that the stacks would be in 
>> the message path. Is there a way to keep the stack out of the message path?
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Group corners

2023-08-22 Thread Dar Scott via use-livecode
Arg. There is a pixel missing in the upper left corner even when the border 
width is 1. — Dar

> On Aug 22, 2023, at 7:05 AM, Dar Scott via use-livecode 
>  wrote:
> 
> Yeah, the order of things seem to make a difference. It is sometimes hard to 
> do deltas. My lazy programming style is to rebuild GUI features based on the 
> current state whenever there is a change, and then look closer if that gets 
> slow. 
> 
>> On Aug 21, 2023, at 7:44 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Right, but the weird thing is that with a 4-pixel border and 3d, it isn't 
>> 3d. It's a plain gray border with the label appropriately placed. Three 
>> pixels works about the same.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On August 21, 2023 5:38:26 PM Bob Sneidar via use-livecode 
>>  wrote:
>> 
>>> Oh right! You can’t have 3D with a 1 pixel border, can you?? I missed that.
>>> 
>>> Bob S
>>> 
>>> 
 On Aug 21, 2023, at 3:07 PM, J. Landman Gay via use-livecode 
  wrote:
 
 On 8/21/23 11:50 AM, Dar Scott via use-livecode wrote:
> For now, I’m using a temporary solution: I am setting the border width to 
> 1. That might become a long-term workaround.
 
 I can reproduce your results. Weird thing: if I leave showName and 
 showBorder on, and set the borderWidth to 4, and then turn on 3D I get a 
 nice clean gray-ish border without any splits or lines.
 
 Tested in LC 9.6.10 RC 1.
 
 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Behaviors

2023-08-22 Thread Alex Tweedly via use-livecode
Not sure how it works in the IDE - seems a problem because it only 
presents button in the current stack.


So I do it all in preOpen... scripts, doing something like

set the behavior of fld "F" of grp tmpName to the long id of button 
"RichTextFieldBehaviour" of \
 card "Behaviours" of stack "/Users/alextweedly/Dropbox/My 
Livecode/Libraries/richText.livecode"


Alex.

On 22/08/2023 17:57, Dar Scott via use-livecode wrote:

I am misremembering things about Behaviors.

I have a card with my behavior buttons, but I can’t seem to point to buttons on 
that card. Maybe, I’m remembering what I did long ago with front scripts.

I suppose I can use substacks, but I’m worried that the stacks would be in the 
message path. Is there a way to keep the stack out of the message path?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Behaviors

2023-08-22 Thread Dar Scott via use-livecode

I am misremembering things about Behaviors.

I have a card with my behavior buttons, but I can’t seem to point to buttons on 
that card. Maybe, I’m remembering what I did long ago with front scripts. 

I suppose I can use substacks, but I’m worried that the stacks would be in the 
message path. Is there a way to keep the stack out of the message path?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Group corners

2023-08-22 Thread Dar Scott via use-livecode
Yeah, the order of things seem to make a difference. It is sometimes hard to do 
deltas. My lazy programming style is to rebuild GUI features based on the 
current state whenever there is a change, and then look closer if that gets 
slow. 

> On Aug 21, 2023, at 7:44 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Right, but the weird thing is that with a 4-pixel border and 3d, it isn't 3d. 
> It's a plain gray border with the label appropriately placed. Three pixels 
> works about the same.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On August 21, 2023 5:38:26 PM Bob Sneidar via use-livecode 
>  wrote:
> 
>> Oh right! You can’t have 3D with a 1 pixel border, can you?? I missed that.
>> 
>> Bob S
>> 
>> 
>>> On Aug 21, 2023, at 3:07 PM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> On 8/21/23 11:50 AM, Dar Scott via use-livecode wrote:
 For now, I’m using a temporary solution: I am setting the border width to 
 1. That might become a long-term workaround.
>>> 
>>> I can reproduce your results. Weird thing: if I leave showName and 
>>> showBorder on, and set the borderWidth to 4, and then turn on 3D I get a 
>>> nice clean gray-ish border without any splits or lines.
>>> 
>>> Tested in LC 9.6.10 RC 1.
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode