Search found 17 matches

by pderocco
Mon Sep 24, 2018 5:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: system date format
Replies: 23
Views: 14927

Re: system date format

I see. Somewhere I saw an example of getting the current time using "system date", not realizing that "date" gets the current time and "system" modifies its format. Never mind.
by pderocco
Sat Sep 22, 2018 12:01 am
Forum: Talking LiveCode
Topic: Limit stack aspect ratio
Replies: 18
Views: 9881

Re: Limit stack aspect ratio

Klaus wrote:
Thu Sep 20, 2018 10:19 am
Hm, looks like noone is actually interested in the solution.
I am interested. That's off in a completely different direction, so I'll get to it when I'm at a good break point. Thanks for the suggestion. I'll let you know if it works for me.
by pderocco
Fri Sep 21, 2018 11:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: system date format
Replies: 23
Views: 14927

system date format

The "convert" command documents the "date" and "short date" formats as month/day/year, where the year is two digits. This is correct. The "system date" and "short system date" functions are documented the same way, but they actually produce a four-digit year. If I had my druthers, "date" and "system...
by pderocco
Wed Sep 19, 2018 12:59 am
Forum: Talking LiveCode
Topic: Limit stack aspect ratio
Replies: 18
Views: 9881

Re: Limit stack aspect ratio

aspect-by-max Presumably this means you want the stack to be the same size as the screenRect . Are you asking about my choice of name? It just means "constrain the aspect ratio by setting maxWidth or maxHeight". As to screenRect, that's the size of the whole screen. Even when a window is maximized,...
by pderocco
Tue Sep 18, 2018 6:02 am
Forum: Talking LiveCode
Topic: Limit stack aspect ratio
Replies: 18
Views: 9881

Re: Limit stack aspect ratio

At this point, I'm not interested in having LiveCode fix the aspect ratio when I release the mouse button, because I'm hoping I can get everything inside the window to resize dynamically as I drag, and I don't want it to resize into something really ugly even if temporary. So I'm not looking for a w...
by pderocco
Mon Sep 17, 2018 10:17 am
Forum: Talking LiveCode
Topic: Limit stack aspect ratio
Replies: 18
Views: 9881

Limit stack aspect ratio

I'm trying to figure out how to place limits on the aspect ratio of a stack, when the user resizes it. I'd like it to be limited to something between 4:3 and 16:9. I'd like it to accomplish this by reducing the height or the width in order to stay within the limits. I've tried all sorts of stuff in ...
by pderocco
Mon Feb 08, 2016 5:42 pm
Forum: Talking LiveCode
Topic: Something's shortening my full-screen window
Replies: 4
Views: 2363

Re: Something's shortening my full-screen window

"startup" gets called, but setting the rectangles in there, when the window size matches the screen size, didn't prevent it from shortening the bottom. "preOpenStack" worked, as you suggested, and I'm not about to try to figure out why the other didn't.
by pderocco
Mon Feb 08, 2016 5:32 am
Forum: Talking LiveCode
Topic: Something's shortening my full-screen window
Replies: 4
Views: 2363

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: 2363

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: 5336

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: 1556

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
Thu Mar 04, 2010 8:15 pm
Forum: Mac OS
Topic: Where to store application data?
Replies: 7
Views: 5551

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: 5551

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: 5551

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: 4933

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.

Go to advanced search