Mark menu item as checked

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Mark menu item as checked

Post by FourthWorld » Sun Oct 20, 2019 8:27 pm

richmond62 wrote:
Sun Oct 20, 2019 6:48 pm
Because we're looking for a practical solution to an actual need.
OK.

But, what then is this?
-
diamond and checkmark.png
A much smaller subset of the long list of characters not normally used in menus that you'd posted from Wikipedia. :)

That's only two symbols. Kinda like what LC supports right now.

The diamond is from Motif. Most OSes now use a dash. A bullet may be allowed in some of those cases, but I don't think that's quite up to spec.

A checkmark and a dash will cover most real-world needs today, though I see no reason to remove the bullet, even though few use it anymore.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Mark menu item as checked

Post by bn » Sun Oct 20, 2019 8:31 pm

The diamond is from Motif. Most OSes now use a dash. A bullet may be allowed in some of those cases, but I don't think that's quite up to spec.
Livecode 9.5 is using diamond on MacOS X (in my case 12.6) in Tools menu to indicate the "Browse Tool" or "Pointer Tool"

Kind regards
Bernd

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Mark menu item as checked

Post by FourthWorld » Sun Oct 20, 2019 9:12 pm

bn wrote:
Sun Oct 20, 2019 8:31 pm
The diamond is from Motif. Most OSes now use a dash. A bullet may be allowed in some of those cases, but I don't think that's quite up to spec.
Livecode 9.5 is using diamond on MacOS X (in my case 12.6) in Tools menu to indicate the "Browse Tool" or "Pointer Tool"
Hmmm...perhaps what LC renders as a bullet here on Ubuntu renders a diamond on macOS. I haven't read the macOS HIG in a while; it the diamond is on spec we may be well covered as-is.

Have you seen a diamond in other Mac apps?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Mark menu item as checked

Post by bn » Sun Oct 20, 2019 10:54 pm

FourthWorld wrote:
Sun Oct 20, 2019 9:12 pm
Hmmm...perhaps what LC renders as a bullet here on Ubuntu renders a diamond on macOS. I haven't read the macOS HIG in a while; it the diamond is on spec we may be well covered as-is.

Have you seen a diamond in other Mac apps?
No, I have not seen the diamond in other Mac apps. I looked at a couple of Apple Apps (Mail, Map, Safari) and did not see any.

Actually in LC it is used to indicate a mutual exclusive choice: it is either "Browse Tool" or "Pointer Tool" in a separate section of the menu.
Apple uses in Map in menu display for the mutually exclusive choice of "Map", "Public Transport", "Satellite" a checkmark.
I looked at Apples HIGs and there was no mention of diamond or similar for Menus.

Kind regards
Bernd

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mark menu item as checked

Post by richmond62 » Mon Oct 21, 2019 10:50 am

Diamond.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mark menu item as checked

Post by richmond62 » Mon Oct 21, 2019 7:51 pm

the long list of characters not normally used in menus that you'd posted from Wikipedia.
You may notice that that long list of characters comes with their Unicode addresses, so it would fantastic were it
possible in the same way as I can write:

Code: Select all

on mouseUp
   put numToCodePoint(0x2e2e) into fld "ff"
end mouseUp
to write this (pseudoCode):

set the checkmark to numToCodePoint(0x2e2e)
-
Screenshot 2019-10-21 at 21.49.08.png
Screenshot 2019-10-21 at 21.49.08.png (17.97 KiB) Viewed 4096 times

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Mark menu item as checked

Post by FourthWorld » Mon Oct 21, 2019 8:14 pm

richmond62 wrote:
Mon Oct 21, 2019 7:51 pm
the long list of characters not normally used in menus that you'd posted from Wikipedia.
You may notice that that long list of characters comes with their Unicode addresses, so it would fantastic were it
possible in the same way as I can write:

Code: Select all

on mouseUp
   put numToCodePoint(0x2e2e) into fld "ff"
end mouseUp
to write this (pseudoCode):

set the checkmark to numToCodePoint(0x2e2e)
-
Screenshot 2019-10-21 at 21.49.08.png
Why?

What value is there to the user to fill up the interface with non-standard symbols they've likely never seen used in menus before?

I don't know about the rest of you, but I'd much rather see some nice syntax added to the engine for setting common HIG-compliant menu symbols than push the outer boundaries of practicality in a discussion that grows the scope of implementation beyond actionability.

Can we focus on what we actually need, please?

If you want to invent novel interfaces, stacks can still be used as menus and you have total control over their appearance.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mark menu item as checked

Post by richmond62 » Mon Oct 21, 2019 8:27 pm

If you want to invent novel interfaces
Obviously you, at least, feel that is a mortal sin. 8)

On a more serious note . . .

It would be good if, somehow, we could get more feedback from more users on this question.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Mark menu item as checked

Post by FourthWorld » Mon Oct 21, 2019 8:41 pm

richmond62 wrote:
Mon Oct 21, 2019 8:27 pm
If you want to invent novel interfaces
Obviously you, at least, feel that is a mortal sin. 8)
Not at all. Indeed, I provided you with guidance on how to do exactly that. LC is a wonderfully flexible playground for exploring all sorts of new directions for UI.

But this thread is about making it easier for scripters to deliver HIG-savvy menus that meet user expectations. It's a useful request, and it would be nice to see it supported by the discussion here,

I often mystified how so many threads here about a specific question go off into all sorts of weeds with edge cases and tangents far beyond the OP's original request. It's sometimes fun, but it lowers the value of these forums as a usable support resource.

It would be super cool if new ideas were introduced in new threads.
On a more serious note . . .

It would be good if, somehow, we could get more feedback from more users on this question.
On the question of syntax for the original request, that would be helpful.

On the question of inventing new forms of interfaces, that would be helpful in a new thread.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”