Search found 3245 matches

by bn
Thu Dec 20, 2018 9:19 am
Forum: Announcements
Topic: [ANN] bnGuides alignment tool on livecodeshare
Replies: 11
Views: 1106

Re: bnGuides alignment tool on livecodeshare

Thank you Bogs and Andy,

I am glad you like it.

Kind regards
Bernd
by bn
Tue Dec 18, 2018 4:43 pm
Forum: Announcements
Topic: [ANN] bnGuides alignment tool on livecodeshare
Replies: 11
Views: 1106

[ANN] bnGuides alignment tool on livecodeshare

I have put a stack "bnGuides" on livecodeshare (or access it from "Sample Stacks" from within LC). It is best used as a plugin. http://livecodeshare.runrev.com/stack/918/BnGuides bnGuides.png It helps with visual guides to align objects. It complements the build-in alignment tool. Feedback welcome. ...
by bn
Sun Dec 16, 2018 9:57 am
Forum: Windows
Topic: Using " inside a string.
Replies: 4
Views: 558

Re: Using " inside a string.

Hi Google, use the keyword quote. put this into the message box and hit return put "first word " & quote & " second word " & quote or Klaus has a nifty function for this I think he calls it kwote. on mouseUp put kwote("first word") && "and" && kwote("second word") end mouseUp function kwote pWhatToQ...
by bn
Sat Dec 15, 2018 11:53 am
Forum: Mac OS
Topic: Script editor view problem
Replies: 5
Views: 573

Re: Script editor view problem

Hi Kaveh, did you delete the preference files from folder /Users/userName/Library/Preferences/RunRev ? The files "livecode7.rev" and "livecode.rev" ? When you delete those files (assuming both are there. "livecode7.rev" is for LC 7 and up) Livecode should not be running because otherwise it will rec...
by bn
Tue Dec 04, 2018 2:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Zoom IDE
Replies: 30
Views: 2413

Re: Zoom IDE

bogs made me aware that bnGuides is not working in pre 7.0 LC versions

Here is a version that was saved in LC 5.5 format. (should also work in later versions of LC)

Did not test this version extensively but a first short test seemed to work

Kind regards

Bernd
bnGuides5.5.livecode.zip
(17.91 KiB) Downloaded 36 times
by bn
Sat Dec 01, 2018 11:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Zoom IDE
Replies: 30
Views: 2413

Re: Zoom IDE

Thanks. I don’t mean simple alignment tools like you mentioning mean dynamic alignment tools that appear when you move a field or object around like you can see here..... https://youtu.be/r1UOx0vo_Jc at around the 25 second mark. Can you configure this? I believe someone wrote a plugin to do just t...
by bn
Thu Nov 29, 2018 5:15 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Zoom IDE
Replies: 30
Views: 2413

Re: Zoom IDE

maybe scaleFactor helps

put this into the message box and hit return

Code: Select all

set the scalefactor of stack "myStack" to 0.5
it will shrink your stack, 1.0 is original size and so on
Although this only scales one stack at the time.

Kind regards
Bernd
by bn
Thu Nov 29, 2018 5:06 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: save image from url
Replies: 6
Views: 593

Re: save image from url

I tried this on a Mac/desktop in LC 9.0.2 RC1 and it worked. You have to adapt the code to your code. (e.g. I download to desktop, I use a script local etc.) All code is in the button. I unload before load. Please see also the User Guide for load. (around p 446/447 for the LC 9.0.2 User Guide) The d...
by bn
Mon Nov 26, 2018 8:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: horizontal navigation in a vertical scroller
Replies: 8
Views: 796

Re: horizontal navigation in a vertical scroller

Hi Louis, here is an attempt at two mobile scrollers for your problem. It is not perfect since you have to first click to change the scroller and click again when changing back before you can scroll in the respective scroller. What makes your approach difficult is that mobile does not like two activ...
by bn
Mon Nov 26, 2018 7:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: horizontal navigation in a vertical scroller
Replies: 8
Views: 796

Re: horizontal navigation in a vertical scroller

Hi Louis, if you block the group script and set the card script to global tScrollerRect, tContentRect, tScrollerID on opencard setVScroller end opencard on setVScroller if the environment is "mobile" then put 0,0,375,667 into tScrollerRect put 0,0,375,1841 into tContentRect mobileControlCreate "scro...
by bn
Tue Nov 20, 2018 10:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Calculating Text baselines in pixels
Replies: 15
Views: 1304

Re: Calculating Text baselines in pixels

Hi Hermann, I think most of the variability is the fonts. They vary widely in what they report as baseline, upstroke and downstroke. This affects very much Asian fonts that have other requirements to display and when they display roman/ASCII text this shows. One of the wildest outliers is Zapfino. W...
by bn
Tue Nov 20, 2018 10:17 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Calculating Text baselines in pixels
Replies: 15
Views: 1304

Re: Calculating Text baselines in pixels

Hi Alejandro, here is a very rough stack that determines a lot of measures for fonts. It is not cleaned up but maybe it helps. It uses measureText and formattedText, lets you choose text size and font interactively and indicates with graphics the different values. Kind regard Bernd HowFontsMeasure.l...
by bn
Wed Nov 14, 2018 10:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: field and variable
Replies: 8
Views: 571

Re: field and variable

Hi Propeller,

do you use decimals? If so do you use comma or colon?

a correct decimal would look like

5.2

Do you have any other text/characters in the left field?

Try to clear both fields and then type in the numbers you want.

Kind regards
Bernd
by bn
Wed Nov 07, 2018 8:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to Display Time
Replies: 2
Views: 350

Re: How to Display Time

Hi lemodizon, put this into your button local sRunning = false on mouseUp put the long time into field "timeField" put the system date into field "dateField" if sRunning <> true then put true into sRunning send "doTime" to me in 1 second else put false into sRunning end if end mouseUp on doTime if s...
by bn
Wed Nov 07, 2018 12:01 am
Forum: Talking LiveCode
Topic: Table keywords missing from Dictionary?
Replies: 7
Views: 673

Re: Table keywords missing from Dictionary?

Hi Keith, a tableField is "just" a tab delimited text. Say you want to address cell 2 of column 2 that would be two tab delimited items in line 2 of your tableField on mouseUp set the itemDelimiter to tab -- don't forget this put 2 into item 2 of line 2 of tText put tText into field "yourTableField"...

Go to advanced search