Search found 3293 matches

by bn
Wed Nov 13, 2019 8:29 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Here's how to drag-reorder lines in a list field
Replies: 13
Views: 695

Re: Here's how to drag-reorder lines in a list field

This is a version of drag-reorder that also keeps formatting of textStyles this time using htmlText It is functionally equivalent to the version above that uses styledText. local sClicked, sMovingText, sLastLineNum on mousedown put word 2 of the mouseLine into sClicked put the htmlText of line sClic...
by bn
Tue Nov 12, 2019 9:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Here's how to drag-reorder lines in a list field
Replies: 13
Views: 695

Re: Here's how to drag-reorder lines in a list field

If you want to preserve styles (like bold, underline, italic etc) when reordering then this script might be helpful local sClicked, sArray, sMovingText, sLastLineNum on mousedown put word 2 of the mouseLine into sClicked put the styledText of me into sArray put sArray[sClicked] into sMovingText put ...
by bn
Sun Nov 03, 2019 2:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can't get a border around a button
Replies: 38
Views: 1874

Re: Can't get a border around a button

Bernd, All of the graphics effects are already arrays, and like any array, you can set any individual key of that array. For example - set the outerGlow["color"] of button 1 to "red" works just as well as putting a whole new array together :wink: Thanks bogs, I always used arrays, but that is a goo...
by bn
Sun Nov 03, 2019 12:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Can't get a border around a button
Replies: 38
Views: 1874

Re: Can't get a border around a button

(6) Try to resurrect the border again: "set the outerglow["color"] of graphic myGraphic to silver" >> Error: "Can't set object property." Give up. LC is a really weird mixture of super easy and ridiculously difficult. Michael, you have to set the color or any other property of outerglow by filling ...
by bn
Mon Oct 21, 2019 2:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 1122

Re: Preventing duplicate input

Hi Jeff,

in the stack script

Code: Select all

   wait 500 milliseconds
   get flushEvents("all") -- <-- ADD This
   doGoNextItem tThisItemNum
end doLickertResponseBtn
seems to do the trick

Kind regards
Bernd
by bn
Sun Oct 20, 2019 10:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 1813

Re: Mark menu item as checked

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 o...
by bn
Sun Oct 20, 2019 8:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Mark menu item as checked
Replies: 53
Views: 1813

Re: Mark menu item as checked

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

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

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

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

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

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

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

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

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

Go to advanced search