Search found 1694 matches

by [-hh]
Fri Aug 17, 2018 3:25 pm
Forum: LiveCode Builder
Topic: Default Script
Replies: 9
Views: 257

Re: Default Script

Setting a default script never worked correctly for me. It is much easier to set a widget script in your widget in "OnOpen". public handler OnOpen() ... post "if the script of me is empty then set script of me to " & myScript() end handler handler myScript () returns String --> use \q for quote, \n ...
by [-hh]
Fri Aug 10, 2018 11:06 pm
Forum: LiveCode Builder
Topic: My Button Bar
Replies: 6
Views: 267

Re: My Button Bar

I'll update all my widgets after the first final release of 9.1, hoping LCB has some more elementary features until then (mouse and keyboard support).
by [-hh]
Fri Aug 10, 2018 5:19 pm
Forum: LiveCode Builder
Topic: My Button Bar
Replies: 6
Views: 267

Re: My Button Bar

To 1. Keep the rects (not the locs) in a list mGridRects and find the clicked rect in OnMouseDown : put the click position into mClickLoc put gridCellWithin(mClickLoc) into mClickedRect handler gridCellWithin(in pPoint as Point) returns Number variable tC as Number repeat with tC from 1 up to the n...
by [-hh]
Thu Aug 09, 2018 10:12 am
Forum: LiveCode Builder
Topic: Big bunch of questions
Replies: 7
Views: 223

Re: Big bunch of questions

1-can I / how do I wrap text in a widget? 2-if I put text into a rect, and the text is to long to stay within the rect, how can I cut it off? 3-can I (and how) can I align text (e.g. center or right-align) 4-are there any functions built in for drawing SVGs within an widget? 5-are there any easy me...
by [-hh]
Tue Aug 07, 2018 12:22 pm
Forum: LiveCode Builder
Topic: Canvas
Replies: 7
Views: 273

Re: Canvas

AFAIK there is no closed list of such handlers.
I use as a thumb rule: All handlers must be public that handle LCB messages starting with "On".
OnAttach, OnClick, ..., OnVisibilityChanged. See the examples in the Dictionary.
by [-hh]
Tue Aug 07, 2018 11:03 am
Forum: LiveCode Builder
Topic: Canvas
Replies: 7
Views: 273

Re: Canvas

Max, before you waste time with testing public/private:
For *user-variables* and *user-handlers* being public is not yet implemented in LCB ...
by [-hh]
Sun Aug 05, 2018 2:05 pm
Forum: LiveCode Builder
Topic: Parse to number error
Replies: 5
Views: 163

Re: Parse to number error

The built-in "baseConvert" returns a string, not a number (and is limited to base 32).
So, nevertheless, you need the "parse as number" (or for bases > 32 the above offset-technique).
by [-hh]
Sun Aug 05, 2018 10:02 am
Forum: LiveCode Builder
Topic: Parse to number error
Replies: 5
Views: 163

Re: Parse to number error

You could also try the following. handler hexToDec(in pText as String) returns Number variable tChar as String variable hexChars as String variable tNum as Number variable tSum as Number variable tCount as Number put 0 into tSum put the number of chars in pText into tCount put "0123456789ABCDEF" int...
by [-hh]
Sat Jul 14, 2018 6:13 pm
Forum: Bug Triage
Topic: Graphic won't resize properly
Replies: 3
Views: 287

Re: Graphic won't resize properly

Hi SparkOut.
This is the wanted behaviour if the optionKey is down. Did you already check your keyboard?
by [-hh]
Tue Jul 10, 2018 11:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Browser Widget
Replies: 9
Views: 441

Re: Browser Widget

... place an object over the browser .. How to do that on top of a video running in a browser widget: http://forums.livecode.com/viewtopic.php?p=152773#p152773 If the video doesn't load then replace "hh.on-rev.com" with "hyperhh.de" in the htmltext of the widget or use any URL in the browser widget...
by [-hh]
Sat Jun 30, 2018 1:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Create hexagonal grid
Replies: 1
Views: 221

Create hexagonal grid

The attached simple demo stack creates a hexagonal grid. You can set the number of rows the number of cols the horizontal radius of the circumellipses the vertical radius of the circumellipses choose a flat or pointed top of the hexagons Moreover you get the grid element's name by mouseEnter and can...
by [-hh]
Sat Jun 23, 2018 10:17 am
Forum: HTML5
Topic: Wrappers and spinners
Replies: 4
Views: 589

Re: Wrappers and spinners

by [-hh]
Tue Jun 12, 2018 2:30 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Dragging text into a web form within the browser widget
Replies: 1
Views: 322

Re: Dragging text into a web form within the browser widget

1. Copy/Paste-Desktop (cmd-c/v,ctrl-c/v): Yes.

2. Copy/Paste-Mobile (use system-clipboard): Yes, you may make a copy button.

3. Drag&Drop-Desktop:
Yes, if the webpage supports it (non-simple JS scripts or newer HTML5 support).

4. Drag&Drop-Mobile: Generally No (independent of LiveCode).
by [-hh]
Sat Jun 09, 2018 8:40 am
Forum: Bug Triage
Topic: Base64decode causing decrypt fault on Android?
Replies: 19
Views: 1534

Re: Base64decode causing decrypt fault on Android?

Did you already try to
        replace linefeed with empty
after base64Encode ?
by [-hh]
Tue May 22, 2018 11:12 pm
Forum: HTML5
Topic: ios keyboard popping up
Replies: 7
Views: 1578

Re: ios keyboard popping up

the app does work on Mobile(iPad) except for this. That's probably one reason that HTML5 standalones are not advertised for mobile usage. I was hoping some javascript expert could rescue us. It is very simple to catch events by JavaScript. But for using these catched events you better write the who...

Go to advanced search