Re: How to set the file name of a QR Report to disk file.

2017-12-28 Thread Guy Algot via 4D_Tech
I use an offscreen area. For example ;

myQR:=QR New offscreen area
QR SET REPORT TABLE(myQR;Table(->[InvoiceItems])) 

QR INSERT COLUMN(myQR;1;->[InvoiceItems]InvoiceDate)
QR INSERT COLUMN(myQR;2;->[InvoiceItems]InvoiceNo)
QR INSERT COLUMN(myQR;3;->[InvoiceItems]Customer)
QR INSERT COLUMN(myQR;4;->[InvoiceItems]PartNo)

QR SET DESTINATION(myQR;qr text file;$path_vT)
QR RUN(myQR)
QR DELETE OFFSCREEN AREA(myQR)

What you were able to do in versions prior to v16 was generate this code by 
simply designing the report in the QR editor and using the wizard.  I cannot 
find the wizard in the new QR editor.


> On Dec 28, 2017, at 8:30 AM, Douglas von Roeder via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> John:
> 
> I wasn't sure of how QR REPORT worked. I checked the docs and the path at
> $2 is the path to the report so my thinking was there there was a save file
> dialog needed.
> 
> The other thing that came to mind was is you could handle this like you
> would with 4D Write - create an offscreen area, run the report in the
> offscreen area, and then handle the report as desired. That's what the last
> example (#5) in the docs does - it creates the report in a BLOB which you
> can handle with 4D document commands. Is that something that might take
> care of it?
> 
> --
> Douglas von Roeder
> 949-336-2902
> 
> On Wed, Dec 27, 2017 at 10:54 PM, John Baughman via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> Thanks Doug. What I need is specifically related to using the command QR
>> REPORT with a prebuilt .4qr file which exports a selection of records to a
>> text file. I am not at all concerned with where the file is being saved,
>> but what the file name will be.
>> 
>> I do not see any way to force QR REPORT to bypass the Save As dialogue, or
>> to set the suggested file name to anything other than My Report.txt.
>> 
>> Correct me if I am wrong, but I don’t think what you suggested will work
>> with QR REPORT to set the file name or to otherwise use the .4qr file such
>> that I can specify the file name.
>> 
>> John
>>> 
>>> On Wed, Dec 27, 2017 at 4:43 PM, John Baughman via 4D_Tech <
>>> 4d_tech@lists.4d.com> wrote:
>>> 
 I am executing a report with…
 
 QR REPORT([Timesheets];Get 4D folder(Database folder)+"Resources"+Folder
 separator+"TimeSheetEmployeeExport.4qr”)
 
 This works fine, but I want to dictate or at least offer a preset file
 name to the end user in the save dialogue. Tried various approaches
>> without
 any success.
 
 Thanks for any help.
 
 John
 


Later,
Guy

--
Guy Algot, Solutions Specialist
Edmonton, Alberta
(780) 974-8538

hardware, installation, training, support, programming, internet
specializing in 4th Dimension
=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
they use Borg to do their marketing and Ferengi to do their programming."
-- Simon Slavin



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: RESOLVE POINTER does not work in preemptive processes

2017-12-28 Thread Chip Scheide via 4D_Tech
then it must be a bu.

File it :)

On Thu, 28 Dec 2017 12:19:43 -0600, John DeSoi via 4D_Tech wrote:
> Same problem, always empty.
> 
> John DeSoi, Ph.D.
> 
> 
>> On Dec 28, 2017, at 11:57 AM, Chip Scheide 
>> <4d_o...@pghrepository.org> wrote:
>> 
>> what about:
>> C_TEXT(myTextVar)
>> C_POINTER($myPointer)
>> C_TEXT($varName)
>> C_LONGINT($tableNum;$fieldNum)
>> 
>> $myPointer:=->myTextVar
>> RESOLVE POINTER($myPointer;$varName;$tableNum;$fieldNum)  //$varName 
>> returns ??
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SET WINDOW RECT v14 / v16

2017-12-28 Thread B.Bippus via 4D_Tech
Maybe this is helping: Sometimes there are some Form-Objects outside the
visible Area at the Form. Make sure they are _not_ below the "imaginary"
horizontal line of the Form-Objects and Form-Parts you are moving via Code.

Bernd

2017-12-28 14:35 GMT+01:00 Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>
:

> I have a form with several pages. Movement is controlled by a tab object.
> The pages differ greatly in the number of fields they contain and some are
> much larger than others: the width is constant (and the form is not
> resizable by the user) but the height varies.
>
> I resize the window when the user moves between pages. To make it look
> nice, I animate the resize by using SET WINDOW RECT in a tight loop, which
> takes about a quarter of a second.
>
> $inc:=($newBottom-$b)/6
> If ($inc#0)
> For ($i;$b;$newBottom;$inc)
> SET WINDOW RECT($l;$t;$r;$i)
> End for
> End if
>
> In v14, this worked nicely. When moving to a larger page, the contents
> remained static while the window enlarged or shrank, and then the new
> contents were redrawn.
>
> In v16, the contents seem to be bound to the bottom of the window, not the
> top. So when the window grows, all the contents move downwards, leaving a
> blank area at the top (https://www.dropbox.com/s/
> 8rdoljxmq2wafxp/Screenshot%202017-12-28%2013.24.37.jpg?dl=0 <
> https://www.dropbox.com/s/8rdoljxmq2wafxp/Screenshot%
> 202017-12-28%2013.24.37.jpg?dl=0>). When it shrinks, the contents move
> upwards (https://www.dropbox.com/s/9jqqejrkbhwrd3k/Screenshot%
> 202017-12-28%2013.30.17.jpg?dl=0  9jqqejrkbhwrd3k/Screenshot%202017-12-28%2013.30.17.jpg?dl=0>).
>
> Is this a bug? Is there a reason for it? Is there an alternative way of
> doing what I’m trying to get done? I’m using SET WINDOW RECT because it’s
> very fast and it doesn’t require a pass through the event loop, which ended
> up being very slow.
>
> Jeremy
>
>
> Jeremy Roussak
> j...@mac.com
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: RESOLVE POINTER does not work in preemptive processes

2017-12-28 Thread John DeSoi via 4D_Tech
Same problem, always empty.

John DeSoi, Ph.D.


> On Dec 28, 2017, at 11:57 AM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> what about:
> C_TEXT(myTextVar)
> C_POINTER($myPointer)
> C_TEXT($varName)
> C_LONGINT($tableNum;$fieldNum)
> 
> $myPointer:=->myTextVar
> RESOLVE POINTER($myPointer;$varName;$tableNum;$fieldNum)  //$varName 
> returns ??

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: RESOLVE POINTER does not work in preemptive processes

2017-12-28 Thread Chip Scheide via 4D_Tech
what about:
C_TEXT(myTextVar)
C_POINTER($myPointer)
C_TEXT($varName)
C_LONGINT($tableNum;$fieldNum)

$myPointer:=->myTextVar
RESOLVE POINTER($myPointer;$varName;$tableNum;$fieldNum)  //$varName 
returns ??



On Thu, 28 Dec 2017 11:24:25 -0600, John DeSoi via 4D_Tech wrote:
> Just spent hours chasing this issue down (16.3). RESOLVE POINTER is 
> marked as preemptive ready, but in a preemptive process the name 
> returned for the process variable is always empty. Example
> 
> 
> C_TEXT(myTextVar)
> 
> C_TEXT($varName)
> C_LONGINT($tableNum;$fieldNum)
> 
> RESOLVE POINTER(->myTextVar;$varName;$tableNum;$fieldNum) `$varName 
> returns ""
> 
> 
> 
> John DeSoi, Ph.D.
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Electronic Signature Pads

2017-12-28 Thread Lee Hinde via 4D_Tech
It’s on a web page hosted by 4D. The SVG is sent back to 4D and stored. Display 
it on a form in 4D with SVG EXPORT TO PICTURE.


> On Dec 28, 2017, at 9:40 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Lee,
> How did the 4D app present/communicate/capture the signature image?
> 
> On Thu, Dec 28, 2017 at 8:51 AM, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com
>> wrote:
> 
>> Justin,
>> 
>> I’ve used this https://willowsystems.github.io/jSignature/#/about/ <
>> https://willowsystems.github.io/jSignature/#/about/> in a project. It
>> looks similar to the one you mention. (GitHub link here:
>> https://github.com/szimek/signature_pad > signature_pad>)
>> 
>> 
>>> On Dec 28, 2017, at 8:36 AM, Justin Will via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>> 
>>> What about using and html area and using the Signature Pad library?  I
>> use this on a web app and it works great.
>>> 
>>> https://szimek.github.io/signature_pad/
>>> 
>>> Thanks
>>> Justin
>>> 
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> FAQ:  http://lists.4d.com/faqnug.html
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: http://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: http://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>> 
> 
> 
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> ===
> 
> *The only thing necessary for the triumph of evil is for good men to do
> nothing.*
> 
> *- Edmund Burke*
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Electronic Signature Pads

2017-12-28 Thread Kirk Brooks via 4D_Tech
Lee,
How did the 4D app present/communicate/capture the signature image?

On Thu, Dec 28, 2017 at 8:51 AM, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> Justin,
>
> I’ve used this https://willowsystems.github.io/jSignature/#/about/ <
> https://willowsystems.github.io/jSignature/#/about/> in a project. It
> looks similar to the one you mention. (GitHub link here:
> https://github.com/szimek/signature_pad  signature_pad>)
>
>
> > On Dec 28, 2017, at 8:36 AM, Justin Will via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > What about using and html area and using the Signature Pad library?  I
> use this on a web app and it works great.
> >
> > https://szimek.github.io/signature_pad/
> >
> > Thanks
> > Justin
> >
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: http://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Web Log Backup Scheduling

2017-12-28 Thread Stephen J. Orth via 4D_Tech
I'm using the following command in the Server startup method, to enable web
logging:

WEB SET OPTION(Web log recording;2)  //DLF format

Is there also a way to procedurally configure the backup settings?

Thanks!


Steve
*
  Stephen J. Orth
  The Aquila Group, Inc. Office:  (608) 834-9213
  P.O. Box 690   Mobile:  (608) 347-6447
  Sun Prairie, WI 53590

  E-Mail:  s.o...@the-aquila-group.com
*


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RESOLVE POINTER does not work in preemptive processes

2017-12-28 Thread John DeSoi via 4D_Tech
Just spent hours chasing this issue down (16.3). RESOLVE POINTER is marked as 
preemptive ready, but in a preemptive process the name returned for the process 
variable is always empty. Example


C_TEXT(myTextVar)

C_TEXT($varName)
C_LONGINT($tableNum;$fieldNum)

RESOLVE POINTER(->myTextVar;$varName;$tableNum;$fieldNum) `$varName returns ""



John DeSoi, Ph.D.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Electronic Signature Pads

2017-12-28 Thread Justin Will via 4D_Tech
It’s the same one I used.  Just a different way to link to it 

Justin

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Electronic Signature Pads

2017-12-28 Thread Lee Hinde via 4D_Tech
Justin,

I’ve used this https://willowsystems.github.io/jSignature/#/about/ 
 in a project. It looks 
similar to the one you mention. (GitHub link here: 
https://github.com/szimek/signature_pad 
)


> On Dec 28, 2017, at 8:36 AM, Justin Will via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> What about using and html area and using the Signature Pad library?  I use 
> this on a web app and it works great.
> 
> https://szimek.github.io/signature_pad/
> 
> Thanks
> Justin
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Electronic Signature Pads

2017-12-28 Thread Justin Will via 4D_Tech
What about using and html area and using the Signature Pad library?  I use this 
on a web app and it works great.

https://szimek.github.io/signature_pad/

Thanks
Justin

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: SET WINDOW RECT v14 / v16

2017-12-28 Thread Arnaud de Montard via 4D_Tech

> Le 28 déc. 2017 à 14:35, Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> Is there an alternative way of doing what I’m trying to get done? I’m using 
> SET WINDOW RECT because it’s very fast and it doesn’t require a pass through 
> the event loop, which ended up being very slow.

I remember having found SET WINDOW RECT too slow to be used on mac - 4D 2003, a 
long long time ago… 

Did you try RESIZE FORM WINDOW instead? 

-- 
Arnaud de Montard 




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: How to set the file name of a QR Report to disk file.

2017-12-28 Thread Douglas von Roeder via 4D_Tech
John:

I wasn't sure of how QR REPORT worked. I checked the docs and the path at
$2 is the path to the report so my thinking was there there was a save file
dialog needed.

The other thing that came to mind was is you could handle this like you
would with 4D Write - create an offscreen area, run the report in the
offscreen area, and then handle the report as desired. That's what the last
example (#5) in the docs does - it creates the report in a BLOB which you
can handle with 4D document commands. Is that something that might take
care of it?

--
Douglas von Roeder
949-336-2902

On Wed, Dec 27, 2017 at 10:54 PM, John Baughman via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Thanks Doug. What I need is specifically related to using the command QR
> REPORT with a prebuilt .4qr file which exports a selection of records to a
> text file. I am not at all concerned with where the file is being saved,
> but what the file name will be.
>
> I do not see any way to force QR REPORT to bypass the Save As dialogue, or
> to set the suggested file name to anything other than My Report.txt.
>
> Correct me if I am wrong, but I don’t think what you suggested will work
> with QR REPORT to set the file name or to otherwise use the .4qr file such
> that I can specify the file name.
>
> John
>
> > On Dec 27, 2017, at 3:38 PM, Douglas von Roeder via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > John:
> >
> > If it's a beefed up save file dialog, ABM Mac Extras Plugin might be of
> > some help on OS X. I'd go with Win32API on Windows.
> >
> > ABM 1.5.2 is in a system that's running in 12.6. I traded email with
> > Matthias in 6/15 about using it in a newer version and he indicated that
> it
> > works in 13. I've used it in preliminary testing in 14.6 and it works OK.
> >
> > [time passes]
> >
> > Here's something from the wayback machine:
> >
> > "Am/On Fri, 23 Nov 2007 08:57:11 -0700 schrieb/wrote Ed Glassgow:
> >
> >> I am trying to do something that seems that should be trivial but it
> >> doesn't seem to be possible.  I am trying to set a default path for
> >> saving a document that I am going prompt the user with something like
> >> "$theDoc:=Create document("";"txt").  I would like the "Save As" dialog
> >> to open showing the contents of a certain folder.
> >
> > you can use our ABM_MacExtras Plugin for the Mac and Win32API for
> Windows.
> > Let me know, if you're interested and I send you the last UB build.
> > We will soon post it on our website.
> >
> > All the best
> >
> > Matthias
> >
> > 
> > Admilon Consulting GmbH 
> > Am Wiesengrund 9a, 90584 Allersberg
> > Geschaeftsfuehrer: Peter Frank, Matthias Schmidt
> > Amtsgericht Nuernberg: HRB 21750
> > Tel.: 09872-31 43 30
> > --"
> >
> >
> >
> > --
> > Douglas von Roeder
> > 949-336-2902 <(949)%20336-2902>
> >
> > On Wed, Dec 27, 2017 at 4:43 PM, John Baughman via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> I am executing a report with…
> >>
> >> QR REPORT([Timesheets];Get 4D folder(Database folder)+"Resources"+Folder
> >> separator+"TimeSheetEmployeeExport.4qr”)
> >>
> >> This works fine, but I want to dictate or at least offer a preset file
> >> name to the end user in the save dialogue. Tried various approaches
> without
> >> any success.
> >>
> >> Thanks for any help.
> >>
> >> John
> >>
> >>
> >> John Baughman
> >> Kailua, Hawaii
> >> (808) 262-0328
> >> john...@hawaii.rr.com
> >>
> >>
> >>
> >>
> >>
> >> **
> >> 4D Internet Users Group (4D iNUG)
> >> FAQ:  http://lists.4d.com/faqnug.html
> >> Archive:  http://lists.4d.com/archives.html
> >> Options: http://lists.4d.com/mailman/options/4d_tech
> >> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >> **
> > **
> > 4D Internet Users Group (4D iNUG)
> > FAQ:  http://lists.4d.com/faqnug.html
> > Archive:  http://lists.4d.com/archives.html
> > Options: http://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
> John Baughman
> Kailua, Hawaii
> (808) 262-0328
> john...@hawaii.rr.com
>
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: 

SET WINDOW RECT v14 / v16

2017-12-28 Thread Jeremy Roussak via 4D_Tech
I have a form with several pages. Movement is controlled by a tab object. The 
pages differ greatly in the number of fields they contain and some are much 
larger than others: the width is constant (and the form is not resizable by the 
user) but the height varies.

I resize the window when the user moves between pages. To make it look nice, I 
animate the resize by using SET WINDOW RECT in a tight loop, which takes about 
a quarter of a second.

$inc:=($newBottom-$b)/6
If ($inc#0)
For ($i;$b;$newBottom;$inc)
SET WINDOW RECT($l;$t;$r;$i)
End for 
End if 

In v14, this worked nicely. When moving to a larger page, the contents remained 
static while the window enlarged or shrank, and then the new contents were 
redrawn.

In v16, the contents seem to be bound to the bottom of the window, not the top. 
So when the window grows, all the contents move downwards, leaving a blank area 
at the top 
(https://www.dropbox.com/s/8rdoljxmq2wafxp/Screenshot%202017-12-28%2013.24.37.jpg?dl=0
 
).
 When it shrinks, the contents move upwards 
(https://www.dropbox.com/s/9jqqejrkbhwrd3k/Screenshot%202017-12-28%2013.30.17.jpg?dl=0
 
).

Is this a bug? Is there a reason for it? Is there an alternative way of doing 
what I’m trying to get done? I’m using SET WINDOW RECT because it’s very fast 
and it doesn’t require a pass through the event loop, which ended up being very 
slow.

Jeremy


Jeremy Roussak
j...@mac.com



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: List Box Header background color programatically.

2017-12-28 Thread Arnaud de Montard via 4D_Tech

> Le 27 déc. 2017 à 14:41, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> if you, like me, are intrigues by object notation and the new "Form" command,
> I've posted an example UI on GitHub, a custom form for backup settings.
> 
> https://github.com/miyako/4d-utility-backup-dialog

Thanks for that example!

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: List Box Header background color programatically.

2017-12-28 Thread Arnaud de Montard via 4D_Tech

> Le 27 déc. 2017 à 17:41, John Baughman via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> [...] needing to create a background file when each time I find the need for 
> a different color that I don’t already have.

You can draw with svg on the fly and set it as background using a variable name 
in the format. And then embed that in a widget. 


> It would be nice if we could set the list box headers to 3D buttons and use 
> this trick to change their background colors.

I never tried, but I have doubt about the listbox header button type allows 
that. 

-- 
Arnaud de Montard 





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Electronic Signature Pads

2017-12-28 Thread Peter Bozek via 4D_Tech
On Thu, Dec 28, 2017 at 12:57 AM, Jim Crate via 4D_Tech <
4d_tech@lists.4d.com> wrote:
>
> The ScripTel also integrates with Adobe Reader for cryptographically
signing PDF documents, if that’s necessary. I used 4D to create a PDF,
launch Adobe Reader with that PDF, monitor the file for an appropriate
number of changes (depending on how many signatures I needed), and email
the signed PDF to the appropriate recipients.
>

I would be interested to know how this part work for you. I did something
similar - 4D generates .fdf file, it is open in Acrobat Readed and then 4d
monitors changes in modification date. I tried to use lsof on Mac to
monitor if file is still open, but this seems unreliable. Checking
modification date has its shortcomings as well.


--

Peter Bozek
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**