Search found 131 matches

by Ledigimate
Thu Mar 13, 2014 1:30 pm
Forum: Feature Requests
Topic: baseline property for field objects
Replies: 21
Views: 3250

Re: baseline property for field objects

Sorry, Mark! I misunderstood. Your suggestion works beautifully for alinging the baseline of a button's label with the baseline of a field, i.e. aligning baselines. However, it would be nice to have a baseline property that returns the exact vertical position of a field's baseline relative to the to...
by Ledigimate
Thu Mar 13, 2014 12:39 pm
Forum: Feature Requests
Topic: baseline property for field objects
Replies: 21
Views: 3250

Re: baseline property for field objects

Mark Sorry again for not being clear about that. Here's what I see on my side: what-i-see.png Here'w what I'm trying to achieve: what-im-looking-for.png I actually need to know exactly where the baseline is in relation to the top edge of the card in order to be able to aling *any* object to the base...
by Ledigimate
Thu Mar 13, 2014 11:44 am
Forum: Feature Requests
Topic: baseline property for field objects
Replies: 21
Views: 3250

Re: baseline property for field objects

Hi Mark I'm sorry about not being more specific. Here's what happened: In my sample stack, I: 1. created an empty stack and added a label field and a button to it 2. put three lines of text in the field 3. changed the font of the field to Times New Roman, size to 48, Italic, left aligned. This shoul...
by Ledigimate
Wed Mar 12, 2014 10:11 pm
Forum: Feature Requests
Topic: baseline property for field objects
Replies: 21
Views: 3250

Re: baseline property for field objects

Dear Mark

Please see the attached stack. I entered your first line of code into the message box but it didn't work as described. Where am I going wrong?

Thanks

Gerrie
by Ledigimate
Mon Mar 10, 2014 5:48 pm
Forum: Feature Requests
Topic: baseline property for field objects
Replies: 21
Views: 3250

baseline property for field objects

Dear RunRev, It would be really handy to be able to retrieve the font baseline of a field object, relative to the top edge of the card. This would make it possible to position other objects in line with a field's baseline. Perhaps one should also be able to change the vertical position of a field by...
by Ledigimate
Mon Feb 10, 2014 5:43 pm
Forum: Talking LiveCode
Topic: Card transition slow for no apparent reason [solved]
Replies: 2
Views: 594

Re: Card transition slow for no apparent reason

Hi all, I have located the source of the problem. My app is designed to dynamically create certain controls every time the window is resized. It deletes the previously created controls before creating the new ones, or so I thought. I observed that the card transition got longer with each resize, whi...
by Ledigimate
Wed Feb 05, 2014 10:32 pm
Forum: Talking LiveCode
Topic: Card transition slow for no apparent reason [solved]
Replies: 2
Views: 594

Card transition slow for no apparent reason [solved]

Hi gurus, I've come across an inexplicable phenomenon: The transition between cards in my stack used to be fast, but all of sudden it's slowed down by 3 or more seconds for no apparent reason! When I create a new main stack and copy the cards and scripts from the old stack to the new stack, the new ...
by Ledigimate
Wed Feb 05, 2014 9:21 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 3043

Re: Generating Random Numbers???

Yes,
random(10 - 5 + 1) + 5 - 1
is a bit more readable.
My apologies :oops:

Gerrie
by Ledigimate
Wed Feb 05, 2014 7:17 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 3043

Re: Generating Random Numbers???

Carel, Klaus is right about the -1. "Word 1 to -1" basically means the first word to the last word. Say, for instance, pText contains the string " The lazy dog couldn't care less about a jumping fox. ", and you wanted to return a range of words starting at the fifth word and ending with the second-t...
by Ledigimate
Wed Feb 05, 2014 3:01 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 3043

Re: Generating Random Numbers???

Hi Carel LiveCode's random function always returns a random number in the range of 1 to n , where n is the upper limit you pass to it. But let's say for example that you want to return a number in the range of 5 to 10, then you can't simply return random(10), because it's lower limit would be 1 inst...
by Ledigimate
Sat Jan 25, 2014 7:20 pm
Forum: Windows
Topic: Hotkey when other application is in focus?
Replies: 4
Views: 2046

Re: Hotkey when other application is in focus?

Hello Frankel, You'll need to create your own LiveCode external that can install a low-level keyboard hook. For more information, head over to the "Developers" section of the livecode website, and choose "Desktop Externals" on the left-hand side. You may need to do some C++ or C# coding. You'll need...

Go to advanced search