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

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 » Sat Oct 19, 2019 6:15 pm

richmond62 wrote:
Sat Oct 19, 2019 6:02 pm
checksign sounds OK,

although you could use tick.

tick is a reserved word too. tickmark would be possible.
I think I will go with checksign. Unless tickmark would be more popular. (one vote for and none against would count as popular).



Kind regards
Bernd

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

Re: Mark menu item as checked

Post by richmond62 » Sat Oct 19, 2019 7:05 pm

Stick with checksign, as tickmark
sounds a bit like Ostmark. 8)
-
badMark.jpg
badMark.jpg (13.3 KiB) Viewed 6434 times
-
I am not sure why you are anti adjectives as most Object Properties are adjectives . . .

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Mark menu item as checked

Post by bogs » Sat Oct 19, 2019 7:17 pm

Actually, since your soliciting opinions, I wouldn't be thinking along the lines of a noun but an adjective, like
set the checked of menuItem x to (true/false)
seems pretty appropriate for this language.
Image

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

Re: Mark menu item as checked

Post by richmond62 » Sat Oct 19, 2019 7:27 pm

an adjective, like
set the checked of menuItem x to (true/false)
seems pretty appropriate for this language.
That sounds the best idea so far.
soliciting opinions
Erm . . . decided NOT to post an extremely vulgar picture here. 8)

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Mark menu item as checked

Post by bogs » Sat Oct 19, 2019 7:34 pm

:mrgreen: :mrgreen:
Image

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 » Sat Oct 19, 2019 8:06 pm

checked is nice but what about

diamond and checkmark.png
which one is checked
?

Kind regards
Bernd

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

Re: Mark menu item as checked

Post by richmond62 » Sat Oct 19, 2019 8:14 pm

Americans will call this:

a check, while people from Britain will call that a tick.

The other thing is a diamond.

So, let this be checked,

and this be marked or bulleted or somesuch.

Pedantic sorts will call that diamond a diamond bullet.

https://en.wikipedia.org/wiki/Bullet_(typography)

Just as long as we steer clear of this:
-
Screenshot 2019-10-19 at 22.22.25.png
Screenshot 2019-10-19 at 22.22.25.png (7.52 KiB) Viewed 6401 times
Last edited by richmond62 on Sat Oct 19, 2019 8:23 pm, edited 1 time in total.

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 » Sat Oct 19, 2019 8:21 pm

richmond62 wrote:
Sat Oct 19, 2019 8:14 pm

and this be marked or bulleted or somesuch.
may be diamonized

???

Kind regards
Bernd

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

Re: Mark menu item as checked

Post by richmond62 » Sat Oct 19, 2019 8:23 pm

demonized, perhaps? :D

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 » Sat Oct 19, 2019 10:35 pm

Bullets can be added to menu items by preceding the item text with "!r" (radio, reflecting the original usage as spec'd in OSes that support it).

If we add a command to set the checkmark, ideally it would also set the radio bullet as well.

It would be nice to also add support for a dash, used to indicate when we item is one of many that apply, such as with text styles.
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: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mark menu item as checked

Post by richmond62 » Sun Oct 20, 2019 10:39 am

Bullets,

Checkmarks (ticks),

Diamonds,

et al.

Why not "go the whole hog" and have a family of terms to allow us to apply
all sorts of symbols?

Back to Wikipedia:
-
Screen Shot 2019-10-20 at 12.38.49 PM.png
-
Oh, and the checkmark with which we started, which for some reason, forbye. is not included in
the Wikipedia list.

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 11:27 am

richmond62 wrote:
Sun Oct 20, 2019 10:39 am
Bullets,

Checkmarks (ticks),

Diamonds,

et al.

Why not "go the whole hog" and have a family of terms to allow us to apply
all sorts of symbols?
Tics and diamonds are used in menus whereas those other "bullets" are not. It might be a tad confusing for the user in menus.


however in other places they are quite useful

folding.jpg

Kind regards
Bernd

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

Re: Mark menu item as checked

Post by richmond62 » Sun Oct 20, 2019 1:56 pm

As we have Visual Effects in LiveCode:

Code: Select all

on mouseUp
visual effect"checkerboard"
go next
end mouseUp
Why don't we have a raft of Checkmarks in LiveCode:

pseudocode

set the checkmark of menuItem to "hollow bullet"

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 6:08 pm

richmond62 wrote:
Sun Oct 20, 2019 10:39 am
Why not "go the whole hog" and have a family of terms to allow us to apply
all sorts of symbols?
Because we're looking for a practical solution to an actual need.

Adding symbols to the request that no one needs and are found in no OS HIG is a good way to turn a practical feature request into a parlour game that will reduce if not eliminate the likelihood of implementation.
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: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Mark menu item as checked

Post by richmond62 » 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
diamond and checkmark.png (46.02 KiB) Viewed 6220 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”