Re: Another widget grumble

2020-04-28 Thread Niggemann, Bernd via use-livecode


> Alex Tweedly wrote:
> How do you tell whether a widget is "part of the main product" ?
> Or, conversely, how do you find out what other source it came from ?

If you look at a widget in the Properties Inspector in the "basic" pane you 
will find its name and then "Kind"

for the Cock widget:
name: clock 
kind: com.livecode.widget.clock

 com.livecode.widget tells you that it is a, well, livecode widget.

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


Re: Another widget grumble

2020-04-28 Thread Brian Milby via use-livecode
Anything you can find here can be updated by the community (either via PR,
or compiled and used in your own project):

https://github.com/livecode/livecode/tree/develop/extensions/widgets


On Tue, Apr 28, 2020 at 11:26 AM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> On 28/04/2020 13:38, Brian Milby via use-livecode wrote:
> > For any that are part of the main product, a PR to add that feature
> would not be very difficult.  If I get some time I will take a look.  I do
> agree that a distinct label would be a good idea for native control widgets.
>
> How do you tell whether a widget is "part of the main product" ?
>
> Or, conversely, how do you find out what other source it came from ?
>
> I don't see anything in the dictionary about owner/source of the widgets.
>
> Alex.
>
>
> ___
> 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: Another widget grumble

2020-04-28 Thread Alex Tweedly via use-livecode


On 28/04/2020 13:38, Brian Milby via use-livecode wrote:

For any that are part of the main product, a PR to add that feature would not 
be very difficult.  If I get some time I will take a look.  I do agree that a 
distinct label would be a good idea for native control widgets.


How do you tell whether a widget is "part of the main product" ?

Or, conversely, how do you find out what other source it came from ?

I don't see anything in the dictionary about owner/source of the widgets.

Alex.


___
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: Another widget grumble

2020-04-28 Thread Brian Milby via use-livecode
For any that are part of the main product, a PR to add that feature would not 
be very difficult.  If I get some time I will take a look.  I do agree that a 
distinct label would be a good idea for native control widgets.

Thanks,
Brian
On Apr 28, 2020, 8:23 AM -0400, Graham Samuel via use-livecode 
, wrote:
> I’m still trying to use the ‘mobile native’ style of widget. Previously I’ve 
> objected to the idea of an object that displays its name and has no label or 
> alias. My objection was mostly that names that the user sees often have 
> spaces in them (“Stop Now” or whatever), whereas names with spaces in them 
> are dangerous to refer to in scripts because it’s so easy to put two in 
> instead of one, and is either illegal or deprecated in almost all computer 
> languages.
>
> Today I came across an even more annoying aspect of this, when I added a 
> facility to my app to change the language of the display. So a button in 
> English displaying “Cancel” gets changed to “Annuler”. So if I need to refer 
> to the button in script, the simplest way is to use its ID and not its name. 
> The ID is a fine thing, but it doesn’t make for readable code!
>
> Seriously, is there any chance of these widgets being improved by somebody? 
> They just need more properties really.
>
> Graham
> ___
> 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


Another widget grumble

2020-04-28 Thread Graham Samuel via use-livecode
I’m still trying to use the ‘mobile native’ style of widget. Previously I’ve 
objected to the idea of an object that displays its name and has no label or 
alias. My objection was mostly that names that the user sees often have spaces 
in them (“Stop Now” or whatever), whereas names with spaces in them are 
dangerous to refer to in scripts because it’s so easy to put two in instead of 
one, and is either illegal or deprecated in almost all computer languages.

Today I came across an even more annoying aspect of this, when I added a 
facility to my app to change the language of the display. So a button in 
English displaying “Cancel” gets changed to “Annuler”. So if I need to refer to 
the button in script, the simplest way is to use its ID and not its name. The 
ID is a fine thing, but it doesn’t make for readable code!

Seriously, is there any chance of these widgets being improved by somebody? 
They just need more properties really.

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