New stack window has 2 title bars

2018-03-19 Thread ELS prothero via use-livecode
Folks:

I’m setting up my app, which involves moving from a splash stack to a setup 
stack, then to one I”m using for an index to the application. The first stack 
opens fine and there is a single title bar, but when that setup stack opens a 
third stack, it has two title bars. Each time I open a new stack, I make sure 
the calling stack is closed and removed from memory. To go to a new stack:

set the destroystack of myCallingStack to TRUE
go stack newStackPath  —includes full path to the stack, in IDE
send “close “&myCallingStack to my newStackName in 1 second  —closes the 
calling stack

The splash stack opens the setup stack with only a single title bar, but when 
the setup stack calls the index stack, I get two title bars at the top of the 
new window that opens. Probably something stupid I’m doing, but …
What’s going on?

Bill


William Prothero, PhD
Professor Emeritus
University of California, Santa Barbara
http://earthlearningsolutions.org

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: A poor man's app updater

2018-03-19 Thread Graham Samuel via use-livecode
Thanks, Jacque, as usual your ideas are excellent. I’ll see what I can do to 
follow your advice and report back.

As ever, it’s one of those deployment things that I would imagine affects 
everyone who publishes an app that isn’t distributed via some app store, but it 
doesn’t seem a popular topic. 

Graham
BTW, I certainly use installers, and they’re code-signed too, to simplify 
matters for users.

> On 18 Mar 2018, at 20:57, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 3/18/18 6:44 AM, Graham Samuel via use-livecode wrote:
>> Now, here is the primitive bit: if the user selects the update option, 
>> he/she is invited to carry out the following sequence:
>> - quit the current version (actually this can of course be done 
>> automatically via an “OK” button);
> 
> I'd automate this. The fewer steps the user needs to follow, the better.
> 
>> - delete the current version using the facilities of the OS (just trash it 
>> from the Applications folder on a Mac, or use the Control Panel on Windows): 
>> there is no reliable way of doing this from within an LC standalone, AFAIK;
> 
> I think you'd benefit from distributing some type of installer. When the user 
> clicks the "OK" button, launch the URL of your web site where they can 
> download it. Matthias' LC installer is ready (and the signing version is 
> close to ready) so you could use that while staying within the LC 
> environment. It does all the work for you.
> 
> Users know how to use installers and many Windows users don't understand 
> anything else. There are more users than you think who don't know how to find 
> a file or where apps are stored on their drive. The OS and/or the installer 
> will manage older versions so you don't have to.
> 
>> - download and run a special “Uninstall Helper” program that gets rid of the 
>> Working Stack in the writeable area, plus preference files and the like - I 
>> don’t see any way of making this happen automatically, since logically it 
>> needs to be done **after** the main program is deleted;
> 
> Instead of a helper, I'd put some logic into your app itself. The working 
> stack would have a custom property with its current version number. The 
> standalone would check on launch if the working stack exists, and if so, if 
> its custom version property matches the one it expects. If not, overwrite the 
> existing one with the new one. The new one could either be downloaded from 
> the internet on demand, or stored as a binary in a custom property of the 
> standalone. Either way, overwriting is just a matter of putting the binary 
> content into the existing stack file path on disk.
> 
>> - use the information given at the time of purchase to download the 
>> appropriate installer from the server;
>> - reinstall the program and input the registration data from the original 
>> purchase.
> 
> So, it sounds like you are already using an installer. If so, they're mostly 
> done. I wouldn't remove the user registration file or preferences; unless 
> it's changed there's no reason to make the user find their registration info 
> again (and many will lose or misplace it, which will increase support 
> requests.)
> 
> The short summary: The user only has to click "OK", the app quits, and the 
> user is taken to a web site to download the update installer. Once they 
> launch that and run the install, everything else is automatic. On first 
> launch, the app replaces any necessary files.
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mouse wheel scrolling support...

2018-03-19 Thread Paul Dupuis via use-livecode
On 3/19/2018 3:18 PM, Richmond Mathewson via use-livecode wrote:
> At the risk of sounding both naive and stupid I have just pasted a
> large text into a field
> with a vertical scrollBar in a field in a stack in LC 7.1.4 on Mac OS
> 10.7.5.
>
> With the "blobby thing" that passes for a scroll wheel on my A1152
> Apple mouse
> I am able to scroll up and down in the field with no trouble at all.
>
> So, would be glad if you could explain in a bit more detail what you mean
> by "supporting scrolling fields by use of a mouse wheel".

There are user interface conventions/guidelines for mice with mouse
wheels (typically a wheel between the 2 mouse buttons you can spin
forward or backwards with a finger). If a scrollable user interface
object has the focus and you spin the wheel, the user interface object
(field, scrolling pane, slide, whatever) should "scroll" without you
having to point to it or click on it.

I am unfamiliar with the A1152 Apple mouse (although I just googled a
picture of it). I don't know is the "scroll ball" of that mouse is
supposed to act like a "scroll wheel". Here is a typical HP (windows)
2-button mouse with a scroll wheel for comparison:
https://lh3.googleusercontent.com/V8SoWc38ieyPF1NWe42050HkHEuamfAFk4dXP7yqNZsoFhUvjh6iA3FoBovbAROR7tmX4q69=w640-h400-e365

I don't know if that information helps, but there it is.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mouse wheel scrolling support...

2018-03-19 Thread Paul Dupuis via use-livecode
Thank you! Exactly what I was looking for.

On 3/19/2018 2:49 PM, J. Landman Gay via use-livecode wrote:
> On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote:
>> Does anyone have any code for supporting scrolling fields by use of a
>> mouse wheel that they would care to post or email me?
>
> From my cribbed collection:
>
> on rawKeyDown pKeyNumber
>   if pKeyNumber is 65308 then put 15 into tScrollInc --
> increaseScroll, scroll wheel down
>   else if pKeyNumber is 65309 then put -15 into tScrollInc --
> decreaseScroll, scroll wheel up
>   if tScrollInc is empty then pass rawKeyDown
>   set the vScroll of me to (the vScroll of me + tScrollInc)
> end rawKeyDown
>
> -- both vertical and horizontal:
>
> on rawKeyDown pKey
>   switch pKey
>     case 65309
>   set the vScroll of me to the vScroll of me - 30
>   break
>     case 65308
>   set the vScroll of me to the vScroll of me + 30
>   break
>     case 65311
>   set the hScroll of me to the hScroll of me - 30
>   break
>     case 65310
>   set the hScroll of me to the hScroll of me +30
>   break
>     default
>   pass rawKeyDown
>   end switch
> end rawKeyDown



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mouse wheel scrolling support...

2018-03-19 Thread Richmond Mathewson via use-livecode
At the risk of sounding both naive and stupid I have just pasted a large 
text into a field
with a vertical scrollBar in a field in a stack in LC 7.1.4 on Mac OS 
10.7.5.


With the "blobby thing" that passes for a scroll wheel on my A1152 Apple 
mouse

I am able to scroll up and down in the field with no trouble at all.

So, would be glad if you could explain in a bit more detail what you mean
by "supporting scrolling fields by use of a mouse wheel".

Richmond.

On 19/3/2018 8:49 pm, J. Landman Gay via use-livecode wrote:

On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote:

Does anyone have any code for supporting scrolling fields by use of a
mouse wheel that they would care to post or email me?


From my cribbed collection:

on rawKeyDown pKeyNumber
  if pKeyNumber is 65308 then put 15 into tScrollInc -- 
increaseScroll, scroll wheel down
  else if pKeyNumber is 65309 then put -15 into tScrollInc -- 
decreaseScroll, scroll wheel up

  if tScrollInc is empty then pass rawKeyDown
  set the vScroll of me to (the vScroll of me + tScrollInc)
end rawKeyDown

-- both vertical and horizontal:

on rawKeyDown pKey
  switch pKey
case 65309
  set the vScroll of me to the vScroll of me - 30
  break
case 65308
  set the vScroll of me to the vScroll of me + 30
  break
case 65311
  set the hScroll of me to the hScroll of me - 30
  break
case 65310
  set the hScroll of me to the hScroll of me +30
  break
default
  pass rawKeyDown
  end switch
end rawKeyDown


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Solution for signing Windows .exe,.dll and so on under Mac OS X

2018-03-19 Thread Matthias Rebbe via use-livecode
The url for the pdf download links to my server (dl.qck.nu), in case you are 
concerned about the domain name.
That domain is used to provide several  services using LC server. So nothing 
harmful.


Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

> Am 19.03.2018 um 15:33 schrieb Matthias Rebbe via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Hi,
> 
> i´ve just noticed that the link to the PDF file was not correct.
> 
> You´ll find the step by step instructions here
> 
> https://dl.qck.nu//?dl=Signing_Windows_files_on_MacOSX.pdf 
>   >
> 
> I am sorry for the confusion.
> 
> Regards,
> Matthias
> 
> Matthias Rebbe
> Tel +49 5741 31
> ‌https://matthiasrebbe.eu  
> >‌
> 
>> Am 17.03.2018 um 09:58 schrieb Matthias Rebbe 
>> >  
>> > >>:
>> 
>> Hi, 
>> i am not sure, if you all alread knew about it. But for me it was totally 
>> new.
>> 
>> 
>> Today i was able to successfully signing a Windows .exe file under Mac OS X.
>> 
>> See the steps below.
>> 
>> If the URLs are not readable, go here to download a short pdf containing the 
>> instructions.
>> 
>> https://dl.qck.nu//?dl=Singing_Windows_files_on_MacOSX.pdf 
>> >  >
>> 
>> Why are url in this list email always shown twice? Is there a trick to avoid 
>> that?
>> 
>> Any way.
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> 
>> How to signcode Windows apps under Mac OS X using osslsigncode
>> 
>> 1. If not already installed, install Homebrew using the Terminal
>> ruby -e "$(curl -fsSL 
>> https://raw.githubusercontent.com/Homebrew/install/master/install 
>> >  >)"
>> 
>> 2. install osslsigncode using HomeBrew, enter the following into the Terminal
>> brew install osslsigncode
>> 
>> After successful installation you should be able to sign your Windows .exe 
>> under Mac OS X
>> 
>> See examples below  for signing YOURAPP.exe with a p12/pfx certificate
>> 
>> SHA256
>> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
>> sha2 -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out 
>> /PATH/YOURAPP_signed.exe
>> 
>> SHA1
>> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
>> sha1  -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe
>> 
>> Dual signing
>> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
>> sha1  -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe
>> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
>> sha2 -nest -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out 
>> /PATH/YOURAPP_signed.exe
>> 
>> 
>> 
>> With my Comode certificate i am using the timestamp server url  
>> http://timestamp.comodoca.com/rfc3161 
>> >  >
>> 
>> 
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Mouse wheel scrolling support...

2018-03-19 Thread J. Landman Gay via use-livecode

On 3/19/18 11:15 AM, Paul Dupuis via use-livecode wrote:

Does anyone have any code for supporting scrolling fields by use of a
mouse wheel that they would care to post or email me?


From my cribbed collection:

on rawKeyDown pKeyNumber
  if pKeyNumber is 65308 then put 15 into tScrollInc -- increaseScroll, 
scroll wheel down
  else if pKeyNumber is 65309 then put -15 into tScrollInc -- 
decreaseScroll, scroll wheel up

  if tScrollInc is empty then pass rawKeyDown
  set the vScroll of me to (the vScroll of me + tScrollInc)
end rawKeyDown

-- both vertical and horizontal:

on rawKeyDown pKey
  switch pKey
case 65309
  set the vScroll of me to the vScroll of me - 30
  break
case 65308
  set the vScroll of me to the vScroll of me + 30
  break
case 65311
  set the hScroll of me to the hScroll of me - 30
  break
case 65310
  set the hScroll of me to the hScroll of me +30
  break
default
  pass rawKeyDown
  end switch
end rawKeyDown
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: height of title bar

2018-03-19 Thread Phil Davis via use-livecode

Thank you Paul! It does indeed work as you said.

Phil


On 3/19/18 10:46 AM, Paul Dupuis via use-livecode wrote:

On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote:

Is there a way in LC to discover the height of a window's title bar?

I tried comparing item 2 of the card's globalLoc(topleft of this card)
to item 2 of the stack's topleft, but they are the same.

I tried comparing the stack's topleft with no decorations to the same
but with decorations. No joy. Same.

Any other ideas?

Thanks -
Phil


See the use of the 'effective' keyword in the dictionary under the
rectangle property. Essentially the 'effective rect of window X' minus
the 'rect of window x' give you the height of the title bar for teh top
coordinates and the size of the border for left, right, and bottom
coordinates.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: height of title bar

2018-03-19 Thread Paul Dupuis via use-livecode
On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote:
> Is there a way in LC to discover the height of a window's title bar?
>
> I tried comparing item 2 of the card's globalLoc(topleft of this card)
> to item 2 of the stack's topleft, but they are the same.
>
> I tried comparing the stack's topleft with no decorations to the same
> but with decorations. No joy. Same.
>
> Any other ideas?
>
> Thanks -
> Phil
>
See the use of the 'effective' keyword in the dictionary under the
rectangle property. Essentially the 'effective rect of window X' minus
the 'rect of window x' give you the height of the title bar for teh top
coordinates and the size of the border for left, right, and bottom
coordinates.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


height of title bar

2018-03-19 Thread Phil Davis via use-livecode

Is there a way in LC to discover the height of a window's title bar?

I tried comparing item 2 of the card's globalLoc(topleft of this card) 
to item 2 of the stack's topleft, but they are the same.


I tried comparing the stack's topleft with no decorations to the same 
but with decorations. No joy. Same.


Any other ideas?

Thanks -
Phil

--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mouse wheel scrolling support...

2018-03-19 Thread Paul Dupuis via use-livecode
On 3/19/2018 1:23 PM, dunbarx via use-livecode wrote:
> Paul.
>
> What beyond trapping the "scrollBarDrag" message were you looking for?
>

Is that the event message LiveCode generates when a mouse with a mouse
wheel is turned? I can find no documentation on mouse wheel support in
the scrollbardrag dictionary entry. I also do not have a mouse with a
mouse wheel, so I am sort of looking for a proven, known approach that
works.

In my specific case, I am looking to not only scroll a field (in one
context) but in another window enable a scroller/slider to be moved by a
mouse wheel and another a scrolling group.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Mouse wheel scrolling support...

2018-03-19 Thread dunbarx via use-livecode
Paul.

What beyond trapping the "scrollBarDrag" message were you looking for?

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Dinamyc variables.

2018-03-19 Thread Phil Davis via use-livecode

On 3/19/18 9:29 AM, Mike Bonner via use-livecode wrote:

Use an array instead...
put empty into tCardArrayA[the short name of this card]
Newly created cards where you don't specify the card name on creation, will
have a card name set to the id of the card. (like "card id 1002")


And the array approach allows the card names to contain spaces (consist 
of multiple words), where the "do" approach does not.


Phil Davis



On Mon, Mar 19, 2018 at 9:43 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:


This is what Macro Substitution was created for, but LC doesn't have that
function. Say you have an accounting app where you can load different
companies. The names of the tables and support files on disk are serialized
with a 2 digit number representing the company number. In Foxpro when you
load a new company, you *could* reference the files using macro
substitution:

open file &tCompanyPath&tModule&tCompanynum

Of course there are ways around this. Someone pointed out using an array,
which is a variable containing other variables in essence.


On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode <

use-livecode@lists.runrev.com> wrote:

[This message was identified as a phishing scam. Learn about phishing at

http://aka.ms/LearnAboutPhishing]

Dear Livecode programmers,

I am trying to create a new variable with the name of a dynamically
generated card.
Please note that I would like to create a new variable, not to put the
name of the card inside the variable.

I would like to have something like this (PseudoCode)

"Get the name of this card and create a variable with the name of the

card."

I searched the forum and the dictionary but I cannot find how to do that.

Best regards/ Saludos cordiales/ Cordialement

Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your

subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dinamyc variables.

2018-03-19 Thread Mike Bonner via use-livecode
Use an array instead...
put empty into tCardArrayA[the short name of this card]
Newly created cards where you don't specify the card name on creation, will
have a card name set to the id of the card. (like "card id 1002")

On Mon, Mar 19, 2018 at 9:43 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This is what Macro Substitution was created for, but LC doesn't have that
> function. Say you have an accounting app where you can load different
> companies. The names of the tables and support files on disk are serialized
> with a 2 digit number representing the company number. In Foxpro when you
> load a new company, you *could* reference the files using macro
> substitution:
>
> open file &tCompanyPath&tModule&tCompanynum
>
> Of course there are ways around this. Someone pointed out using an array,
> which is a variable containing other variables in essence.
>
> > On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > [This message was identified as a phishing scam. Learn about phishing at
> http://aka.ms/LearnAboutPhishing]
> >
> > Dear Livecode programmers,
> >
> > I am trying to create a new variable with the name of a dynamically
> > generated card.
> > Please note that I would like to create a new variable, not to put the
> > name of the card inside the variable.
> >
> > I would like to have something like this (PseudoCode)
> >
> > "Get the name of this card and create a variable with the name of the
> card."
> >
> > I searched the forum and the dictionary but I cannot find how to do that.
> >
> > Best regards/ Saludos cordiales/ Cordialement
> >
> > Heriberto Torrado
> > ​Chief Technology Officer (CTO)
> > ​Director de informática
> > Directeur informatique
> >
> > *NetDreams S.C.*
> > http://www.networkdreams.net
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Mouse wheel scrolling support...

2018-03-19 Thread Paul Dupuis via use-livecode
Does anyone have any code for supporting scrolling fields by use of a
mouse wheel that they would care to post or email me?

A search showed that this has been discussed in the past and seems to be
possible by creating an appropriate handler in LC, but my Google skills
failed me in finding an example of such a handler.

Thank you to anyone in advance,

Paul Dupuis

Researchware


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Sound delay

2018-03-19 Thread Bob Sneidar via use-livecode
Hey, that's what I suggested! 

Bob S


> On Mar 16, 2018, at 13:21 , Randy Hengst via use-livecode 
>  wrote:
> 
> Hi William,
> 
> I haven’t messed with this for quite a while, but the sound delay isn’t new. 
> On iOS I found that the second sound played without delay… even when it was 
> not a repeat of the first sound. Is that what you’ve seen?
> 
> My workaround was to record a few seconds of silence and play that sound on 
> openStack.
> play specialFolderPath("engine") &"/"& "Silence.wav"
> 
> I’ve not used mp3 files in LiveCode, so don’t really if you’re seeing the 
> same thing I did with .wav files.
> 
> be well,
> randy
> 
> Randy Hengst

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Stupid Question Again - Proportional Scaling

2018-03-19 Thread Bob Sneidar via use-livecode
> On Mar 18, 2018, at 09:57 , Richard Gaskin via use-livecode 
>  wrote:
> 
> How often do we see apps that constrain window resizing?

This is common I think for apps which have a set of fields displaying data, 
tables etc. Maybe there are some panes and tabs, but to reduce the window to 
less than x,y would require the contents to be scrollable. We have an app whose 
window settings get corrupted if Windows Display has a scale factor set over 
100%. Another app will simply refuse to run if the resolution of the current 
monitor is below a minimum. A lot of times developers don't want to deal with 
window geometry. Their solution is to tell you, "Don't do that" when it comes 
to window sizing, or they don't allow you to do it at all. 

Bob S




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: tsNetSmtpSync (with attachment

2018-03-19 Thread Bob Sneidar via use-livecode
Sounds like the receiver is blocking attachments. Many mail gateways do this, 
either because the extension is not allowed, or the attachment is too big. 

Bob S


> On Mar 18, 2018, at 20:07 , Charles Warwick via use-livecode 
>  wrote:
> 
> [This message was identified as a phishing scam. Learn about phishing at 
> http://aka.ms/LearnAboutPhishing]
> 
> Hi,
> 
> That does seem odd...  Is there any chance you might have some anti-virus 
> software running that might be getting in the way?
> 
> Regards,
> 
> Charles
> 
>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode 
>>  wrote:
>> 
>> Hallo all,
>> 
>> try to send an email with attachment (PDF) from LiveCode with tsNet 
>> (tsNetSmtpSync)
>> 
>> I tried the sample stack "Mail v1.2" from
>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode
>> 
>> I get an error when I try to send with an attachment (PDF document):
>> 
>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0)
>> returned from server
>> 
>> 
>> Without the attachment the email is send.
>> 
>> Windows 7, LC 8.1.9
>> 
>> 
>> Any ideas?
>> 
>> Best
>> Günter
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dinamyc variables.

2018-03-19 Thread Bob Sneidar via use-livecode
This is what Macro Substitution was created for, but LC doesn't have that 
function. Say you have an accounting app where you can load different 
companies. The names of the tables and support files on disk are serialized 
with a 2 digit number representing the company number. In Foxpro when you load 
a new company, you *could* reference the files using macro substitution: 

open file &tCompanyPath&tModule&tCompanynum

Of course there are ways around this. Someone pointed out using an array, which 
is a variable containing other variables in essence. 

> On Mar 18, 2018, at 19:08 , Heriberto Torrado via use-livecode 
>  wrote:
> 
> [This message was identified as a phishing scam. Learn about phishing at 
> http://aka.ms/LearnAboutPhishing]
> 
> Dear Livecode programmers,
> 
> I am trying to create a new variable with the name of a dynamically
> generated card.
> Please note that I would like to create a new variable, not to put the
> name of the card inside the variable.
> 
> I would like to have something like this (PseudoCode)
> 
> "Get the name of this card and create a variable with the name of the card."
> 
> I searched the forum and the dictionary but I cannot find how to do that.
> 
> Best regards/ Saludos cordiales/ Cordialement
> 
> Heriberto Torrado
> ​Chief Technology Officer (CTO)
> ​Director de informática
> Directeur informatique
> 
> *NetDreams S.C.*
> http://www.networkdreams.net
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Solution for signing Windows .exe,.dll and so on under Mac OS X

2018-03-19 Thread Matthias Rebbe via use-livecode
Hi,

i´ve just noticed that the link to the PDF file was not correct.

You´ll find the step by step instructions here

https://dl.qck.nu//?dl=Signing_Windows_files_on_MacOSX.pdf 


I am sorry for the confusion.

Regards,
Matthias

Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

> Am 17.03.2018 um 09:58 schrieb Matthias Rebbe 
>  >:
> 
> Hi, 
> i am not sure, if you all alread knew about it. But for me it was totally new.
> 
> 
> Today i was able to successfully signing a Windows .exe file under Mac OS X.
> 
> See the steps below.
> 
> If the URLs are not readable, go here to download a short pdf containing the 
> instructions.
> 
> https://dl.qck.nu//?dl=Singing_Windows_files_on_MacOSX.pdf 
> 
> 
> Why are url in this list email always shown twice? Is there a trick to avoid 
> that?
> 
> Any way.
> 
> Regards,
> 
> Matthias
> 
> 
> 
> How to signcode Windows apps under Mac OS X using osslsigncode
> 
> 1. If not already installed, install Homebrew using the Terminal
> ruby -e "$(curl -fsSL 
> https://raw.githubusercontent.com/Homebrew/install/master/install 
> )"
> 
> 2. install osslsigncode using HomeBrew, enter the following into the Terminal
>  brew install osslsigncode
> 
> After successful installation you should be able to sign your Windows .exe 
> under Mac OS X
> 
> See examples below  for signing YOURAPP.exe with a p12/pfx certificate
> 
> SHA256
> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
> sha2 -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe
> 
> SHA1
> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
> sha1  -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe
> 
> Dual signing
> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
> sha1  -in /PATH/YOURAPP.exe -out /PATH/YOURAPP_signed.exe
> osslsigncode sign -pkcs12 YOURCERTIFICATEFILE.p12 -pass YOURCERTPASSWORD -h 
> sha2 -nest -t TIMESTAMPSERVERURL -in /PATH/YOURAPP.exe -out 
> /PATH/YOURAPP_signed.exe
> 
> 
> 
> With my Comode certificate i am using the timestamp server url  
> http://timestamp.comodoca.com/rfc3161 
> 
> 
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet?

2018-03-19 Thread Richmond via use-livecode

I thought my buying USB Microscopes in LIDL was an all-time low . . .

Mind you, a friend of mine bought a kilt there.


On 19.03.2018 13:27, David V Glasgow via use-livecode wrote:

Colleagues in Livecode,

I just purchased a Win 10 ‘convertible’ tablet from Lidl 
 solely for quick 
Win testing LC.  The upside is that it is astonishing value for money (£169).

The downside is that the on screen keyboard isn’t automatically invoked when no 
keyboard is attached and the cursor enters a field.  I can access the KB from 
the task bar, but who wants to do that all the time?  It also doesn’t seem to 
move things about to avoid the KB overlaying the field in question.


Right click (hold and release) in the textField, and select show touch 
keyboard icon.


Fairly inconvenient!

Here's some horrible Visual BASIC:

Sub Keyboard()
On Error GoTo ErrorHandler

Call ShellEx("C:\Program Files\Common Files\Microsoft 
Shared\ink\TabTip.exe")


ProcedureExit:
Exit Sub

ErrorHandler:
MsgBox "Error" & ": " & Err.Number & vbCrLf & "Description: " _
& Err.Description, vbExclamation, "Module1.Keyboard"
Resume ProcedureExit

End Sub

https://borncity.com/win/2015/08/24/windows10-upgrade-on-screen-keyboardtouchscreen-fix/


I have seen a few complaints online that seem to suggest that this is how it 
works in Win 10.  I have a hard time believing that because it is so 
spectacularly stupid and irritating.

I don't, frankly.


Some apps seem to have worked around this problem, and I hope that someone on 
this list has also done so.

Any advice?  If I have to roll my own KB + field avoidance+ text entry system I 
will, but surely that shouldn’t be necessary?

Best wishes,

David Glasgow

___



Best of luck, Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Dinamyc variables.

2018-03-19 Thread Klaus major-k via use-livecode
Hola Heriberto,

> Am 19.03.2018 um 03:08 schrieb Heriberto Torrado via use-livecode 
> :
> 
> Dear Livecode programmers,
> 
> I am trying to create a new variable with the name of a dynamically generated 
> card.
> Please note that I would like to create a new variable, not to put the name 
> of the card inside the variable.
> I would like to have something like this (PseudoCode)
> "Get the name of this card and create a variable with the name of the card."
> I searched the forum and the dictionary but I cannot find how to do that.

this is a case for DO! :-)

...
put the short name of this cd into tCardName
do ("put empty into " & tCardName)
...
Et voila, an empty variable with the name of your card.

If you need to create MORE than one variable from strings, just create an array 
with the string(s) as keys.
...
put the short name of this cd into tCardName
put empty into tArray[tCardName]
...

> Best regards/ Saludos cordiales/ Cordialement
> 
> Heriberto Torrado

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] This Week in LiveCode 121

2018-03-19 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #121 here: https://goo.gl/dV8FiJ

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


What LC or OS incantation do I use to involve the onscreen keyboard on a Win 10 tablet?

2018-03-19 Thread David V Glasgow via use-livecode

Colleagues in Livecode,

I just purchased a Win 10 ‘convertible’ tablet from Lidl 
 solely for quick 
Win testing LC.  The upside is that it is astonishing value for money (£169).

The downside is that the on screen keyboard isn’t automatically invoked when no 
keyboard is attached and the cursor enters a field.  I can access the KB from 
the task bar, but who wants to do that all the time?  It also doesn’t seem to 
move things about to avoid the KB overlaying the field in question.

I have seen a few complaints online that seem to suggest that this is how it 
works in Win 10.  I have a hard time believing that because it is so 
spectacularly stupid and irritating.  Some apps seem to have worked around this 
problem, and I hope that someone on this list has also done so.

Any advice?  If I have to roll my own KB + field avoidance+ text entry system I 
will, but surely that shouldn’t be necessary?

Best wishes,

David Glasgow

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode