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).
Search found 162 matches
- Thu Apr 07, 2016 1:39 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Shell - continuous output?
- Replies: 10
- Views: 6992
- Mon Apr 27, 2015 7:12 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Slow buffer/lots of repeat
- Replies: 1
- Views: 2231
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...
- Mon Apr 27, 2015 7:08 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Menus and icons
- Replies: 3
- Views: 3169
Re: Menus and icons
Thanks guys, either should work just fine
- Mon Apr 27, 2015 3:47 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Menus and icons
- Replies: 3
- Views: 3169
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 ...
- 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
- 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
on mouseDown
put word 2 of the clickline
end mouseDown
- 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?
- Fri Apr 24, 2015 8:10 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: number of lines inaccurate, sometimes?
- Replies: 5
- Views: 4314
Re: number of lines inaccurate, sometimes?
Yeah it makes sense now
- Fri Apr 24, 2015 7:36 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: number of lines inaccurate, sometimes?
- Replies: 5
- Views: 4314
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
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
- Fri Apr 24, 2015 7:31 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: number of lines inaccurate, sometimes?
- Replies: 5
- Views: 4314
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.
I can have a whole bunch of blank lines, and the last one is not counted.
- Fri Apr 24, 2015 7:20 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: number of lines inaccurate, sometimes?
- Replies: 5
- Views: 4314
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, ...
- 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: 12993
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"
set the width of btn "btnName" to the formattedWidth of btn "btnName"
- 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: 12993
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?
How do I get the width of a buttons label?
- 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
- 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...