Search found 3316 matches

by bn
Sun Oct 20, 2019 11:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

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 a...
by bn
Sat Oct 19, 2019 8:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

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

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

???

Kind regards
Bernd
by bn
Sat Oct 19, 2019 8:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

checked is nice but what about

diamond and checkmark.png
which one is checked
?

Kind regards
Bernd
by bn
Sat Oct 19, 2019 6:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

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
by bn
Sat Oct 19, 2019 5:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

richmond62 wrote:
Sat Oct 19, 2019 5:54 pm
star
well it is not a star. Mind you there are different ways to mark a menu item.

set the star of menuItem pItem of button xyz

sounds strange,

May be checksign?

Kind regards
Bernd
by bn
Sat Oct 19, 2019 5:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

richmond62 wrote:
Sat Oct 19, 2019 5:32 pm
Um . . .

used


selected
(well, maybe not, that would cause confusion)

starred
how about a noun? something similar to checkmark but not chequemark... nor cheekmark, nor cheesemark.

Kind regards
Bernd
by bn
Sat Oct 19, 2019 5:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

@Richmond

Since 'checkmark' is a reserved name we can not use it in LC. How would you name a pseudo property of the menus instead of 'checkmark'?

I am still refining a more generalized solution to the problem and sollicit input on how to name it.

Kind regards
Bernd
by bn
Sat Oct 19, 2019 12:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 2028

Re: Preventing duplicate input

Hi Jeff, You could use get FlushEvents() to cancel all mouse events that occur during processing. Please look at the dictionary for the details. on mouseDown put "success 2" into fld "ff" wait one second get flushevents("all") -- flushes all system events, go next card end mouseDown Kind regards Bernd
by bn
Sat Oct 19, 2019 12:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

here is a stack that sums it all up

It has some refinements over the scripts I posted above. Please use this stack.

The card script contains the working code for the buttons which just invoke that code.

Kind regards
Bernd
by bn
Fri Oct 18, 2019 4:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

this are two helper handlers for Multiple Choices buttons it lets you find out the state of the button with mulitple choices and returns the state of the currently clicked item getProp ChoiceIsActive return line (the menuHistory of the target) of the text of the Target begins with "!c" end ChoiceIsA...
by bn
Fri Oct 18, 2019 4:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

Here are some code snippets that may help in handling popUp, pullDown, and Menu buttons This allows for a single choice in above buttons on menuPick pItem set the checkChoice of me to pItem end menuPick setProp checkChoice pItem local tText put the text of me into tText replace "!c" with empty in tT...
by bn
Fri Oct 18, 2019 4:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 3578

Re: Mark menu item as checked

Here are some code snippets that may help in handling popUp, pullDown, and Menu buttons This allows for multiple choices in above buttons put this into the script of above buttons use set the toggleChoice of me to pItem to toggle the checkmark use put the ChoiceIsActive of me into tIsActive to check...
by bn
Thu Oct 10, 2019 11:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Various ways of matching a line
Replies: 7
Views: 953

Re: Various ways of matching a line

Hi Michael, here is an example to turn your data into an array. It supposes that your data is in a field. I take it as it is as words separated by spaces 1 heather founder 42 mary engineer 3 john intern 2 pat CEO 5 bob accountant on mouseUp local tData, tArray put field 1 into tData put tData into t...
by bn
Wed Oct 02, 2019 10:34 am
Forum: Android Deployment
Topic: Searching in documents folder at Android
Replies: 8
Views: 1173

Re: Searching in documents folder at Android

I missed that

Thanks Klaus
by bn
Tue Oct 01, 2019 11:01 pm
Forum: Android Deployment
Topic: Searching in documents folder at Android
Replies: 8
Views: 1173

Re: Searching in documents folder at Android

Hi Urosch, the idea is to fill the script local variable when you start your search, i.e on openField on openField if the text of me is "Nach Profilen suchen" then set the textColor of me to "black" put empty into me set the defaultFolder to specialFolderPath("documents") -- do your filling of the s...

Go to advanced search