Search found 189 matches

by pink
Thu Feb 21, 2019 6:23 pm
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 13
Views: 259

Re: Drawing Hexagons

Honestly not sure if there is an advantage... I've been trying to replace more parts of my stacks with homemade widgets partially as a programming exercise, but also because it is can really clean up my scripts. The game board is 37 hexagons, and to resize each one, and then position them properly r...
by pink
Thu Feb 21, 2019 2:31 am
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 13
Views: 259

Re: Drawing Hexagons

Hermann - is there an easy way to rotate this polygon by 90 degrees? I tried the below code, when I add the rotate code, the hex flies off the canvas (it's not visible at all at 90 degrees, if I change it to 45 degrees, it is partially visible off to the side) put polygon path with points regularPoi...
by pink
Wed Feb 20, 2019 9:09 pm
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 13
Views: 259

Re: Drawing Hexagons

Hermann - Thanks, i will most definitely give that a try

Richard - Yes, making a game board, sort of a hexagonal version of 2048
by pink
Wed Feb 20, 2019 3:23 pm
Forum: LiveCode Builder
Topic: Drawing Hexagons
Replies: 13
Views: 259

Drawing Hexagons

I am ultimately going to make a widget with a pattern of hexagons, so far I have created the "center" hexagon and will draw the rest around it... before I repeat this 36 more times, is there a simpler way than what I have below? is it possible after creating the first polygon and filling it, to just...
by pink
Mon Feb 18, 2019 5:08 pm
Forum: LiveCode Builder
Topic: Popup field?
Replies: 2
Views: 126

Popup field?

I want to be able to create a "form" widget. It was suggested to me that I could popup a field for the user to edit text which can then get saved back into the widget.

Is this true? if so, how do I do this?
by pink
Sat Dec 15, 2018 9:24 pm
Forum: LiveCode Builder
Topic: Add new properties without blowing up existing
Replies: 2
Views: 261

Re: Add new properties without blowing up existing

Okay, that is what I needed... should've read that closer...
by pink
Sat Dec 15, 2018 8:10 pm
Forum: LiveCode Builder
Topic: Add new properties without blowing up existing
Replies: 2
Views: 261

Add new properties without blowing up existing

Okay, so here's my next problem... I updated a widget that I've been using in projects and added a property: property showTitle get mShowTitle set setshowTitle metadata showTitle.editor is "com.livecode.pi.boolean" metadata showTitle.default is "false" metadata showTitle.section is "Text" private va...
by pink
Sat Dec 15, 2018 7:52 pm
Forum: LiveCode Builder
Topic: Updating a widget in use
Replies: 2
Views: 262

Re: Updating a widget in use

okay, restarting Livecode definitely was the step I needed
by pink
Sun Dec 09, 2018 5:59 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 5
Views: 457

Re: Default handler list

As an example, on the "Segmented Control" widget, there is the "hiliteChanged" handler, and on the "Tree View" widget there is "actionDoubleClick, actionInspect, dataChanged, hiliteChanged" handlers listed. I would like to add handlers such as these to the list on the left when I open the script edi...
by pink
Sun Dec 09, 2018 12:02 pm
Forum: LiveCode Builder
Topic: Default handler list
Replies: 5
Views: 457

Default handler list

I can't seem to get this working.

How do I add custom handlers to the handler list? Or builtin handlers for that matter?
by pink
Sun Dec 09, 2018 11:52 am
Forum: LiveCode Builder
Topic: Updating a widget in use
Replies: 2
Views: 262

Updating a widget in use

So I have a widget I created that I am currently using in several stacks. How do I test and install changes to a widget without messing up my stacks? Let me give an example... I have a widget where I needed to add "pass onMouseMove" in the script in order to make it move (obviously). So my procedure...
by pink
Fri Aug 24, 2018 5:21 pm
Forum: LiveCode Builder
Topic: com.livecode.widget.ColorPicker
Replies: 17
Views: 1549

Re: com.livecode.widget.ColorPicker

Is it working in LC9 yet?
by pink
Wed Aug 22, 2018 8:50 pm
Forum: LiveCode Builder
Topic: Timer not working
Replies: 3
Views: 409

Re: Timer not working

ok, it was another error in the dictionary... should be "schedule timer in 1 seconds" not "schedule timer in 1 second"
by pink
Wed Aug 22, 2018 8:40 pm
Forum: LiveCode Builder
Topic: Timer not working
Replies: 3
Views: 409

Timer not working

I'm trying to create a "button" that can be held down to increment a number my plan was to use mouseDown to initiate a timer, but I keep getting a compile error so really I have 2 questions: 1. how do I need to work my "schedule timer" command 2. is there a better way to try and hold down a button? ...
by pink
Wed Aug 22, 2018 6:50 pm
Forum: LiveCode Builder
Topic: com.livecode.widget.ColorPicker
Replies: 17
Views: 1549

Re: com.livecode.widget.ColorPicker

I was mostly just trying to make the example work, though a color picker would be a great widget

so for a popup widget... do i need to program the widget separately to return the value to the parent? I'm ssuming I can't just use any widget since there needs to be some way to get a specific value...

Go to advanced search