Search found 44 matches

by pderocco
Mon Feb 08, 2016 5:32 am
Forum: Talking LiveCode
Topic: Something's shortening my full-screen window
Replies: 4
Views: 632

Re: Something's shortening my full-screen window

Turns out "on startup" didn't work, even in the standalone. But setting it in "preOpenStack" worked fine. Thanks.
by pderocco
Sun Feb 07, 2016 8:46 am
Forum: Talking LiveCode
Topic: Something's shortening my full-screen window
Replies: 4
Views: 632

Something's shortening my full-screen window

I have an app compiled with 7.1.1 that presents a fixed 1280x800 window. On a Mac with a 1280x800 screen, I can get this to fit with set the rect of stack "main" to "0,20,1280,800" This positions it so that its title bar is covered by the system menu bar, which is fine because the app name isn't imp...
by pderocco
Mon Jan 06, 2014 9:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Single line text entry field
Replies: 9
Views: 2363

Re: Single line text entry field

I know this topic is a bit stale, but I discovered another issue: even if you trap enter/return, you can still paste multi-line text into the field. To prevent this, you need to trap pasteKey as well. (And BTW, pasteKey doesn't get trapped in the IDE unless you suspend development tools.) Since no o...
by pderocco
Sat May 15, 2010 5:02 pm
Forum: Talking LiveCode
Topic: Location of stack
Replies: 1
Views: 491

Location of stack

In my program, I write the location of my stack (among other things) to a text file on exit, and then read it and set the location on startup. This works correctly on Windows, but on the Mac, the window moves up by 12 pixels every time. This happens both when I run the .rev file or when I run my sta...
by pderocco
Wed Apr 28, 2010 9:27 pm
Forum: Feature Proposals
Topic: Slight improvement to external binding mechanism
Replies: 3
Views: 1139

Re: Slight improvement to external binding mechanism

Why not just give the external the same name on each platform? I don't know that you can actually do that. I believe on the Mac, the ".bundle" extension is what tells the system to treat what's physically a directory with subdirectories as a single object. And on Windows, I don't know that it's pos...
by pderocco
Wed Apr 28, 2010 6:22 am
Forum: Feature Proposals
Topic: Slight improvement to external binding mechanism
Replies: 3
Views: 1139

Slight improvement to external binding mechanism

Currently (at least in 3.5), when you bind an external to a stack, you specify the entire name of the file containing the external. Since this name has a different extension for different platforms, you can't just set the externals property, save the file (or build standalones), and have it work in ...
by pderocco
Wed Apr 28, 2010 6:18 am
Forum: Feature Proposals
Topic: MIDI built in
Replies: 4
Views: 1513

MIDI built in

MIDI has been discussed here and in other forums, including by me. I'd just like to mention that it's really the sort of thing that ought to be built-in, so that received MIDI messages just automatically invoke a built-in event in the main stack. There's so much multimedia support in Rev that it see...
by pderocco
Wed Apr 28, 2010 6:14 am
Forum: Feature Proposals
Topic: Send and Receive MIDI !!
Replies: 15
Views: 6452

Re: Send and Receive MIDI !!

With RunRev, is there a way to send and receive MIDI data via a USB to Midi interface connected to the Mac? I managed to do output with an external, both for the Mac and for Windows. The best I was able to do for input was to capture input into a software FIFO, and then have a timer message in Revo...
by pderocco
Thu Mar 04, 2010 8:15 pm
Forum: Mac OS
Topic: Where to store application data?
Replies: 7
Views: 2120

Re: Where to store application data?

The problem with putting things there is that Win Vista and Win7 prevent you from writing to data files in the Programs tree. That's why you now have to put things into the application data part of the tree. By the way, for what you want to do, you can generate the pathnames more simply just by appe...
by pderocco
Wed Mar 03, 2010 5:35 am
Forum: Mac OS
Topic: Where to store application data?
Replies: 7
Views: 2120

Re: Where to store application data?

Thanks. Unfortunately, I don't have a Mac handy, as I do all my development on Windows. Is it customary for each software vendor to create a subfolder under that folder, with the same name as the company, and then put its stuff inside that? Are blanks in the folder names usually avoided? I'd just li...
by pderocco
Wed Mar 03, 2010 4:20 am
Forum: Mac OS
Topic: Where to store application data?
Replies: 7
Views: 2120

Where to store application data?

I have a Win/Mac standalone, which stores its configuration data in a file. In Windows, I can put it in $APPDATA under a company name subfolder. What's the equivalent on OS X?
by pderocco
Tue Mar 02, 2010 7:02 pm
Forum: Building Externals
Topic: SendCardMessage questions
Replies: 3
Views: 2590

Re: SendCardMessage questions

Excellent answer. I guess it means that I can't do what I had hoped. It suprises me, though, that you can't post a message to Rev's event queue from another thread, because it is so easy to make thread get/put operations thread safe with a simple mutex. Oh well, thanks for your clear explanation.
by pderocco
Tue Mar 02, 2010 8:07 am
Forum: Building Externals
Topic: SendCardMessage questions
Replies: 3
Views: 2590

SendCardMessage questions

1) Does this require a freshly allocated string as its first parameter, which Revolution takes ownership of and eventually deletes? Or does it copy the data out of it, in which case the caller would have to delete it if it was dynamically allocated? 2) What context can this be called from? I would a...
by pderocco
Fri May 16, 2008 10:00 am
Forum: Building Externals
Topic: MIDI input events
Replies: 4
Views: 7581

MIDI input events

It's easy enough to see how to use an external to generate MIDI, since it's just a synchronous call to some OS API. But for input, at least in Windows, MIDI is handled by the device driver sending each received MIDI message to the application as an event, and I assume the Mac is more or less the sam...

Go to advanced search