Search found 3847 matches

by bn
Sun Jan 28, 2024 1:50 pm
Forum: Talking LiveCode
Topic: Date Picker localisation
Replies: 17
Views: 1597

Re: Date Picker localisation

It turns out that you can only set the monthNames if the "namesToUse" are set to "Custom" this works for me with widget DatePicker on mouseUp pButtonNumber set the namesToUse of widget 1 to "Custom" set the weekStartsOn of widget 1 to "Sunday" set the "MonthNames" of widget 1 to "JAN,FEB,MAR,APR,MAY...
by bn
Wed Jan 17, 2024 4:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Importing an image via a button into a different stack?
Replies: 2
Views: 558

Re: Importing an image via a button into a different stack?

Richmond, this works for me. on mouseUp put the topStack into STAKK if (the short name of this stack) is STAKK or STAKK is empty then answer "activate the target stack first" with "Ok" exit mouseUp end if answer file "Select image:" if the result is not cancel then set the lockscreen to true set the...
by bn
Sun Jan 14, 2024 9:29 pm
Forum: HTML5
Topic: Does anyone know of a Scrollbar widget suitable for us with HTML5?
Replies: 5
Views: 177514

Re: Does anyone know of a Scrollbar widget suitable for us with HTML5?

Hi David, What I see is fields with vertical scrollbars and probably a group with a vertical scroll bar. Those take the "motif" look on web (html) since there are no translations to web apps. Livecode provides new controls that look good on web like PolyList and PolyGrid. They look the same as in th...
by bn
Fri Jan 05, 2024 9:56 am
Forum: HTML5
Topic: Does anyone know of a Scrollbar widget suitable for us with HTML5?
Replies: 5
Views: 177514

Re: Does anyone know of a Scrollbar widget suitable for us with HTML5?

Hi David,

Could you specifiy what kind of scrollbar you need. I did some scrollbars for "web" exactly for the reason you cite.

Maybe a small screenshot of the scrollbar you have in mind?

Kind regards
Bernd
by bn
Mon Jan 01, 2024 11:11 pm
Forum: Talking LiveCode
Topic: Thanks for all the fish
Replies: 2
Views: 42139

Re: Thanks for all the fish

Thanks Mark for this generous offer.

There are many gems inside those. Even if you only use the Script Profiling feature to test your code for bottlenecks it is well worth downloading those stacks.

Kind regards
Bernd
by bn
Mon Dec 25, 2023 4:49 pm
Forum: Talking LiveCode
Topic: How to detect CMD-V in the SE
Replies: 8
Views: 109859

Re: How to detect CMD-V in the SE

Craig, in case you want to try to change 'actionPaste': -- more code textEndGroup set the backColor of char tFrom to tFrom + length(the clipboardData["text"]) of field "Script" of me to "yellow" ## add this line unlock screen end actionPaste It sets the backColor, if you want to paste repeatedly you...
by bn
Sun Dec 24, 2023 11:40 am
Forum: Talking LiveCode
Topic: How to detect CMD-V in the SE
Replies: 8
Views: 109859

Re: How to detect CMD-V in the SE

@Dunbarx, You would probably like to look at handler actionPaste in stack "com.livecode.scripteditor.behavior.editorcommon" For me the easiest is to open the stack via the Properties Inspector with "Show IDE Stacks in Lists" turned on. Whatever you do it will probably confuse the Script Editor. Kind...
by bn
Wed Dec 20, 2023 11:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Script widget - traversalOn woes [SOLVED]
Replies: 9
Views: 121588

Re: Script widget - traversalOn woes [SOLVED]

Hi Stam, Thanks for making this very nifty and useful widget. As does the tabKey handler (although I'm not sure why lockMessages is needed - but hey, if it works I'm not questioning it :) and more importantly does not stop the fieldAction message from being emitted which was my concern). Try to remo...
by bn
Tue Dec 19, 2023 1:59 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Script widget - traversalOn woes [SOLVED]
Replies: 9
Views: 121588

Re: Script widget - traversalOn woes

Hi Stam, I am embarrassed that I did not read your reply carefully, I was in a hurry, sorry about that. Re tabbing out: it works if you have the placeholder text showing but not when there is text in the text field. It is probably a matter of taste whether you should be able to tab out of your text ...
by bn
Mon Dec 18, 2023 7:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Script widget - traversalOn woes [SOLVED]
Replies: 9
Views: 121588

Re: Script widget - traversalOn woes

bn wrote:
Mon Dec 18, 2023 3:44 pm
Those the important changes that set traversalOn working right while the widget is build.
Also when placing the widget on a new stack.
They might cure your woes...

You made no mention of it so I thought you might have overlooked them.
Kind regards
Bernd
by bn
Mon Dec 18, 2023 5:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Script widget - traversalOn woes [SOLVED]
Replies: 9
Views: 121588

Re: Script widget - traversalOn woes

Hi Stam, If you want the user to be able to tab out of the widget add on tabKey lock messages pass tabKey unlock messages end tabKey Seems to work without untoward effects in short testing. Please note that if it is a password field then the moving of "placeholder text" is visible behind the right s...
by bn
Mon Dec 18, 2023 3:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Script widget - traversalOn woes [SOLVED]
Replies: 9
Views: 121588

Re: Script widget - traversalOn woes

Hi Stam, change handler setTraversalOn to command setTraversalOn set the traversalOn of the owner of me to the widgetTraversalOn of me end setTraversalOn There is something going on with referencing in Script Widgets https://quality.livecode.com/show_bug.cgi?id=24455 change handler openControl to on...
by bn
Sun Dec 17, 2023 9:50 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 62
Views: 1075938

Re: Send the Stack to the Center of the screen.

Here is a stack that simplifies setting the loc of a scaled stack. I has a handler 'setLocation' that is generic enough to be used in other projects (button 'setLoc') After Stam's very useful explanation and sample stack at the beginning of this topic I figured that a simple way to handle moving sca...
by bn
Thu Dec 14, 2023 2:13 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 62
Views: 1075938

Re: Send the Stack to the Center of the screen.

Hi Stam, as far as I understand this: on mobile the keyboard pops up in certain situations and the deveoper might want to move things around in that situation. Hence it is for mobile since this does not happen on desktop Working screenrect is the permanently available area of the screen. Effective a...
by bn
Thu Dec 14, 2023 1:12 pm
Forum: Talking LiveCode
Topic: Send the Stack to the Center of the screen.
Replies: 62
Views: 1075938

Re: Send the Stack to the Center of the screen.

I'm not sure I understand how the effective screenRect is different from the screenRect though... Would it be appropriate to include this tidbit in the screenRect's dictionary entry? The actual text in Description of this entry is a bit laconic and perhaps impenetrable to new users... As with many ...

Go to advanced search