IDE Property Editor for Custom Properties error

2022-05-18 Thread Paul Dupuis via use-livecode
This bug probably won't impact many people, but I just reported bug 
https://quality.livecode.com/show_bug.cgi?id=23712


In older versions of LC you could have custom property keys that had 
commas in them, such as a key like "topic,subtopic" for a online help 
system. The current (and recent) property inspect tries to convert 
custom property keys with a comma into arrays! Just thought I would 
raise this on the list for anyone else who might be impacted.






___
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: Accessing array custom properties

2021-10-26 Thread Craig Newman via use-livecode
Hi.

An array variable is just a variable, it is not a property. You cannot “make” 
one into the other.

So, basically, put the pArrayName[pElementName]  of button “button” is just 
syntax that does not exist in the lexicon, for the above reason.

Craig

> On Oct 25, 2021, at 11:18 PM, Neville Smythe via use-livecode 
>  wrote:
> 
> Is there a logic behind the following?
> 
> I want the values of a custom property which is an array: to take a specific 
> example the dropShow of button “button” and I want  the specific element color
> 
> Of course I can write: put the dropShadow of button “button” into aa; put  
> aa[color]
> 
> Conveniently there is a shortcut : put the dropShadow[color] of button 
> “button” 
> 
> (which I guess would need special coding because there isn’t a property whose 
> name is "dropShadow[color]”; and this doesn’t work for DataGrids - but that’s 
> another question)
> 
> Now I want to use variables so I can script for different properties
> 
> put “color” into pElementName; put “dropShadow” into pArrayName
> 
> 1. This works:put the dropShadow of button “button” into aa; put 
> aa[pElementName]
> 
> 2. And this works:put the pArrayname of button “button” into aa; put 
> aa[pElementName]
> 
> 3. And (conveniently) this works:put the dropShadow[pElementName] of 
> button “button”
> 
> 4. BUT (annoyingly) this fails, giving an empty result: put the 
> pArrayName[pElementName]  of button “button”
> 
> Why? If 3 works, I would have thought the parser would substitute values for 
> all variables before getting the property using  the “special coding”
> 
> Neville
> ___
> 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: Accessing array custom properties

2021-10-26 Thread Niggemann, Bernd via use-livecode
> Neville Smythe via use-livecode Mon, 25 Oct 2021 20:20:34 -0700 wrote:
> 
> 4. BUT (annoyingly) this fails, giving an empty result: put the 
> pArrayName[pElementName]  of button “button”
> 
> Why? If 3 works, I would have thought the parser would substitute values for 
> all variables before getting the property using  the “special coding”


This is not the answer to "Why?" but it sort of does what you want

-
on mouseUp
   local tProperty, tValue, tTarget, tResult
   
   put "dropShadow" into tProperty
   put "color" into tValue
   put the long id of button "b1" into tTarget
   
   put fetchProperty(tProperty, tValue, tTarget) into tResult
   
   if the result is empty then
  answer "Property " & tProperty && tValue & " not found"
   else
  answer tProperty && tValue && tResult
   end if
end mouseUp

function fetchProperty pProperty, pValue, pTarget
   local tProp
   put the pProperty of pTarget into tProp
   if tProp is not an array then -- either single value (e.g. width) or empty
  return tProp
   else
  return tProp[pValue] -- either array value or empty
   end if
end fetchProperty
-

Kind regards
Bernd
___
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


Accessing array custom properties

2021-10-25 Thread Neville Smythe via use-livecode
Is there a logic behind the following?

I want the values of a custom property which is an array: to take a specific 
example the dropShow of button “button” and I want  the specific element color

Of course I can write: put the dropShadow of button “button” into aa; put  
aa[color]

Conveniently there is a shortcut : put the dropShadow[color] of button “button” 

(which I guess would need special coding because there isn’t a property whose 
name is "dropShadow[color]”; and this doesn’t work for DataGrids - but that’s 
another question)

Now I want to use variables so I can script for different properties

put “color” into pElementName; put “dropShadow” into pArrayName

1. This works:put the dropShadow of button “button” into aa; put 
aa[pElementName]

2. And this works:put the pArrayname of button “button” into aa; put 
aa[pElementName]

3. And (conveniently) this works:put the dropShadow[pElementName] of button 
“button”

4. BUT (annoyingly) this fails, giving an empty result: put the 
pArrayName[pElementName]  of button “button”

Why? If 3 works, I would have thought the parser would substitute values for 
all variables before getting the property using  the “special coding”

Neville
___
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: Stacks and Custom properties

2020-03-10 Thread Richmond via use-livecode
I am only using a single custom property in my *Devawriter Pro* for 
end-users to set the thing to the
left, right or centre of their screen. This is not something that needs 
to persist between user sessions.


On 10.03.20 16:52, Bob Sneidar via use-livecode wrote:

The downside to doing this is that you cannot have your properties persist 
between sessions unless you can save the stack containing the properties. A 
mainstack in a standalone cannot be saved, and other stacks may have issues 
saving if they are in a sandboxed or secured location.

If you are using this just for runtime variables, that would work but it begs 
the question, why? Variables are easier to reference in your code.

Bob S



On Mar 10, 2020, at 03:38 , Kaveh Bazargan via use-livecode 
 wrote:

Absolutely. I keep most of my variables in stack custom properties.


___
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: Stacks and Custom properties

2020-03-10 Thread Kaveh Bazargan via use-livecode
Bob, good point. In my case I am using several standalone stacks, so when
the standalone opens, it reads data from a remote location (database
or Google Sheets) and saves them as custom variables. In addition there are
variables that are created throughout a session that are saved in a similar
way. Then these values are available to all stacks throughout the session.
Glad to hear of any thoughts on this.

On Tue, 10 Mar 2020 at 14:54, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The downside to doing this is that you cannot have your properties persist
> between sessions unless you can save the stack containing the properties. A
> mainstack in a standalone cannot be saved, and other stacks may have issues
> saving if they are in a sandboxed or secured location.
>
> If you are using this just for runtime variables, that would work but it
> begs the question, why? Variables are easier to reference in your code.
>
> Bob S
>
>
> > On Mar 10, 2020, at 03:38 , Kaveh Bazargan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Absolutely. I keep most of my variables in stack custom properties.
>
>
> ___
> 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
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Stacks and Custom properties

2020-03-10 Thread Bob Sneidar via use-livecode
The downside to doing this is that you cannot have your properties persist 
between sessions unless you can save the stack containing the properties. A 
mainstack in a standalone cannot be saved, and other stacks may have issues 
saving if they are in a sandboxed or secured location. 

If you are using this just for runtime variables, that would work but it begs 
the question, why? Variables are easier to reference in your code. 

Bob S


> On Mar 10, 2020, at 03:38 , Kaveh Bazargan via use-livecode 
>  wrote:
> 
> Absolutely. I keep most of my variables in stack custom properties.


___
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: Stacks and Custom properties

2020-03-10 Thread dunbarx--- via use-livecode
Sure. Any object that has an inspector, and that means everything, can hold 
custom properties. Open the stack inspector and check it out.
The trick is to know where to place these things. It depends on what is going 
to need them. In a sense, you might think they ought to fall into some sort of 
"message hierarchy", but since they are always explicitly referenced, this is 
not strictly true. You generally place them according you your own sense of 
structure.
Craig


-Original Message-
From: Kaveh Bazargan via use-livecode 
To: How to use LiveCode 
Cc: Kaveh Bazargan 
Sent: Tue, Mar 10, 2020 6:39 am
Subject: Re: Stacks and Custom properties

Absolutely. I keep most of my variables in stack custom properties.

On Tue, 10 Mar 2020 at 10:36, Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can a stack have custom properties?
>
> Richmond.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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: Stacks and Custom properties

2020-03-10 Thread Kaveh Bazargan via use-livecode
Absolutely. I keep most of my variables in stack custom properties.

On Tue, 10 Mar 2020 at 10:36, Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can a stack have custom properties?
>
> Richmond.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>
___
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


Stacks and Custom properties

2020-03-10 Thread Richmond via use-livecode

Can a stack have custom properties?

Richmond.

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


Re: Tree View / Custom Properties PI

2018-08-10 Thread Curry Kenworthy via use-livecode



Brian:

> So, it looks like adding 4 lines of code to the IDE
> and changing 1 word in the Tree View widget source
> can remove a few of the irritation points.

Nice! Thanks for looking into this part of it.

Best wishes,

Curry Kenworthy

Custom Software Development
LiveCode Training and Consulting
http://livecodeconsulting.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: Tree View / Custom Properties PI

2018-08-10 Thread Brian Milby via use-livecode
Events are sent when the button is clicked, just need to verify everything. It 
may require a different message, but have not gotten that far. Modifying the 
widget is easy though.

Thanks,
Brian
On Aug 10, 2018, 10:24 AM -0500, Bob Sneidar via use-livecode 
, wrote:
> And the + button is actually an element of the treeview widget, so good luck 
> with that. You would have to trap for an event when the + button is clicked, 
> and I think if I understand widgets, that the event would have to be exposed 
> to the IDE by the widget.
>
> Bob S
>
>
> > On Aug 10, 2018, at 08:19 , Bob Sneidar via use-livecode 
> >  wrote:
> >
> > You would need to set the focus to the field for the key value when the + 
> > button was clicked. Unfortunately, the revInspector stack has a blank card, 
> > so apparently it is built "on the fly". I cannot discern what the field 
> > name or the + button name is.
> >
> > Bob S
>
>
> ___
> 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: Tree View / Custom Properties PI

2018-08-10 Thread Bob Sneidar via use-livecode
And the + button is actually an element of the treeview widget, so good luck 
with that. You would have to trap for an event when the + button is clicked, 
and I think if I understand widgets, that the event would have to be exposed to 
the IDE by the widget. 

Bob S


> On Aug 10, 2018, at 08:19 , Bob Sneidar via use-livecode 
>  wrote:
> 
> You would need to set the focus to the field for the key value when the + 
> button was clicked. Unfortunately, the revInspector stack has a blank card, 
> so apparently it is built "on the fly". I cannot discern what the field name 
> or the + button name is. 
> 
> Bob S


___
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: Tree View / Custom Properties PI

2018-08-10 Thread Bob Sneidar via use-livecode
You would need to set the focus to the field for the key value when the + 
button was clicked. Unfortunately, the revInspector stack has a blank card, so 
apparently it is built "on the fly". I cannot discern what the field name or 
the + button name is. 

Bob S


> On Aug 9, 2018, at 22:01 , Brian Milby via use-livecode 
>  wrote:
> 
> I have not looked into automatically selecting the newly created key, but
> with the above 2 additions when you click on a line in the tree view widget
> the key is selected with focus and ready for edit.  A tab will take you to
> the value field with the text selected.

___
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


Tree View / Custom Properties PI

2018-08-09 Thread Brian Milby via use-livecode
Before going too far, I'd like to get some feedback on the best way to
address one of the issues that Curry brought up.

Currently, when in the Tree View widget (which is used in the Custom
Properties PI), if you click on the "+" icon to add a new array key, the
value in the existing key is lost if it is not already an array.  My
proposal here is to migrate the value to the new key (1).  If you clicked
the "+" again, then you would get the normal new key (2) with an empty
string as the value.

Line 1514 of the treeview.lcb file:
put **tElement** into tArray[1 formatted as string]

What is probably a bigger potential issue is if you set a value on a key
that is currently an array.  If that is done in the PI, then the sub-array
is lost and replaced with the value.  Still thinking on this piece (but the
change is going to be in the PI and not the Tree widget).  I'm thinking
that a confirmation dialog is appropriate here.

Here's a fix for (much of) the text selection issue:

Mac path:   LiveCode9.app/Contents/Tools/Toolset
/palettes/inspector/behaviors/revinspectoreditorbehavior.livecodescript

add the following handler:

after openField
   select the text of the target
end openField

That will auto-select text in the PI in many cases.  There is a need for
another statement in the custom properties behavior (here are lines 69-73
in the 9.0.1 source; 72 is the new line):
/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript

  if the result is empty then
 put tKey into field "value" of me
 put item -1 of tPath into field "key" of me
 **select the text of field "key" of me**
  else

I have not looked into automatically selecting the newly created key, but
with the above 2 additions when you click on a line in the tree view widget
the key is selected with focus and ready for edit.  A tab will take you to
the value field with the text selected.

So, it looks like adding 4 lines of code to the IDE and changing 1 word in
the Tree View widget source can remove a few of the irritation points.
Before submitting anything, I do want to see if I can identify where to
address the resize issue mentioned above.

Thanks,
Brian
___
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: Property inspector / custom properties - how can i resize the value field

2018-07-17 Thread Richmond Mathewson via use-livecode
That is a really silly problem which meant that I had to set 12 custom 
props 4 times before I worked

out how to do something that should be rather more intuitive.

Richmond.

On 17/7/2018 5:51 pm, Bob Sneidar via use-livecode wrote:

You may be referring to the issue when setting the value of a custom prop, if 
you click away, like to another stack or tool after editing in the value field, 
the prop will not retain the value you entered. Also clicking on another 
property will not retain the value. You have to tab out or click some other 
object in the property inspector. I've gotten into the habit of always tabbing 
out of the value field. This is the same for creating datagrid columns, which 
suffers from many of the same anomalies.

Bob S



On Jul 17, 2018, at 03:59 , Curry Kenworthy via use-livecode 
 wrote:

There's another custom prop editor bug (an actual bug that makes it easy to 
lose the edited text) but I forget the trigger until I work with it again.

Best wishes,

Curry Kenworthy


___
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: Property inspector / custom properties - how can i resize the value field

2018-07-17 Thread Richmond Mathewson via use-livecode

Having worked with LiveCode 8 extensively now I can say
that the Property palette is far far more awkward to use thatn the 
LiveCode 7 one,

and I wish there were an easy way to revert to that property palette.

Richmond.

On 17/7/2018 1:59 pm, Curry Kenworthy via use-livecode wrote:


Bob:
> I find that when I create a new property, or a new element
> in an existing property, having th click on the property, then
> on the name of the property is annoying.

Absolutely, and it's actually training people to learn and use 
inefficient actions. Conceptually and with muscle memory! It's a pity 
so many well-honed, valuable time-saving features of the IDE were 
discarded and forgotten when updating it. An interface should be 
efficient to use hands-on. Improvements don't reduce efficiency. It'll 
be a good thing when the IDE regains some of the strengths it had.


Please QA this if you can - there are many such IDE issues but I 
haven't had time. I'll add my vote. I'm usually working on a tight 
deadline when I notice this stuff. There's another custom prop editor 
bug (an actual bug that makes it easy to lose the edited text) but I 
forget the trigger until I work with it again.


Best wishes,

Curry Kenworthy

Custom Software Development
LiveCode Training and Consulting
http://livecodeconsulting.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


Re: Property inspector / custom properties - how can i resize the value field

2018-07-17 Thread Bob Sneidar via use-livecode
You may be referring to the issue when setting the value of a custom prop, if 
you click away, like to another stack or tool after editing in the value field, 
the prop will not retain the value you entered. Also clicking on another 
property will not retain the value. You have to tab out or click some other 
object in the property inspector. I've gotten into the habit of always tabbing 
out of the value field. This is the same for creating datagrid columns, which 
suffers from many of the same anomalies. 

Bob S


> On Jul 17, 2018, at 03:59 , Curry Kenworthy via use-livecode 
>  wrote:
> 
> There's another custom prop editor bug (an actual bug that makes it easy to 
> lose the edited text) but I forget the trigger until I work with it again.
> 
> Best wishes,
> 
> Curry Kenworthy


___
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: Property inspector / custom properties - how can i resize the value field

2018-07-17 Thread Curry Kenworthy via use-livecode



Bob:
> I find that when I create a new property, or a new element
> in an existing property, having th click on the property, then
> on the name of the property is annoying.

Absolutely, and it's actually training people to learn and use 
inefficient actions. Conceptually and with muscle memory! It's a pity so 
many well-honed, valuable time-saving features of the IDE were discarded 
and forgotten when updating it. An interface should be efficient to use 
hands-on. Improvements don't reduce efficiency. It'll be a good thing 
when the IDE regains some of the strengths it had.


Please QA this if you can - there are many such IDE issues but I haven't 
had time. I'll add my vote. I'm usually working on a tight deadline when 
I notice this stuff. There's another custom prop editor bug (an actual 
bug that makes it easy to lose the edited text) but I forget the trigger 
until I work with it again.


Best wishes,

Curry Kenworthy

Custom Software Development
LiveCode Training and Consulting
http://livecodeconsulting.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: Property inspector / custom properties - how can i resize the value field

2018-07-17 Thread Matthias Rebbe via use-livecode
Mark,
but even then the “value” field still shows 3 lines of text and cannot be 
resized

> Am 17.07.2018 um 01:33 schrieb Mark Wieder via use-livecode 
> :
> 
> On 07/16/2018 02:00 PM, panagiotis merakos via use-livecode wrote:
>> Hi all,
>> Thank you for the feedback.
>> We are aware of this problematic behavior. There is a bug report about it:
>> https://quality.livecode.com/show_bug.cgi?id=20701
> 
> Also
> https://quality.livecode.com/show_bug.cgi?id=19880
> and by reference
> https://quality.livecode.com/show_bug.cgi?id=21289
> https://quality.livecode.com/show_bug.cgi?id=21088
> 
> Here's how I currently deal with the annoyance:
> 
> open the property inspector
> select Custom from the menubar
> resize the property inspector to its minimum size
> now you can embiggen it to whatever size you like
> 
> -- 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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

Re: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Mark Wieder via use-livecode

On 07/16/2018 02:00 PM, panagiotis merakos via use-livecode wrote:

Hi all,

Thank you for the feedback.

We are aware of this problematic behavior. There is a bug report about it:
https://quality.livecode.com/show_bug.cgi?id=20701


Also
https://quality.livecode.com/show_bug.cgi?id=19880
and by reference
https://quality.livecode.com/show_bug.cgi?id=21289
https://quality.livecode.com/show_bug.cgi?id=21088

Here's how I currently deal with the annoyance:

open the property inspector
select Custom from the menubar
resize the property inspector to its minimum size
now you can embiggen it to whatever size you like

--
--
 Mark Wieder
 ahsoftw...@gmail.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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread panagiotis merakos via use-livecode
Hi all,

Thank you for the feedback.

We are aware of this problematic behavior. There is a bug report about it:
https://quality.livecode.com/show_bug.cgi?id=20701

Best,
Panos
--





On Mon, Jul 16, 2018 at 9:34 PM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Tom,
> so you are also living with this? In LC 8.1.10 it´s even not possible to
> maximize the height of the Property Inspector. And the value field also
> displays only 3 lines of text.
> I can´t believe that this was not  noticed by one of the LC Team. Are they
> not using the PI?
> I noticed it already in LC8 and lived with it instead of filing a bug.
>
> But i´ve done so now <https://quality.livecode.com/show_bug.cgi?id=21423>.
>
> Matthias
>
> > Am 16.07.2018 um 22:07 schrieb Tom Glod via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > The PI has a lot of issues in 9.0 this is one of the more annoying
> ones.  I
> > really should record a video and demonstrate them all to the team.  not
> > great for new users.
> >
> > I would say its a bug.  a workaround would be sending messages to the
> > property inspector. and try to automate the resizing.
> >
> > On Mon, Jul 16, 2018 at 3:34 PM, Matthias Rebbe via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Hi,
> >> is there a way to resize  the value field for custom properties in the
> >> Property Inspector? It just shows 3 lines. I think that is not enough,
> >> especially if one wants to store larger text files there.
> >> Older versions of LC allowed to resize that field if i remember right.
> Why
> >> was that changed.
> >>
> >> Anyway, does anyone know how to increase the height of that field? That
> >> would be awesome.
> >>
> >> Regards
> >>
> >> Matthias Rebbe
> >>
> >>
> >>
> >> ___
> >> 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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Matthias Rebbe via use-livecode
Tom, 
so you are also living with this? In LC 8.1.10 it´s even not possible to 
maximize the height of the Property Inspector. And the value field also 
displays only 3 lines of text.
I can´t believe that this was not  noticed by one of the LC Team. Are they not 
using the PI?
I noticed it already in LC8 and lived with it instead of filing a bug.  

But i´ve done so now <https://quality.livecode.com/show_bug.cgi?id=21423>.

Matthias

> Am 16.07.2018 um 22:07 schrieb Tom Glod via use-livecode 
> :
> 
> The PI has a lot of issues in 9.0 this is one of the more annoying ones.  I
> really should record a video and demonstrate them all to the team.  not
> great for new users.
> 
> I would say its a bug.  a workaround would be sending messages to the
> property inspector. and try to automate the resizing.
> 
> On Mon, Jul 16, 2018 at 3:34 PM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi,
>> is there a way to resize  the value field for custom properties in the
>> Property Inspector? It just shows 3 lines. I think that is not enough,
>> especially if one wants to store larger text files there.
>> Older versions of LC allowed to resize that field if i remember right. Why
>> was that changed.
>> 
>> Anyway, does anyone know how to increase the height of that field? That
>> would be awesome.
>> 
>> Regards
>> 
>> Matthias Rebbe
>> 
>> 
>> 
>> ___
>> 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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Bob Sneidar via use-livecode
And since we are talking about it some more, open a property inspector pallet. 
Expand the pallet size so that the property pane gross. Now resize again only 
this time smaller. The property pane does NOT shrink with the pallet, but 
instead introduces scroll bars. That is a bit irritating too. I am constantly 
closing the pallets to reset them. Seems the property pane ought to shrink to a 
minimum height, THEN switch to scrolling if needed. But it's a small matter. 

Bob S


> On Jul 16, 2018, at 13:10 , Bob Sneidar  wrote:
> 
> Well since we are talking about it, I find that when I create a new property, 
> or a new element in an existing property, having th click on the property, 
> then on the name of the property is annoying. The same thing holds true for 
> the property inspector and datagrids. You have to add a column, then CLICK on 
> the colomn, then name the column, then click it again (sometimes reselect it) 
> then you can change the label. GAH!!!
> 
> Bob S
> 
> 
>> On Jul 16, 2018, at 13:07 , Tom Glod via use-livecode 
>>  wrote:
>> 
>> The PI has a lot of issues in 9.0 this is one of the more annoying ones.  I
>> really should record a video and demonstrate them all to the team.  not
>> great for new users.
>> 
>> I would say its a bug.  a workaround would be sending messages to the
>> property inspector. and try to automate the resizing.
> 


___
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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Bob Sneidar via use-livecode
Sorry I misunderstood you. 

Bob S


> On Jul 16, 2018, at 13:11 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Bob, that doesn´t work. The list field of the custom properties expands, but 
> the value field at the bottom still keeps its size and there is no way to 
> resize it.
> 
> 

___
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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Matthias Rebbe via use-livecode
Bob, that doesn´t work. The list field of the custom properties expands, but 
the value field at the bottom still keeps its size and there is no way to 
resize it.

> Am 16.07.2018 um 22:06 schrieb Bob Sneidar via use-livecode 
> :
> 
> I believe if you expand the entire property inspector pallette, the 
> properties panel will expand. 
> 
> Bob S
> 
> 
>> On Jul 16, 2018, at 12:34 , Matthias Rebbe via use-livecode 
>>  wrote:
>> 
>> Hi,
>> is there a way to resize  the value field for custom properties in the 
>> Property Inspector? It just shows 3 lines. I think that is not enough, 
>> especially if one wants to store larger text files there.
>> Older versions of LC allowed to resize that field if i remember right. Why 
>> was that changed.
>> 
>> Anyway, does anyone know how to increase the height of that field? That 
>> would be awesome.
>> 
>> Regards
>> 
>> Matthias Rebbe
> 
> 
> ___
> 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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Bob Sneidar via use-livecode
Well since we are talking about it, I find that when I create a new property, 
or a new element in an existing property, having th click on the property, then 
on the name of the property is annoying. The same thing holds true for the 
property inspector and datagrids. You have to add a column, then CLICK on the 
colomn, then name the column, then click it again (sometimes reselect it) then 
you can change the label. GAH!!!

Bob S


> On Jul 16, 2018, at 13:07 , Tom Glod via use-livecode 
>  wrote:
> 
> The PI has a lot of issues in 9.0 this is one of the more annoying ones.  I
> really should record a video and demonstrate them all to the team.  not
> great for new users.
> 
> I would say its a bug.  a workaround would be sending messages to the
> property inspector. and try to automate the resizing.


___
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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Tom Glod via use-livecode
The PI has a lot of issues in 9.0 this is one of the more annoying ones.  I
really should record a video and demonstrate them all to the team.  not
great for new users.

I would say its a bug.  a workaround would be sending messages to the
property inspector. and try to automate the resizing.

On Mon, Jul 16, 2018 at 3:34 PM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi,
> is there a way to resize  the value field for custom properties in the
> Property Inspector? It just shows 3 lines. I think that is not enough,
> especially if one wants to store larger text files there.
> Older versions of LC allowed to resize that field if i remember right. Why
> was that changed.
>
> Anyway, does anyone know how to increase the height of that field? That
> would be awesome.
>
> Regards
>
> Matthias Rebbe
>
>
>
> ___
> 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: Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Bob Sneidar via use-livecode
I believe if you expand the entire property inspector pallette, the properties 
panel will expand. 

Bob S


> On Jul 16, 2018, at 12:34 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> is there a way to resize  the value field for custom properties in the 
> Property Inspector? It just shows 3 lines. I think that is not enough, 
> especially if one wants to store larger text files there.
> Older versions of LC allowed to resize that field if i remember right. Why 
> was that changed.
> 
> Anyway, does anyone know how to increase the height of that field? That would 
> be awesome.
> 
> Regards
> 
> Matthias Rebbe


___
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


Property inspector / custom properties - how can i resize the value field

2018-07-16 Thread Matthias Rebbe via use-livecode
Hi,
is there a way to resize  the value field for custom properties in the Property 
Inspector? It just shows 3 lines. I think that is not enough, especially if one 
wants to store larger text files there.
Older versions of LC allowed to resize that field if i remember right. Why was 
that changed.

Anyway, does anyone know how to increase the height of that field? That would 
be awesome.

Regards

Matthias Rebbe



___
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: Data in Custom properties

2018-06-22 Thread Ali Lloyd via use-livecode
It sounds like something somewhere is changing that data to a native string
before being textDecoded. Try putting in some logging of the value of
'tData is strictly a binary string' to find out where it is getting
stringified.

On Fri, 22 Jun 2018 at 18:39, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> hey malte . the custom properties and array encoding changed with v7
>  its safe to say that is the cause of any issues with character
> encoding. ...i store binaries and strings in custom properties . so i
> think internally it would make sense that its a binary.
>
>
>
> On Thu, Jun 21, 2018 at 5:39 PM, Malte Pfaff-Brill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi all,
> >
> > I am a little bit puzzled. a stack I started way back in engine 4.x
> > always had a custom property set with multiple UTF8 encoded strings.
> Those
> > were transferred just fine from Mc to PC and the UTF8 strings remained
> > intact. Somewhere down the road something seems to have changed. When I
> now
> > bring the stack from Mac to PC (engine V. 9, stable) all Umlauts are
> turned
> > into Question Marks after decoding. Image data also stored in cProps
> > translates just fine though.
> >
> > I worked around this by base64Encoding the UTF8 stuff now, but somehow I
> > think this should not be necessary, I mean, I chose UTF8 for a reason
> over
> > ISO Latin, right?
> >
> > So I wonder: what is data stored in cProps and what should it be? Is it
> > binary (I think it should be)? Should the engine try to be helpful here
> and
> > change the character encoding depending on the platform (I think it
> should
> > not)
> >
> > A) Does this happen to anyone else?
> > B) If this was to be reproducible also with plain vanilla stacks, what
> > would be your expectations on behaviour?
> >
> > Cheers,
> >
> > Malte
> > ___
> > 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: Data in Custom properties

2018-06-22 Thread Tom Glod via use-livecode
hey malte . the custom properties and array encoding changed with v7
 its safe to say that is the cause of any issues with character
encoding. ...i store binaries and strings in custom properties . so i
think internally it would make sense that its a binary.



On Thu, Jun 21, 2018 at 5:39 PM, Malte Pfaff-Brill via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> I am a little bit puzzled. a stack I started way back in engine 4.x
> always had a custom property set with multiple UTF8 encoded strings. Those
> were transferred just fine from Mc to PC and the UTF8 strings remained
> intact. Somewhere down the road something seems to have changed. When I now
> bring the stack from Mac to PC (engine V. 9, stable) all Umlauts are turned
> into Question Marks after decoding. Image data also stored in cProps
> translates just fine though.
>
> I worked around this by base64Encoding the UTF8 stuff now, but somehow I
> think this should not be necessary, I mean, I chose UTF8 for a reason over
> ISO Latin, right?
>
> So I wonder: what is data stored in cProps and what should it be? Is it
> binary (I think it should be)? Should the engine try to be helpful here and
> change the character encoding depending on the platform (I think it should
> not)
>
> A) Does this happen to anyone else?
> B) If this was to be reproducible also with plain vanilla stacks, what
> would be your expectations on behaviour?
>
> Cheers,
>
> Malte
> ___
> 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


Data in Custom properties

2018-06-21 Thread Malte Pfaff-Brill via use-livecode
Hi all,

I am a little bit puzzled. a stack I started way back in engine 4.x always 
had a custom property set with multiple UTF8 encoded strings. Those were 
transferred just fine from Mc to PC and the UTF8 strings remained intact. 
Somewhere down the road something seems to have changed. When I now bring the 
stack from Mac to PC (engine V. 9, stable) all Umlauts are turned into Question 
Marks after decoding. Image data also stored in cProps translates just fine 
though.

I worked around this by base64Encoding the UTF8 stuff now, but somehow I think 
this should not be necessary, I mean, I chose UTF8 for a reason over ISO Latin, 
right?

So I wonder: what is data stored in cProps and what should it be? Is it binary 
(I think it should be)? Should the engine try to be helpful here and change the 
character encoding depending on the platform (I think it should not)

A) Does this happen to anyone else?
B) If this was to be reproducible also with plain vanilla stacks, what would be 
your expectations on behaviour?

Cheers,

Malte
___
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: Custom properties of IDE palettes?

2018-01-10 Thread Geoff Canyon via use-livecode
AHA! (thanks)

gc

On Wed, Jan 10, 2018 at 3:56 AM, Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
>
> The 'cLocked' is a getProp/setProp (virtual) custom property, which is why
> it doesn't appear in the customKeys.
>
> Warmest Regards,
>
> Mark.
___
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: Custom properties of IDE palettes?

2018-01-10 Thread Mark Waddingham via use-livecode

On 2018-01-10 02:20, Geoff Canyon via use-livecode wrote:

But they do. Specifically, stack "revPropertyInspector 1" is not a
script-only stack. It has many objects, and it does have custom 
properties.

For example, this locks the inspector to its current object:

set the cLocked of stack "revPropertyInspector 1" to true


The 'cLocked' is a getProp/setProp (virtual) custom property, which is 
why it doesn't appear in the customKeys.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
(I should add that I am using 8.1.8, the community edition, on Mac)

On Tue, Jan 9, 2018 at 8:20 PM, Geoff Canyon <gcan...@gmail.com> wrote:

> But they do. Specifically, stack "revPropertyInspector 1" is not a
> script-only stack. It has many objects, and it does have custom properties.
> For example, this locks the inspector to its current object:
>
> set the cLocked of stack "revPropertyInspector 1" to true
>
>
>
> On Tue, Jan 9, 2018 at 6:07 PM, Ali Lloyd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I don't think they have any custom properties... at least, if they do then
>> they don't do anything. They are script-only stacks & behaviors that
>> generate the UI; they don't use custom props for their functionality.
>>
>> On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> > I'm exploring the LC 8 IDE. If I type in the message box:
>> >
>> > put the customkeys of the mouseStack
>> >
>> > and put the pointer over the message box, I press return and see a list
>> of
>> > custom properties:
>> >
>> > cREVIntelligenceObject
>> > cREVLeft
>> > cREVTopLeft
>> > etc
>> >
>> > But if I put the pointer over the Tools palette or the Properties
>> palette,
>> > I get nothing. It's not a mouseStack issue; I can put the name of the
>> > mouseStack and get "revPropertyInspector 1". And this doesn't work
>> either:
>> >
>> > lock messages;put the customkeys of stack "revPropertyInspector 1"
>> >
>> > Any ideas?
>> > ___
>> > 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: Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
But they do. Specifically, stack "revPropertyInspector 1" is not a
script-only stack. It has many objects, and it does have custom properties.
For example, this locks the inspector to its current object:

set the cLocked of stack "revPropertyInspector 1" to true



On Tue, Jan 9, 2018 at 6:07 PM, Ali Lloyd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don't think they have any custom properties... at least, if they do then
> they don't do anything. They are script-only stacks & behaviors that
> generate the UI; they don't use custom props for their functionality.
>
> On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I'm exploring the LC 8 IDE. If I type in the message box:
> >
> > put the customkeys of the mouseStack
> >
> > and put the pointer over the message box, I press return and see a list
> of
> > custom properties:
> >
> > cREVIntelligenceObject
> > cREVLeft
> > cREVTopLeft
> > etc
> >
> > But if I put the pointer over the Tools palette or the Properties
> palette,
> > I get nothing. It's not a mouseStack issue; I can put the name of the
> > mouseStack and get "revPropertyInspector 1". And this doesn't work
> either:
> >
> > lock messages;put the customkeys of stack "revPropertyInspector 1"
> >
> > Any ideas?
> > ___
> > 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: Custom properties of IDE palettes?

2018-01-09 Thread Ali Lloyd via use-livecode
I don't think they have any custom properties... at least, if they do then
they don't do anything. They are script-only stacks & behaviors that
generate the UI; they don't use custom props for their functionality.

On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm exploring the LC 8 IDE. If I type in the message box:
>
> put the customkeys of the mouseStack
>
> and put the pointer over the message box, I press return and see a list of
> custom properties:
>
> cREVIntelligenceObject
> cREVLeft
> cREVTopLeft
> etc
>
> But if I put the pointer over the Tools palette or the Properties palette,
> I get nothing. It's not a mouseStack issue; I can put the name of the
> mouseStack and get "revPropertyInspector 1". And this doesn't work either:
>
> lock messages;put the customkeys of stack "revPropertyInspector 1"
>
> Any ideas?
> ___
> 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


Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
I'm exploring the LC 8 IDE. If I type in the message box:

put the customkeys of the mouseStack

and put the pointer over the message box, I press return and see a list of
custom properties:

cREVIntelligenceObject
cREVLeft
cREVTopLeft
etc

But if I put the pointer over the Tools palette or the Properties palette,
I get nothing. It's not a mouseStack issue; I can put the name of the
mouseStack and get "revPropertyInspector 1". And this doesn't work either:

lock messages;put the customkeys of stack "revPropertyInspector 1"

Any ideas?
___
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: some, but not all, custom properties survive paste to new stack

2017-02-08 Thread Dr. Hawkins via use-livecode
On Wed, Feb 8, 2017 at 1:34 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> All properties and
> values were copied.
>

They had been for me until recently.

At this point, I have it cleared, but I'm suspecting a deeper bug is behind
it.

I had set the properties for a few fields at a time, and these survived
multiple save/quit/load cycles.

And then the properties disappeared.

I reset them individually, and now they stuck.

>
> Now I was reminded the the custom property tab in the Project Browser is
> wacky - I would click the add new element "plus", select the default "1"
> for the key, rename it, click in the value box and enter a value and
> then click on the plus for a new element and the value never got set.
>

This one is, indeed, maddening.  Even used to it, it bites quite frequently.

You also need to click out of the data area to get the data to fix with
this.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: some, but not all, custom properties survive paste to new stack

2017-02-08 Thread J. Landman Gay via use-livecode

On 2/8/17 3:34 PM, Paul Dupuis via use-livecode wrote:

Now I was reminded the the custom property tab in the Project Browser is
wacky - I would click the add new element "plus", select the default "1"
for the key, rename it, click in the value box and enter a value and
then click on the plus for a new element and the value never got set.


I struggled with that too. You have to hit the Enter key after each 
change. It wasn't intuitive.


--
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: some, but not all, custom properties survive paste to new stack

2017-02-08 Thread panagiotis merakos via use-livecode
> >>I have not yet checked 8.1.3 to see if that bug of the Project
> Browser is one of the many things fixed in 8.1.3.
>

@Paul
I guess you mean "Property Inspector", and yes, it is fixed :)
http://quality.livecode.com/show_bug.cgi?id=18302

@Richard
Could you please file a bug, including a stack and a recipe?

Best,
Panos
--
___
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: some, but not all, custom properties survive paste to new stack

2017-02-08 Thread Paul Dupuis via use-livecode
On 2/8/2017 2:03 PM, Dr. Hawkins via use-livecode wrote:
> more hair-pulling time . . .
>
> I paste a group from a source stack to an output stack in a script.
>
> Some, but not all, of the custom properties that I set survive this pasting.
>
> For example, my source field has properties mrgns, txtFnt, txtSiz, and
> txtHgt.
>
> Its group, supergroups, card, and stack have no such properties.
>
> Nonetheless, all I have after paste are mrgns and txtFnt.
>
>
> I've single stepped through the paste point, and the behavior remains; the
> properties aren't there as soon as it is pasted, but remain in the source
> group.
>

I just did a test in LC 8.1.2. Created a new stack, created a field with
the custom properties mrgns, txtFnt, txtSiz, and txtxHgt with some
values. Grouped the field and set the name and properties of the group
(showBorder, showName so I could see the group). Created a second new
stack. Copied the group from the 1st stack to the 2nd new stack, Checked
the properties of the group in the second stack. All properties and
values were copied.

Now I was reminded the the custom property tab in the Project Browser is
wacky - I would click the add new element "plus", select the default "1"
for the key, rename it, click in the value box and enter a value and
then click on the plus for a new element and the value never got set.

I have not yet checked 8.1.3 to see if that bug of the Project Browser
is one of the many things fixed in 8.1.3.


___
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


some, but not all, custom properties survive paste to new stack

2017-02-08 Thread Dr. Hawkins via use-livecode
more hair-pulling time . . .

I paste a group from a source stack to an output stack in a script.

Some, but not all, of the custom properties that I set survive this pasting.

For example, my source field has properties mrgns, txtFnt, txtSiz, and
txtHgt.

Its group, supergroups, card, and stack have no such properties.

Nonetheless, all I have after paste are mrgns and txtFnt.


I've single stepped through the paste point, and the behavior remains; the
properties aren't there as soon as it is pasted, but remain in the source
group.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: are custom properties not supposed to be sorted in inspectors in 8?

2016-10-19 Thread Monte Goulding

> On 20 Oct 2016, at 11:21 AM, Dr. Hawkins  wrote:
> 
> Isn't this a one-line insertion to fix between collecting them into a field
> or variable, and displaying it?

Yes probably
___
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: are custom properties not supposed to be sorted in inspectors in 8?

2016-10-19 Thread Dr. Hawkins
On Wed, Oct 19, 2016 at 12:43 PM, mwieder  wrote:

> http://quality.livecode.com/show_bug.cgi?id=18300


Wow.

Isn't this a one-line insertion to fix between collecting them into a field
or variable, and displaying it?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: are custom properties not supposed to be sorted in inspectors in 8?

2016-10-19 Thread mwieder
http://quality.livecode.com/show_bug.cgi?id=18300



-
-- 
 Mark Wieder
 ahsoftw...@gmail.com
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/are-custom-properties-not-supposed-to-be-sorted-in-inspectors-in-8-tp4709604p4709606.html
Sent from the Revolution - User mailing list archive at Nabble.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


are custom properties not supposed to be sorted in inspectors in 8?

2016-10-19 Thread Dr. Hawkins
Am I doing something wrong, or are the custom properties in an inspector
not supposed to be sorted alphabetically in 8?

I have enough properties on some objects that this quickly gets maddening .
. . or am I missing a setting again?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


Custom Properties with Widgets

2016-03-01 Thread Terence Heaford
Just messing about with LC8 browser widget and tried to set a custom property.

Is this possible because I couldn’t get it to take in the property inspector?


Thanks


Terry
___
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: hunting a bug on scripted custom properties not being saved

2015-12-02 Thread Dr. Hawkins
On Wed, Dec 2, 2015 at 3:44 AM, [-hh]  wrote:

> Up to LC 8-dp9, the properties are there, but NOT displayed in the new PI.
>

That's not the same bug, then.

Here it would retrieve the old value, and open the older file.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: hunting a bug on scripted custom properties not being saved

2015-12-02 Thread [-hh]
Yes, I got it now. Didn't read exact enough, sorry.

Perhaps your's is somehow connected to the new option
"Preserve stack file version on stacks saved in legacy format"
of the 'Files & Memory' tab of the prefrences?

Would be interesting how your technique and this option interfere?
To know at which point sets LC the stack version when saving?

___
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: hunting a bug on scripted custom properties not being saved

2015-12-02 Thread [-hh]
> Richard E.H. wrote:
> I have a routine to bump the versions of stacks and save ...

Read your first post again. I misunderstood what you are doing.

By "the versions of stacks" you mean your development version of stacks, not 
using 'the stackFileVersion' of LC.

Sorry. Hope you get this solved.
___
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: hunting a bug on scripted custom properties not being saved

2015-12-02 Thread [-hh]

I had similar behaviour, connected to that, with the new property inspector.

I set and saved properties in LC 7, reopened the stack in LC.

The LC 7 PI shows the properties, also after reopening.
Up to LC 8-dp9, the properties are there, but NOT displayed in the new PI.

This bug is removed in LC 8-dp10.

So there must have been a bug report ...


___
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: hunting a bug on scripted custom properties not being saved

2015-12-01 Thread Peter Haworth
I've run into this as well, don't remember if I entered a bug report or not.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Tue, Dec 1, 2015 at 5:55 PM, Dr. Hawkins  wrote:

> This has been taunting me all day.
>
> I have a routine to bump the versions of stacks and save them, and to set
> the new name as a custom property of the control stack.
>
> That main stack, at the moment, typically has not changes made to it until
> this happens.
>
> It appears that if the only change to the stack is of a custom property by
> script, that even though it says its saving, this change doesn't get saved.
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> 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


hunting a bug on scripted custom properties not being saved

2015-12-01 Thread Dr. Hawkins
This has been taunting me all day.

I have a routine to bump the versions of stacks and save them, and to set
the new name as a custom property of the control stack.

That main stack, at the moment, typically has not changes made to it until
this happens.

It appears that if the only change to the stack is of a custom property by
script, that even though it says its saving, this change doesn't get saved.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: hunting a bug on scripted custom properties not being saved

2015-12-01 Thread Dr. Hawkins
On Tue, Dec 1, 2015 at 6:12 PM, Peter Haworth  wrote:

> I've run into this as well, don't remember if I entered a bug report or
> not.
>

I just filed one.

No number, as I had to pick up another computer to do it.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Char Set on Custom Properties

2015-09-04 Thread Mark Waddingham

On 2015-09-03 21:38, J. Landman Gay wrote:

Returning to this topic...we are in the process of creating new stacks
in LC 7 while still running older LC 6 stacks with the same app.
Stacks have custom properties containing text created on a Mac, and my
app uses MacToISO() to display the text when running on Windows.

Some of the LC 6 stacks will be edited and saved in LC 7, others will
remain as LC 6 for a while. My app needs to know whether the character
set has already been converted so it can display text correctly. Is
there a way to tell in a script?


Hmmm - this is somewhat tricky.

From what you are saying you want people to be able to edit content in 
both LC6 and LC7, the content itself being saved in LC6 format. i.e. You 
want to move your system forward to LC7, but you need to still support 
LC6 clients and editors. Is that correct?


Now, LC7 will assume that custom property values coming from LC6 format 
stacks are binary data thus won't do anything magical with them. 
However, as soon as you pass that value through anything text-related in 
LC7 and set the custom property back, it will be (in memory at least) 
stored as text. Then, when you save the stackfile in LC6 format the 
engine will convert the text to the platform encoding and save as binary 
(which is what LC6 expects).


Of course, having just written that there might not be a problem here. 
If you are still intending to save all your stacks in LC6 format then it 
should be fine. You still need to do macToIso / isoToMac in LC7 since it 
will only be loading things in LC6 format - a problem would only arise 
if you were sometimes saving your content stacks in LC7 format.


In terms of moving forward what you might want to consider is 
transitioning to storing your text in custom properties in UTF8 format. 
So, rather than using macToIso / isoToMac you decode the UTF8 into text 
in both LC6 and LC7. This means you can continue to use LC6 format, but 
at some point in the future ditch LC6 support and then you'll be able to 
start using unicode in your text without any problems. (To be fair, you 
could still do that now - its just that in LC6 clients / editors, any 
unicode characters would appear as ? as they wouldn't be in the native 
encoding).


Hopefully that's not too confusing :S

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Char Set on Custom Properties

2015-09-04 Thread Robert Brenstein
Not an ellegant approach but have you considered having a custom 
property in your stacks that identify them for you. It sounds like 
you are in control when those stacks are created and updated, so it 
might work.


RObert

On 04.09.2015 at 13:38 Uhr -0500 J. Landman Gay apparently wrote:
Barring that, I thought of reading a sequence of bytes from the 
stack file, but I can't because these stacks are streamed remotely 
and have no filename. I don't believe there's way to read the raw 
binary content of a stack in RAM, so I'm kind of stuck.


Is there some kind of scripted test that might determine the 
stackfileVersion of any particular stack in RAM?


--
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: Char Set on Custom Properties

2015-09-04 Thread J. Landman Gay

On 9/4/2015 7:57 AM, Mark Waddingham wrote:

 From what you are saying you want people to be able to edit content in
both LC6 and LC7, the content itself being saved in LC6 format. i.e. You
want to move your system forward to LC7, but you need to still support
LC6 clients and editors. Is that correct?


Pretty much. There are hundreds of stacks out in the field, in use by 
end users. We're starting to move to LC 7 and I'll build an app 
eventually with that version, which all users will update to. New stacks 
created from now on will be made in LC7 (if all goes well; there are 
some issues I'll be reporting.) The LC7 app can read both the existing 
LC6 stacks and the new LC7 stacks, which is good, but my scripts need to 
know whether to use MacToISO() or not before displaying the text.




Now, LC7 will assume that custom property values coming from LC6 format
stacks are binary data thus won't do anything magical with them.
However, as soon as you pass that value through anything text-related in
LC7 and set the custom property back, it will be (in memory at least)
stored as text. Then, when you save the stackfile in LC6 format the
engine will convert the text to the platform encoding and save as binary
(which is what LC6 expects).


Right, I think I understand that part. The problem is that we have many 
LC6 stacks in use and new LC7 ones coming out, so the scripts need to 
know which type they're working with. It sounds like the engine bases 
its decision on the stackfileVersion saved with any particular stack, 
which would be fine for me too if we could access that, but right now 
its only a global property. I could really use a "stackfileVersion of 
this stack" command right now. That would solve the problem.


Barring that, I thought of reading a sequence of bytes from the stack 
file, but I can't because these stacks are streamed remotely and have no 
filename. I don't believe there's way to read the raw binary content of 
a stack in RAM, so I'm kind of stuck.


Is there some kind of scripted test that might determine the 
stackfileVersion of any particular stack in RAM?


--
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: Char Set on Custom Properties

2015-09-04 Thread J. Landman Gay

On 9/4/2015 1:46 PM, Robert Brenstein wrote:

Not an ellegant approach but have you considered having a custom
property in your stacks that identify them for you. It sounds like you
are in control when those stacks are created and updated, so it might work.


It hadn't occured to me, actually. I could only set the property on the 
new LC7 stacks since we have all those others out in the field already, 
but that would be enough. Thanks for the idea.


I'm having a bit of a "duh" moment here.

--
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: Char Set on Custom Properties

2015-09-03 Thread J. Landman Gay
Returning to this topic...we are in the process of creating new stacks 
in LC 7 while still running older LC 6 stacks with the same app. Stacks 
have custom properties containing text created on a Mac, and my app uses 
MacToISO() to display the text when running on Windows.


Some of the LC 6 stacks will be edited and saved in LC 7, others will 
remain as LC 6 for a while. My app needs to know whether the character 
set has already been converted so it can display text correctly. Is 
there a way to tell in a script?



On 7/23/2015 7:38 AM, Mark Waddingham wrote:

LC 7 knows the difference between binary and text - this is retained
when saving custom props (if you save in 7+ format).

The only rub is that for existing stacks in the old format custom
props will be taken to be binary data (which auto converts to text
assuming the native encoding). Thus you will need to still do the
charset translation there for the props that are text. If you then
textdecode that and set the property to the result and save in lc7
format then it will then be treated as text in future (so no charset
translation is required in future).

Sent from my iPhone


On 22 Jul 2015, at 22:06, Dan Friedman <d...@clearvisiontech.com>
wrote:

Hello!   Way back in LiveCode 5 and 6, custom properties were not
ported to the proper character set when you opened the stack on a
different platform (Mac --> Win or Win --> Mac).  This was easily
solved by a simple macToISO() or ISOtoMac().   However, it appears
that LC 7.x is now doing this char mapping for custom properties on
it's own.  Before I modify a mountain of code, can anyone confirm
that LC 7+ automatically maps custom properties to the proper char
set for the host platform?

Thanks! Dan ___
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




--
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: Char Set on Custom Properties

2015-07-23 Thread Mark Waddingham
LC 7 knows the difference between binary and text - this is retained when 
saving custom props (if you save in 7+ format).

The only rub is that for existing stacks in the old format custom props will be 
taken to be binary data (which auto converts to text assuming the native 
encoding). Thus you will need to still do the charset translation there for the 
props that are text. If you then textdecode that and set the property to the 
result and save in lc7 format then it will then be treated as text in future 
(so no charset translation is required in future).

Sent from my iPhone

 On 22 Jul 2015, at 22:06, Dan Friedman d...@clearvisiontech.com wrote:
 
 Hello!   Way back in LiveCode 5 and 6, custom properties were not ported to 
 the proper character set when you opened the stack on a different platform 
 (Mac -- Win or Win -- Mac).  This was easily solved by a simple macToISO() 
 or ISOtoMac().   However, it appears that LC 7.x is now doing this char 
 mapping for custom properties on it's own.  Before I modify a mountain of 
 code, can anyone confirm that LC 7+ automatically maps custom properties to 
 the proper char set for the host platform?
 
 Thanks!
 Dan
 ___
 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: Char Set on Custom Properties

2015-07-22 Thread Mark Schonewille

Hi Dan,

Not exactly. All text is now unicode. If you set a custom property to 
the text of a field, it is unicode already. When you set the text of a 
field to a property, it is again unicode. This avoids the need for 
mapping and other hacks.


I haven't tested this much. I can imagine that this is confusing, 
particularly if you work with stacks on both old and new formats. If you 
only use the new format, however, it is very convenient and you will 
quickly get used to it.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/22/2015 23:06, Dan Friedman wrote:

Hello!   Way back in LiveCode 5 and 6, custom properties were not ported to the 
proper character set when you opened the stack on a different platform (Mac -- 
Win or Win -- Mac).  This was easily solved by a simple macToISO() or ISOtoMac(). 
  However, it appears that LC 7.x is now doing this char mapping for custom 
properties on it's own.  Before I modify a mountain of code, can anyone confirm that 
LC 7+ automatically maps custom properties to the proper char set for the host 
platform?

Thanks!
Dan



___
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


Char Set on Custom Properties

2015-07-22 Thread Dan Friedman
Hello!   Way back in LiveCode 5 and 6, custom properties were not ported to the 
proper character set when you opened the stack on a different platform (Mac -- 
Win or Win -- Mac).  This was easily solved by a simple macToISO() or 
ISOtoMac().   However, it appears that LC 7.x is now doing this char mapping 
for custom properties on it's own.  Before I modify a mountain of code, can 
anyone confirm that LC 7+ automatically maps custom properties to the proper 
char set for the host platform?

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


Re: Printing a RTF file saved as a custom properties of a stack

2014-04-24 Thread stephen barncard
On Wed, Apr 23, 2014 at 3:00 PM, Charles Szasz csz...@me.com wrote:

 In the print preview on my Mac, I can see the Rtf “coding” and not the
 nicely formatted text document I wanted.


I have no idea what the clipboard has to do with what you wanted to do
here...

Anyway - this test should load an RTF file created by TextEdit and set the
RTFText  in the livecode field to look exactly like the TE document.

You need two fields,  Field1 and Field2 and a button with this script:

*global* gFile

*on* mouseUp

*if* the optionkey is down *then* *edit* script of me

*answer* file get file  gfile

*if* it is empty *then* *exit* to top

*put* it into gFile

*put* file:/ before gFile

*get* URL gFile

*put* it into fld Field1  *-- (optional) examine RTFText*

*set* the RTFText of fld Field2 to it *-- convert **RTF** to readable
in field*

*pass* mouseup

*end* mouseUp


be sure to set the fixedlineHeight of the RTF text field to false.

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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

Printing a RTF file saved as a custom properties of a stack

2014-04-23 Thread Charles Szasz
I was able to save a template document as a RTF as a custom properties of a 
stack.  I want to retrieve the template to print it.  I can retrieve the file 
as a variable (see script below) but I do not know how to script printing it as 
a RTF.  Any suggestions?

  
  set the itemdelimiter to /
  put the uRtFile of stack “My stack into tRTFdata

Charles Szasz
csz...@mac.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: Printing a RTF file saved as a custom properties of a stack

2014-04-23 Thread stephen barncard
Check out RTFText in the docs.

I assume you created the template in a livecode field obtained the RTFText
of the field into a variable, then set a custom prop to that data, right?

then just get the data from the custom property and set the RTFText of a
field to it.

Livecode now tracks RTF data created in Textedit pretty accurately. It
didn't used to work as well.


On Wed, Apr 23, 2014 at 12:16 PM, Charles Szasz csz...@me.com wrote:

 I was able to save a template document as a RTF as a custom properties of
 a stack.  I want to retrieve the template to print it.  I can retrieve the
 file as a variable (see script below) but I do not know how to script
 printing it as a RTF.  Any suggestions?


   set the itemdelimiter to /
   put the uRtFile of stack “My stack into tRTFdata

 Charles Szasz
 csz...@mac.com




*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Printing a RTF file saved as a custom properties of a stack

2014-04-23 Thread stephen barncard
On Wed, Apr 23, 2014 at 12:16 PM, Charles Szasz csz...@me.com wrote:

  I can retrieve the file as a variable (see script below) but I do not
 know how to script printing it as a RTF.  Any suggestions?


Ok, I hope I've been understanding that your stumbling block was using RTF
text.

Or do you know how to handle RTFText and was it PRINTING that RTF code in
Livecode a problem?

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Printing a RTF file saved as a custom properties of a stack

2014-04-23 Thread Charles Szasz
Stephen,

I created a Rtf document using TextEdit and save it as a Rtf.  Then I 
successfully created a custom property and programmatically store the Rft as a 
custom property.  I then set up a field import in a new substack of my 
program. I then try the following script:

set the itemdelimiter to /
   put the uRtFile of stack “myProgram into tRTFdata -- 7-1-11 Changed 
uRtFile from card index to stack!!
   
   
   open printing with dialog
   
   if the result = cancel then exit to top
   
   set the invisible of stack printStack2 to true
   go to card printCard of stack printStack2
   
   set the RTFText of field input of card printCard of stack printStack2 
to the clipboardData[rtf]
   
   
   put tRTFdata into field input of card printCard of stack printStack2
   
   print card printCard of stack printStack2
   
   close printing

In the print preview on my Mac, I can see the Rtf “coding” and not the nicely 
formatted text document I wanted.


Charles Szasz
csz...@mac.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: Setting the textStyle of content of custom properties

2014-02-18 Thread Charles Szasz
Hi Craig,

Thanks for responding to my request for help! I would have emailed you earlier 
but my work has kept me away from coding. I tried the following:

set the styledText of customProperties[uMyLabel] of button check1ps to 
“bold

But that doesn’t not work. I have a six words in a custom property for button 
check1ps”.  I am trying to set the text in the custom property to bold because 
I have other buttons that also have custom properties which are not bold.  I 
want to manipulate the text of the custom properties so that only a select 
button will appear bold in a field.

Can you tell me what I am doing wrong?

Thanks!

Charles Szasz
csz...@mac.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: Setting the textStyle of content of custom properties

2014-02-18 Thread Richard Gaskin

Charles Szasz wrote:

 set the styledText of customProperties[uMyLabel] of button
 check1ps to “bold

 But that doesn’t not work.

The textStyle is a property of objects, or of chunks of text in a field, 
but the values stored in custom properties are just raw data, so they 
have no properties of any kind.


What you might consider instead is using custom property sets rather 
than properties, where each set is named after a button and contains a 
property named bold, e.g.:


  set the customPropertySet of button check1ps to My Button Name
  set the uBold of this stack to true

To set the button's textStyle to bold:

  set the customPropertySet of button check1ps to tMyButtonVar
  set the textStyle of btn tMyButtonVar to (the uBold of btn check1ps)

But unless the data must be physically bound to the button, it would be 
simpler to just use a multi-level array in a variable:


   put true into MyButtVarsA[tMyButtonName][bold]

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys



___
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: Setting the textStyle of content of custom properties

2014-02-18 Thread Bob Sneidar
I don’t think you can set the properties of a property like that. Also, I was 
under the impression that styledText is a field property and not one that 
belonged to a button. In fact the dictionary says, set the styledText of field 
to styledArray” indicating that it can only be used with a field. 

Bob

On Feb 18, 2014, at 17:50 , Charles Szasz csz...@me.com wrote:

 Hi Craig,
 
 Thanks for responding to my request for help! I would have emailed you 
 earlier but my work has kept me away from coding. I tried the following:
 
 set the styledText of customProperties[uMyLabel] of button check1ps to 
 “bold
 
 But that doesn’t not work. I have a six words in a custom property for button 
 check1ps”.  I am trying to set the text in the custom property to bold 
 because I have other buttons that also have custom properties which are not 
 bold.  I want to manipulate the text of the custom properties so that only a 
 select button will appear bold in a field.
 
 Can you tell me what I am doing wrong?
 
 Thanks!
 
 Charles Szasz
 csz...@mac.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


Re: Setting the textStyle of content of custom properties

2014-02-18 Thread Bob Sneidar
uurp sorry too many beer. I forgot to tell you what to do with the styled 
text once you put the text into a field and set the styledText to that. Put the 
htmlText of the field into your property. You might be able to use rtfText as 
well, but you can do wonderful things with htmlText like embed icons and such. 
Try it with a dialog sometime! 

Bob


On Feb 18, 2014, at 17:50 , Charles Szasz csz...@me.com wrote:

 Hi Craig,
 
 Thanks for responding to my request for help! I would have emailed you 
 earlier but my work has kept me away from coding. I tried the following:
 
 set the styledText of customProperties[uMyLabel] of button check1ps to 
 “bold
 
 But that doesn’t not work. I have a six words in a custom property for button 
 check1ps”.  I am trying to set the text in the custom property to bold 
 because I have other buttons that also have custom properties which are not 
 bold.  I want to manipulate the text of the custom properties so that only a 
 select button will appear bold in a field.
 
 Can you tell me what I am doing wrong?
 
 Thanks!
 
 Charles Szasz
 csz...@mac.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


Re: Setting the textStyle of content of custom properties

2014-02-13 Thread dunbarx
Hi.


The styledText or the htmlText should preserve the style. Run a few 
experiments.


Craig



-Original Message-
From: Charles Szasz csz...@me.com
To: use-livecode use-livecode@lists.runrev.com
Sent: Thu, Feb 13, 2014 3:07 pm
Subject: Setting the textStyle of content of custom properties


I have some text in custom properties for a checkbox. How can I set the 
textStyle of text to bold through scripting?

Sent from my iPad
___
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: Custom Properties

2013-06-28 Thread Peter M. Brigham
On Jun 27, 2013, at 11:11 AM, Graham Pearson wrote:

 Well for somehow the custom property was being stored in one of the
 SubStacks of the main stack and not within the main stack. Now to figure
 out what I did to make this happen.

Perhaps at the time you set the customprop the topstack was likely not what you 
thought. When setting customprops it is best to be explicit:

   set the myCustomProp of stack prefsStack to something

and not

   set the myCustomProp of this stack to something

which will be dependent on the (changeable) value of this stack.

Be aware that if you are building a standalone then you will actually want to 
store the customprops in a substack and not the mainstack. In a standalone, the 
main stack is the executable and changes will not be saved from session to 
session. Even if you're not storing volatile data, it's best to keep the 
mainstack as a splashstack and keep everything on the operations and data side 
away from the spashstack. Including scripts used by your substacks. Put those 
into a library stack that you start using on startup. If you do it that way 
then updates will be easier in the future.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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


Custom Properties

2013-06-27 Thread Graham Pearson
As I am finishing up with my first application, I am now moving global
variables to custom properties as recommended by other posts on this
list and the RunRev lessons site.

On the main stack I have created a custom property called
altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/


In a RunRev lesson on custom properties it has a line that says:

answer the cName of this stack


which displayed the name entered from a field called name.




If I do the answer line with my altWebServerURL all I get is a blank
answer box with OK and not the value of what I defined within the
property contents of this custom property.



What am I doing wrong?

___
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: Custom Properties

2013-06-27 Thread Andrew Kluthe
Hmmm, is the data being returned by that custom property an array? Array's
don't display as strings on answer dialogs, etc.

Also, why move your global variables to custom properties? There are some
pretty good use cases for both.


On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com wrote:

 As I am finishing up with my first application, I am now moving global
 variables to custom properties as recommended by other posts on this
 list and the RunRev lessons site.

 On the main stack I have created a custom property called
 altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/


 In a RunRev lesson on custom properties it has a line that says:

 answer the cName of this stack


 which displayed the name entered from a field called name.




 If I do the answer line with my altWebServerURL all I get is a blank
 answer box with OK and not the value of what I defined within the
 property contents of this custom property.



 What am I doing wrong?

 ___
 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




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
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: Custom Properties

2013-06-27 Thread Mike Kerner
Isn't there an issue of speed (although not a big difference) where custom
properties are slower than globals?


On Thu, Jun 27, 2013 at 9:31 AM, Andrew Kluthe and...@ctech.me wrote:

 Hmmm, is the data being returned by that custom property an array? Array's
 don't display as strings on answer dialogs, etc.

 Also, why move your global variables to custom properties? There are some
 pretty good use cases for both.


 On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com
 wrote:

  As I am finishing up with my first application, I am now moving global
  variables to custom properties as recommended by other posts on this
  list and the RunRev lessons site.
 
  On the main stack I have created a custom property called
  altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/
 
 
  In a RunRev lesson on custom properties it has a line that says:
 
  answer the cName of this stack
 
 
  which displayed the name entered from a field called name.
 
 
 
 
  If I do the answer line with my altWebServerURL all I get is a blank
  answer box with OK and not the value of what I defined within the
  property contents of this custom property.
 
 
 
  What am I doing wrong?
 
  ___
  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
 



 --
 Regards,

 Andrew Kluthe
 and...@ctech.me
 ___
 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: Custom Properties

2013-06-27 Thread Roger Eller
I confirmed that either of these works as long as you have first:

*set* the cName of this stack to Bla Bla Bla

*answer* the cName of this stack

or

*get* the cName of this stack; *answer* it
~Roger


On Thu, Jun 27, 2013 at 9:31 AM, Andrew Kluthe and...@ctech.me wrote:

 Hmmm, is the data being returned by that custom property an array? Array's
 don't display as strings on answer dialogs, etc.

 Also, why move your global variables to custom properties? There are some
 pretty good use cases for both.


 On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com
 wrote:

  As I am finishing up with my first application, I am now moving global
  variables to custom properties as recommended by other posts on this
  list and the RunRev lessons site.
 
  On the main stack I have created a custom property called
  altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/
 
 
  In a RunRev lesson on custom properties it has a line that says:
 
  answer the cName of this stack
 
 
  which displayed the name entered from a field called name.
 
 
 
 
  If I do the answer line with my altWebServerURL all I get is a blank
  answer box with OK and not the value of what I defined within the
  property contents of this custom property.
 
 
 
  What am I doing wrong?
 
  ___
  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
 



 --
 Regards,

 Andrew Kluthe
 and...@ctech.me
 ___
 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: Custom Properties

2013-06-27 Thread Graham Pearson
In the custom contents of this custom property has text which is listed
as http://www.yourcfpro.com/TestApp. I also have other custom properties
where I have true or false values and they are all displaying blank
answer windows when I try to view them so I know I am doing something
wrong.

To answer the why is I am wanting to move away from Adobe Air/Flash to
LC and have been wading in water with Livecode for the past 3 years.
Over the past 3 months, I have spent hours each day working with LC to
finally make the switch as I move my desktop applications to LC. I can
see the possibilities in my daily work environment with LC and some
possibilities with mobile applications as an extra enhancement to the
dynamic websites I have already created. The piece of the puzzle I have
been missing with Adobe Air/Flash is the mobile section.

How I have always learned something is to create something that I need
in my daily work environment in education as this allows me to retain
the information even though I know it will be very frustrating learning
on a training budget of $0.00 and using Google,Ask, Mailing Lists and
viewing other peoples code to understand techniques and best practices.
As I update my application to work out the issue of updating
automatically, the stacks I have found online use custom properties and
were written in pre Livecode days and I can not get them to work in my
project which I get same result when I try to debug the custom properties.

I am just trying to learn this to find out which way is best for this
specific application as this application might be best with global
variables and another might be best with custom properties.


On 6/27/2013 9:31 AM, Andrew Kluthe wrote:
 Hmmm, is the data being returned by that custom property an array? Array's
 don't display as strings on answer dialogs, etc.
 
 Also, why move your global variables to custom properties? There are some
 pretty good use cases for both.
 
 
 On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com wrote:
 
 As I am finishing up with my first application, I am now moving global
 variables to custom properties as recommended by other posts on this
 list and the RunRev lessons site.

 On the main stack I have created a custom property called
 altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/


 In a RunRev lesson on custom properties it has a line that says:

 answer the cName of this stack


 which displayed the name entered from a field called name.




 If I do the answer line with my altWebServerURL all I get is a blank
 answer box with OK and not the value of what I defined within the
 property contents of this custom property.



 What am I doing wrong?

 ___
 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: Custom Properties

2013-06-27 Thread Graham Pearson
Now I am very lost as usual. on my stack script I did the set script
with a new custom property called altNewCustomPropertythat has a value
of http://www.google.com; and when I did the answer I got
http:/www.google.com


However, In the stack or in the card property inspector under custom
properties I do not see this custom property called altNewCustomProperty
so I must be trying to put the name/value items in the wrong location.


I would have thought that if I set a custom property it would have shown
up in the Property Inspector under Custom Property until the time it was
deleted if they can even be deleted via a script. Back to the drawing board.




On 6/27/2013 9:54 AM, Roger Eller wrote:
 I confirmed that either of these works as long as you have first:
 
 *set* the cName of this stack to Bla Bla Bla
 
 *answer* the cName of this stack
 
 or
 
 *get* the cName of this stack; *answer* it
 ~Roger
 
 
 On Thu, Jun 27, 2013 at 9:31 AM, Andrew Kluthe and...@ctech.me wrote:
 
 Hmmm, is the data being returned by that custom property an array? Array's
 don't display as strings on answer dialogs, etc.

 Also, why move your global variables to custom properties? There are some
 pretty good use cases for both.


 On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com
 wrote:

 As I am finishing up with my first application, I am now moving global
 variables to custom properties as recommended by other posts on this
 list and the RunRev lessons site.

 On the main stack I have created a custom property called
 altWebServerURL and custom contents of http://www.yourcfpro.com/TestApp/


 In a RunRev lesson on custom properties it has a line that says:

 answer the cName of this stack


 which displayed the name entered from a field called name.




 If I do the answer line with my altWebServerURL all I get is a blank
 answer box with OK and not the value of what I defined within the
 property contents of this custom property.



 What am I doing wrong?

 ___
 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




 --
 Regards,

 Andrew Kluthe
 and...@ctech.me
 ___
 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: Custom Properties

2013-06-27 Thread Andrew Kluthe
Hmm, perhaps look some of these lessons over again to get a clearer
understanding of whats custom properties are and how to use them in various
ways.

http://lessons.runrev.com/s/lessons/tags?tag=custom+properties

The old user manual from when LC was still revolution (I believe it was
from the Revolution 4.0 era) was also incredibly useful to me. I read it
front to back when I first got started. It really gave me a clear
understanding of stuff like the message path, custom properties, etc.

I however can't find a link to the old style user manual. It also doesn't
seem the info in it is translated to the new attempt at a Developer's
guide. Maybe someone on list can upload a PDF of the oldstyle user guide
for you.


On Thu, Jun 27, 2013 at 9:15 AM, Graham Pearson gspear...@gmail.com wrote:

 Now I am very lost as usual. on my stack script I did the set script
 with a new custom property called altNewCustomPropertythat has a value
 of http://www.google.com; and when I did the answer I got
 http:/www.google.com


 However, In the stack or in the card property inspector under custom
 properties I do not see this custom property called altNewCustomProperty
 so I must be trying to put the name/value items in the wrong location.


 I would have thought that if I set a custom property it would have shown
 up in the Property Inspector under Custom Property until the time it was
 deleted if they can even be deleted via a script. Back to the drawing
 board.




 On 6/27/2013 9:54 AM, Roger Eller wrote:
  I confirmed that either of these works as long as you have first:
 
  *set* the cName of this stack to Bla Bla Bla
 
  *answer* the cName of this stack
 
  or
 
  *get* the cName of this stack; *answer* it
  ~Roger
 
 
  On Thu, Jun 27, 2013 at 9:31 AM, Andrew Kluthe and...@ctech.me wrote:
 
  Hmmm, is the data being returned by that custom property an array?
 Array's
  don't display as strings on answer dialogs, etc.
 
  Also, why move your global variables to custom properties? There are
 some
  pretty good use cases for both.
 
 
  On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com
  wrote:
 
  As I am finishing up with my first application, I am now moving global
  variables to custom properties as recommended by other posts on this
  list and the RunRev lessons site.
 
  On the main stack I have created a custom property called
  altWebServerURL and custom contents of
 http://www.yourcfpro.com/TestApp/
 
 
  In a RunRev lesson on custom properties it has a line that says:
 
  answer the cName of this stack
 
 
  which displayed the name entered from a field called name.
 
 
 
 
  If I do the answer line with my altWebServerURL all I get is a blank
  answer box with OK and not the value of what I defined within the
  property contents of this custom property.
 
 
 
  What am I doing wrong?
 
  ___
  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
 
 
 
 
  --
  Regards,
 
  Andrew Kluthe
  and...@ctech.me
  ___
  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




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
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: Custom Properties

2013-06-27 Thread Alan Stenhouse
Perhaps they're under a different custom property set? Did you check in the 
Custom Properties inspector if there's any other property sets that you could 
choose? (There's a popup under the scrolling field of custom properties).

Can you paste in the command you're using to set one of these properties please?


On 27/06/2013, at 4:14 PM, gspear...@gmail.com wrote:

 From: Graham Pearson gspear...@gmail.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: Re: Custom Properties
 Message-ID: 51cc48fb.4060...@gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Now I am very lost as usual. on my stack script I did the set script
 with a new custom property called altNewCustomPropertythat has a value
 of http://www.google.com; and when I did the answer I got
 http:/www.google.com
 
 
 However, In the stack or in the card property inspector under custom
 properties I do not see this custom property called altNewCustomProperty
 so I must be trying to put the name/value items in the wrong location.
 
 
 I would have thought that if I set a custom property it would have shown
 up in the Property Inspector under Custom Property until the time it was
 deleted if they can even be deleted via a script. Back to the drawing board.
 

___
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: Custom Properties

2013-06-27 Thread Graham Pearson
Well for somehow the custom property was being stored in one of the
SubStacks of the main stack and not within the main stack. Now to figure
out what I did to make this happen.




On 6/27/2013 10:36 AM, Andrew Kluthe wrote:
 Hmm, perhaps look some of these lessons over again to get a clearer
 understanding of whats custom properties are and how to use them in various
 ways.
 
 http://lessons.runrev.com/s/lessons/tags?tag=custom+properties
 
 The old user manual from when LC was still revolution (I believe it was
 from the Revolution 4.0 era) was also incredibly useful to me. I read it
 front to back when I first got started. It really gave me a clear
 understanding of stuff like the message path, custom properties, etc.
 
 I however can't find a link to the old style user manual. It also doesn't
 seem the info in it is translated to the new attempt at a Developer's
 guide. Maybe someone on list can upload a PDF of the oldstyle user guide
 for you.
 
 
 On Thu, Jun 27, 2013 at 9:15 AM, Graham Pearson gspear...@gmail.com wrote:
 
 Now I am very lost as usual. on my stack script I did the set script
 with a new custom property called altNewCustomPropertythat has a value
 of http://www.google.com; and when I did the answer I got
 http:/www.google.com


 However, In the stack or in the card property inspector under custom
 properties I do not see this custom property called altNewCustomProperty
 so I must be trying to put the name/value items in the wrong location.


 I would have thought that if I set a custom property it would have shown
 up in the Property Inspector under Custom Property until the time it was
 deleted if they can even be deleted via a script. Back to the drawing
 board.




 On 6/27/2013 9:54 AM, Roger Eller wrote:
 I confirmed that either of these works as long as you have first:

 *set* the cName of this stack to Bla Bla Bla

 *answer* the cName of this stack

 or

 *get* the cName of this stack; *answer* it
 ~Roger


 On Thu, Jun 27, 2013 at 9:31 AM, Andrew Kluthe and...@ctech.me wrote:

 Hmmm, is the data being returned by that custom property an array?
 Array's
 don't display as strings on answer dialogs, etc.

 Also, why move your global variables to custom properties? There are
 some
 pretty good use cases for both.


 On Thu, Jun 27, 2013 at 8:19 AM, Graham Pearson gspear...@gmail.com
 wrote:

 As I am finishing up with my first application, I am now moving global
 variables to custom properties as recommended by other posts on this
 list and the RunRev lessons site.

 On the main stack I have created a custom property called
 altWebServerURL and custom contents of
 http://www.yourcfpro.com/TestApp/


 In a RunRev lesson on custom properties it has a line that says:

 answer the cName of this stack


 which displayed the name entered from a field called name.




 If I do the answer line with my altWebServerURL all I get is a blank
 answer box with OK and not the value of what I defined within the
 property contents of this custom property.



 What am I doing wrong?

 ___
 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




 --
 Regards,

 Andrew Kluthe
 and...@ctech.me
 ___
 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: Custom Properties

2013-06-27 Thread Paul Maguire
I can confirm the following works:
Create new stack
Add custom property someProperty and set to http://google.com
Answer (the someProperty of thisCard) pops open a modal dialog with the URL as 
expected

Perhaps there is a bogus invisible character somewhere in the URL?
Perhaps delete custom property, recreate it and type in the URL (instead of 
copy/paste)?

Kind regards,   Paul.
___
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: Custom Properties

2013-06-27 Thread Thomas McGrath III
Graham,

When ever possible paste the code you are using and the version of Livecode. It 
will be a lot easier to give an answer.

If you want to put quotes into a customProperty you have to use:

set the cAddress of this card to quote  http://www.google.com;  quote

and then you can use this line to get the custom property back:

put the cAddress of this card into field Address of this card 


HTHs


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Jun 27, 2013, at 10:15 AM, Graham Pearson gspear...@gmail.com wrote:

 Now I am very lost as usual. on my stack script I did the set script
 with a new custom property called altNewCustomPropertythat has a value
 of http://www.google.com; and when I did the answer I got
 http:/www.google.com
 
 
 However, In the stack or in the card property inspector under custom
 properties I do not see this custom property called altNewCustomProperty
 so I must be trying to put the name/value items in the wrong location.
 
 
 I would have thought that if I set a custom property it would have shown
 up in the Property Inspector under Custom Property until the time it was
 deleted if they can even be deleted via a script. Back to the drawing board.
 
 
 


___
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: Custom Properties

2013-06-27 Thread Richard Gaskin

Graham Pearson wrote:

As I am finishing up with my first application, I am now moving global
variables to custom properties as recommended by other posts on this
list and the RunRev lessons site.


What are you looking to achieve with this conversion?

Most programming languages include support for global variables because 
they can be quite useful.


If the code works well with globals now, there may be nothing to fix.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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


Tracking And Deleting Objects Via Custom Properties?

2012-05-29 Thread JOHN PATTEN
Hi All…

I have a script that is storing objects via their name in a custom property of 
the card. I'm trying to delete one of the objects by checking if the object 
name is 'among' the 'list' of items. This works fine. However I can delete the 
name of the object from the list of objects in the custom property?

Here's essentially what I'm trying to do:

on mouseUp
   put the buttonList of current card into tButtons
   put the short name of last btn into tTargetButton
   if  tTargetButton  is among the lines of tBullets then
  delete the foundline of tButtons
  answer tTargetButton  Button has been deleted.
  end if
end mouseUp

How can I delete the name of an object listed in the custom property?

Thank you!

John Patten
SUSD
___
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: Tracking And Deleting Objects Via Custom Properties?

2012-05-29 Thread Mike Bonner
Probably something like this would work.

on mouseUp
  put the buttonList of current card into tButtons
  put the short name of last btn into tTargetButton
  put lineoffset(tTargetButton,tButtons) into tOffset -- get the matching
line number in tButtons
  if tOffset  0 then -- if there was a match...
 delete line tOffset of tButtons -- remove the button name from the list
 delete button tTargetButton -- delete the butotn
 answer tTargetButton  Button has been deleted.
 set the buttonlist of the current card to tButtons -- set the property
to the adjusted tbuttons
 end if
end mouseUp

On Tue, May 29, 2012 at 8:14 PM, JOHN PATTEN johnpat...@me.com wrote:

 Hi All…

 I have a script that is storing objects via their name in a custom
 property of the card. I'm trying to delete one of the objects by checking
 if the object name is 'among' the 'list' of items. This works fine. However
 I can delete the name of the object from the list of objects in the custom
 property?

 Here's essentially what I'm trying to do:

 on mouseUp
   put the buttonList of current card into tButtons
   put the short name of last btn into tTargetButton
   if  tTargetButton  is among the lines of tBullets then
  delete the foundline of tButtons
  answer tTargetButton  Button has been deleted.
  end if
 end mouseUp

 How can I delete the name of an object listed in the custom property?

 Thank you!

 John Patten
 SUSD
 ___
 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: Tracking And Deleting Objects Via Custom Properties?

2012-05-29 Thread Paul Hibbert
John,

You can't edit the list of items in a custom property directly, but you can put 
the list of items in the custom property into a variable, delete the item from 
the variable then set the custom property back to the modified variable.

HTH

Paul

On 2012-05-29, at 7:14 PM, JOHN PATTEN wrote:

 Hi All…
 
 I have a script that is storing objects via their name in a custom property 
 of the card. I'm trying to delete one of the objects by checking if the 
 object name is 'among' the 'list' of items. This works fine. However I can 
 delete the name of the object from the list of objects in the custom property?
 
 Here's essentially what I'm trying to do:
 
 on mouseUp
   put the buttonList of current card into tButtons
   put the short name of last btn into tTargetButton
   if  tTargetButton  is among the lines of tBullets then
  delete the foundline of tButtons
  answer tTargetButton  Button has been deleted.
  end if
 end mouseUp
 
 How can I delete the name of an object listed in the custom property?
 
 Thank you!
 
 John Patten
 SUSD
 ___
 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: Tracking And Deleting Objects Via Custom Properties?

2012-05-29 Thread Peter M. Brigham, MD
You could use this, something I saved along the way. I *think* it's from the 
stdLib by Ken Ray and Richard Gaskin, but I've lost track.

on deleteCustomProperty tObjRef,tPropSet,tProp
   -- not sure where this comes from, it's not mine
   -- thanks to whoever !
   put the custompropertyset of tObjRef into oldPropSet
   set the custompropertyset of tObjRef to tPropSet
   put the customkeys of tObjRef into keysList
   set the wholematches to true
   put lineoffset(tProp,keysList) into propLine
   if propLine  0 then
  delete line propLine of keysList
  set the customkeys of tObjRef to keysList
   end if
   set the custompropertyset of tObjRef to oldPropSet
end deleteCustomProperty

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On May 29, 2012, at 10:14 PM, JOHN PATTEN wrote:

 Hi All…
 
 I have a script that is storing objects via their name in a custom property 
 of the card. I'm trying to delete one of the objects by checking if the 
 object name is 'among' the 'list' of items. This works fine. However I can 
 delete the name of the object from the list of objects in the custom property?
 
 Here's essentially what I'm trying to do:
 
 on mouseUp
   put the buttonList of current card into tButtons
   put the short name of last btn into tTargetButton
   if  tTargetButton  is among the lines of tBullets then
  delete the foundline of tButtons
  answer tTargetButton  Button has been deleted.
  end if
 end mouseUp
 
 How can I delete the name of an object listed in the custom property?
 
 Thank you!
 
 John Patten
 SUSD
 ___
 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: Tracking And Deleting Objects Via Custom Properties?

2012-05-29 Thread JOHN PATTEN
Thanks Peter, Paul, and Mike!

I forgot about the lineOffset… :)

Cheers!

John Patten
SUSD
On May 29, 2012, at 7:33 PM, Peter M. Brigham, MD wrote:

 You could use this, something I saved along the way. I *think* it's from the 
 stdLib by Ken Ray and Richard Gaskin, but I've lost track.
 
 on deleteCustomProperty tObjRef,tPropSet,tProp
   -- not sure where this comes from, it's not mine
   -- thanks to whoever !
   put the custompropertyset of tObjRef into oldPropSet
   set the custompropertyset of tObjRef to tPropSet
   put the customkeys of tObjRef into keysList
   set the wholematches to true
   put lineoffset(tProp,keysList) into propLine
   if propLine  0 then
  delete line propLine of keysList
  set the customkeys of tObjRef to keysList
   end if
   set the custompropertyset of tObjRef to oldPropSet
 end deleteCustomProperty
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 On May 29, 2012, at 10:14 PM, JOHN PATTEN wrote:
 
 Hi All…
 
 I have a script that is storing objects via their name in a custom property 
 of the card. I'm trying to delete one of the objects by checking if the 
 object name is 'among' the 'list' of items. This works fine. However I can 
 delete the name of the object from the list of objects in the custom 
 property?
 
 Here's essentially what I'm trying to do:
 
 on mouseUp
  put the buttonList of current card into tButtons
  put the short name of last btn into tTargetButton
  if  tTargetButton  is among the lines of tBullets then
 delete the foundline of tButtons
 answer tTargetButton  Button has been deleted.
 end if
 end mouseUp
 
 How can I delete the name of an object listed in the custom property?
 
 Thank you!
 
 John Patten
 SUSD
 ___
 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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-29 Thread Bob Sneidar
Right. It seems like it would be easier to clone a stack, then reset everything 
in it, or just keep a copy of a virgin stack around. You would have to update 
it every time you made any changes to the original though. 

Bob


On Dec 28, 2011, at 1:51 PM, stephen barncard wrote:

 A while ago I experimented with saving complete descriptions of livecode
 objects as text with some success. It was possible to get most, but not all
 properties in repeat loops, however I found that the recursive code needed
 to bury within groups of groups was just too time consuming to be worth it.
  It was pointless to continue, the packaging I desired was much more
 easily handled and portable with the Livecode containers.


___
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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-29 Thread Richard Gaskin

Bob Sneidar wrote:


It seems like it would be easier to clone a stack, then reset everything in it, 
or just keep a copy of a virgin stack around. You would have to update it every 
time you made any changes to the original though.


That's been my experience as well.  The stack file format is so compact 
and convenient that it's hard to beat for most project management tasks.


Keith, what is the problem you were looking to solve?

--
 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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-28 Thread Keith (Gulf Breeze Ortho Lab)
Hi All,

Does anyone know of a sample stack demonstrating how to pull all of the 
properties and custom properties out of a stack, putting them into a file, and 
then demonstrating how to put the file of data back into the stack (or into 
another copy or clone of the original stack)?

Thanks,

- Boo
___
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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-28 Thread Bob Sneidar
Get the customProperties of a stack. It is an array. Get the properties of a 
stack. It is (almost) all of the properties of the stack as an array. at this 
point the easiest thing to do to save them as a file on disk is to 
arrayEncode() them and write them to a low level file. Not sure if you need to 
base64 encode them too. Only way to tell is to try. See open file, read from 
file, and write to file in the dictionary. 

Putting the standard properties back is a bit trickier though. I don't think 
you can set the properties of a stack. I think you have to loop through them. 
repeat for each element pProp in theStackProps;set the pProp of this stack to 
theStackProps[pProp] off the top of my head. 

You may however be able to just set the customProperties of a stack. 

Bob


On Dec 28, 2011, at 12:38 AM, Keith (Gulf Breeze Ortho Lab) wrote:

 Hi All,
 
 Does anyone know of a sample stack demonstrating how to pull all of the 
 properties and custom properties out of a stack, putting them into a file, 
 and then demonstrating how to put the file of data back into the stack (or 
 into another copy or clone of the original stack)?
 
 Thanks,
 
 - Boo
 ___
 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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-28 Thread Mark Wieder
Bob-

Wednesday, December 28, 2011, 8:31:54 AM, you wrote:

 Putting the standard properties back is a bit trickier though. I
 don't think you can set the properties of a stack.

Most of them you can. Some are read-only. If you wrap your code below
in a try-catch construct you can avoid the errors.

 I think you have
 to loop through them. repeat for each element pProp in
 theStackProps;set the pProp of this stack to theStackProps[pProp]
 off the top of my head. 

Oh - and there are a few (can't remember off the top of my own head)
that have to be done in the proper order, particularly the ones that
deal with height/width/right/left/top/bottom, etc.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-28 Thread Bob Sneidar
I meant all at once as in set the properties of this stack to theSavedProperties

Bob


On Dec 28, 2011, at 10:16 AM, Mark Wieder wrote:

 Bob-
 
 Wednesday, December 28, 2011, 8:31:54 AM, you wrote:
 
 Putting the standard properties back is a bit trickier though. I
 don't think you can set the properties of a stack.


___
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: Sample stack demonstrating how to obtain all properties and custom properties of a stack?

2011-12-28 Thread stephen barncard
well if one were setting all of the properties of a stack, they'd have to
be set to  another stack.

 set the properties of stack b to the properties  of  stack a

Easier to copy the stack.Can all the properties be placed into a variable?
  I think some props will be left out by design, otherwise objects would
blow up.


 A while ago I experimented with saving complete descriptions of livecode
objects as text with some success. It was possible to get most, but not all
properties in repeat loops, however I found that the recursive code needed
to bury within groups of groups was just too time consuming to be worth it.
  It was pointless to continue, the packaging I desired was much more
easily handled and portable with the Livecode containers.


On 28 December 2011 13:17, Bob Sneidar b...@twft.com wrote:

 I meant all at once as in set the properties of this stack to
 theSavedProperties

 Bob


 On Dec 28, 2011, at 10:16 AM, Mark Wieder wrote:

  Bob-
 
  Wednesday, December 28, 2011, 8:31:54 AM, you wrote:
 
  Putting the standard properties back is a bit trickier though. I
  don't think you can set the properties of a stack.


 ___
 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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: Rename Custom Properties

2011-10-08 Thread J. Landman Gay

On 10/8/11 6:34 PM, Marty Knapp wrote:

Is there a way to rename custom properties by script and retain the
contents of the custom properties? I know you can do it with the
inspector, but I would like to be able to do it by script so that my
user's stacks can be updated with the new names. Or will I need to cycle
through the customKeys, temporarily store the value, create a new custom
property and insert the value into the new cp?


The last one. And then delete the original property.

--
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


  1   2   >