v17 obsolete commands SET DOCUMENT CREATOR / SET DOCUMENT TYPE

2019-08-07 Thread Jörg Knebel via 4D_Tech
G’day All, Does someone has already developed a replacement (LEP or other) for both platforms? Thanks Cheers Jörg ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/ma

Re: Prevent Client from Sleeping

2019-08-07 Thread Chuck Miller via 4D_Tech
The question is to why. I would think you just want to stop the drive from spinning down. Most companies hate when you do that as they want computer to lock after as short period of inactivity On Mac there is a setting to stop drive from spinning down. I bet there is on windows as well Regards

Re: Prevent Client from Sleeping

2019-08-07 Thread John DeSoi via 4D_Tech
On the Mac you can use "caffeinate" via LEP. NAME caffeinate -- prevent the system from sleeping on behalf of a utility SYNOPSIS caffeinate [-disu] [-t timeout] [-w pid] [utility arguments...] DESCRIPTION caffeinate creates assertions to alter system sleep behavior. If no asser

RE: Prevent Client from Sleeping

2019-08-07 Thread Timothy Penner via 4D_Tech
Hi Jim, I am not sure that you will be able to effectively prevent the computer from sleeping. Here are some examples that you will be unable to intercept: - the user closes their laptop lid (the machine will most likely go to sleep - this is adjusted in power settings on Windows) - the user

Re: Pasting problem

2019-08-07 Thread William Swann via 4D_Tech
Nope, had those thoughts as well. I have carefully looked at all events for all of the objects to make certain nothing would be firing. These are straight text fields, context menu on or off. Further, I have tried using a popup dialog that fires a "text" dialog window to paste into as well. Thi

Re: Pasting problem

2019-08-07 Thread William Swann via 4D_Tech
What a great idea! Sometimes, you forget the simple. Thank you Chip. Anyone have an idea about trapping for the menu event w/o using On Event Call? Bill On 8/7/19 11:39 AM, Chip Scheide wrote: to catch the keystroke without On Event Call: you could put an invisible button on the form(s) wit

Re: Pasting problem

2019-08-07 Thread Tom Benedict via 4D_Tech
Are you sure there’s no form event being triggered somehow? Is the text area styled text? Is this universal in all objects on all forms or just in a few places? Tom Benedict > On Aug 7, 2019, at 10:51, William Swann via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi All, > > I am having a pr

Re: Pasting problem

2019-08-07 Thread Chip Scheide via 4D_Tech
to catch the keystroke without On Event Call: you could put an invisible button on the form(s) with cntrl-v as the activator, then use Get Text From Pasteboard, and insert it at the current cursor position Im not sure if you can catch the contextual menu, but maybe: with some imaginative use On

Re: Prevent Client from Sleeping

2019-08-07 Thread Chip Scheide via 4D_Tech
Some ideas - none of these tested or tried :) LEP - and use commands to bring the desktop to the fore and then 4D? Move mouse to the menu bar, and post a click? On launch of 4D use LEP to reset screen saver timeout, reset on quit On launch of 4D use LEP to reset power timeout, reset on quit LEP

Prevent Client from Sleeping

2019-08-07 Thread Jim Medlen via 4D_Tech
To: 4d_tech@lists.4d.com From: Jim Medlen Company:Functional Devices, Inc. Subject:Prevent Client from Sleeping Date: Wednesday, August 7, 2019 Looking for ideas or thoughts on generating an event that will prevent the client machine from sleeping? I am trying to prev

Re: pointer issue

2019-08-07 Thread Chip Scheide via 4D_Tech
can you rewrite the outer loop (the one that implied in the code you supplied) so that you pass a pointer to the array from calling method, rather then trying to create the pointer. Array Real($MetalAmount_1;10) Array Real($MetalAmount_2;10) Array Real($MetalAmount_3;10) for($i;1;3) case of

Pasting problem

2019-08-07 Thread William Swann via 4D_Tech
Hi All, I am having a problem with pasting into text fields or variables on input forms under Windows. The user clicks into or highlights a text area that is already populated. They press either ctrl-v or select paste from the area's contextual menu. The entire existing text block is replaced

Re: pointer issue

2019-08-07 Thread Narinder Chandi via 4D_Tech
Chuck, From the docs on Get Pointer: "The Get pointer command returns a pointer to the process or interprocess variable whose name you pass in varName." Regards, Narinder Chandi, ToolBox Systems Ltd. -- -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D

pointer issue

2019-08-07 Thread Chuck Miller via 4D_Tech
Hi All, The following fails $MetalAmount_ptr:=Get pointer("$MetalAmount_"+String($MetalPos_L)+"_aR") $MetalAmount_ptr->{$Loop_L}:=$metalFactors_aR{$InnerLoop_L} When I changed arrays to process $MetalAmount_ptr:=Get pointer("MetalAmount_"+String($MetalPos_L)+"_aR") $MetalAmount_ptr->{$Loop_L}:=$m