Search found 17 matches
- Mon Sep 24, 2018 5:11 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: system date format
- Replies: 23
- Views: 15111
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.
- Sat Sep 22, 2018 12:01 am
- Forum: Talking LiveCode
- Topic: Limit stack aspect ratio
- Replies: 18
- Views: 9999
- Fri Sep 21, 2018 11:33 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: system date format
- Replies: 23
- Views: 15111
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...
- Wed Sep 19, 2018 12:59 am
- Forum: Talking LiveCode
- Topic: Limit stack aspect ratio
- Replies: 18
- Views: 9999
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,...
- Tue Sep 18, 2018 6:02 am
- Forum: Talking LiveCode
- Topic: Limit stack aspect ratio
- Replies: 18
- Views: 9999
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...
- Mon Sep 17, 2018 10:17 am
- Forum: Talking LiveCode
- Topic: Limit stack aspect ratio
- Replies: 18
- Views: 9999
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 ...
- Mon Feb 08, 2016 5:42 pm
- Forum: Talking LiveCode
- Topic: Something's shortening my full-screen window
- Replies: 4
- Views: 2379
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.
- Mon Feb 08, 2016 5:32 am
- Forum: Talking LiveCode
- Topic: Something's shortening my full-screen window
- Replies: 4
- Views: 2379
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.
- Sun Feb 07, 2016 8:46 am
- Forum: Talking LiveCode
- Topic: Something's shortening my full-screen window
- Replies: 4
- Views: 2379
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...
- Mon Jan 06, 2014 9:34 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Single line text entry field
- Replies: 9
- Views: 5352
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...
- Sat May 15, 2010 5:02 pm
- Forum: Talking LiveCode
- Topic: Location of stack
- Replies: 1
- Views: 1568
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...
- Thu Mar 04, 2010 8:15 pm
- Forum: Mac OS
- Topic: Where to store application data?
- Replies: 7
- Views: 5582
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...
- Wed Mar 03, 2010 5:35 am
- Forum: Mac OS
- Topic: Where to store application data?
- Replies: 7
- Views: 5582
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...
- Wed Mar 03, 2010 4:20 am
- Forum: Mac OS
- Topic: Where to store application data?
- Replies: 7
- Views: 5582
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?
- Tue Mar 02, 2010 7:02 pm
- Forum: Building Externals
- Topic: SendCardMessage questions
- Replies: 3
- Views: 4956
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.