Search found 162 matches

by trenatos
Thu Apr 07, 2016 1:39 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Shell - continuous output?
Replies: 10
Views: 6991

Re: Shell - continuous output?

I don't remember if I tried that.

I gave up on implementing this in LiveCode, it was easier to do in Lazarus (Object Pascal).
by trenatos
Mon Apr 27, 2015 7:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Slow buffer/lots of repeat
Replies: 1
Views: 2229

Slow buffer/lots of repeat

So I'm building an IDE, and it's going quite well. But I've run into a big issue, key buffer/repeat. Basically, the whole thing is sluggish as cold syrup. I have a large scrolling field for the main window, a small field next to it for line display, and trap keys using rawkeydown for things like sav...
by trenatos
Mon Apr 27, 2015 7:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Menus and icons
Replies: 3
Views: 3167

Re: Menus and icons

Thanks guys, either should work just fine :)
by trenatos
Mon Apr 27, 2015 3:47 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Menus and icons
Replies: 3
Views: 3167

Menus and icons

Been looking but not finding. One of the things I'm using menus for, is acting as a boolean setter, you can change some settings simply by clicking them in the menu, simple to trap with a switch. But what I haven't found is how to set icons next to the menu items. So in this case I want to show the ...
by trenatos
Fri Apr 24, 2015 10:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Get location of click in scrolling field
Replies: 5
Views: 4035

Re: Get location of click in scrolling field

In this case I'm mimicking the Sublime IDE mini-map, so with that I can grab the line clicked in the mini-map, multiply by line-height in the target window, and set the scroll to the right position :)
by trenatos
Fri Apr 24, 2015 8:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Get location of click in scrolling field
Replies: 5
Views: 4035

Re: Get location of click in scrolling field

Woo, answering lots of my own questions today.

on mouseDown
put word 2 of the clickline
end mouseDown
by trenatos
Fri Apr 24, 2015 8:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Get location of click in scrolling field
Replies: 5
Views: 4035

Get location of click in scrolling field

Is it possible to get the line number of where a user clicks in a scrolling field?
by trenatos
Fri Apr 24, 2015 7:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: number of lines inaccurate, sometimes?
Replies: 5
Views: 4310

Re: number of lines inaccurate, sometimes?

Ok, I solved it by doing:

if the last character of field "mainInput" is lf then
put the number of lines of field "mainInput" + 1 & cr after temp
end if

All it's for is displaying the line count next to the line, this seems to work for now
by trenatos
Fri Apr 24, 2015 7:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: number of lines inaccurate, sometimes?
Replies: 5
Views: 4310

Re: number of lines inaccurate, sometimes?

It's only when the last line is blank (Has no content)

I can have a whole bunch of blank lines, and the last one is not counted.
by trenatos
Fri Apr 24, 2015 7:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: number of lines inaccurate, sometimes?
Replies: 5
Views: 4310

number of lines inaccurate, sometimes?

I'm trying to count the number of lines of a scrolling field (Without wrapping) There are two ways I know of, the number of lines of field "input", and the second is setting the itemdelimiter and counting items. But both of these seem inaccurate. As I hit enter/backspace, adding and removing lines, ...
by trenatos
Fri Apr 24, 2015 2:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set button width to the width of its label?
Replies: 25
Views: 12978

Re: Set button width to the width of its label?

Hah, I just found it..

set the width of btn "btnName" to the formattedWidth of btn "btnName"
by trenatos
Fri Apr 24, 2015 2:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Set button width to the width of its label?
Replies: 25
Views: 12978

Set button width to the width of its label?

I'm programmatically creating buttons, but I can't figure out how to set the width of the button to the width of its label programmatically.

How do I get the width of a buttons label?
by trenatos
Sat Apr 18, 2015 2:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 9343

Re: Evaluate string?

Then you could easily write tests for those files with this engine
by trenatos
Sat Apr 18, 2015 1:51 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Evaluate string?
Replies: 15
Views: 9343

Re: Evaluate string?

Originally I wrote it for testing only CFML code, but with a couple of tweaks I could test any code, so I had the idea of moving from a CFML-based implementation, which requires you to run an OpenBD CFML server, to a multi-platform GUI application with no special pre-requisites. Ironically I won't b...

Go to advanced search