SDI on WIndows doesnt respect a toolbar

2019-01-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

I am testing the SDI interface on Windows with 4Dv17 64-bit.

I am happy to get rid of the gray background, however, the windows now don't 
respect the use of a toolbar anymore
I can maximize the windows, and the titlebar gets under the toolbar, so no way 
to move or close the window anymore.

Is this normal behavior?
Does this make sense?
Does using a toolbar with SDI make sense (I think it does)
Is this a bug?
Is there anything I can do about it?

Gr,
Piotr


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

close box of the MDI window in 64-bit is not triggered

2019-01-24 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When using the close box of the MDI window in 32-bit the form method of the 
frontmost window is triggered.
However, when using the close box of the MDI window in 64-bit nothing happens.

Does anybody know why this is?

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

Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all,

First of all, I must say I am no hardware expert, so maybe this is a stupid 
question.

It seems that 4D 32-bit Volume desktop only uses 1 core.
But does 4D 64-bit Volume desktop use all available cores?

Gr,
Piotr

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

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Pat,

Thanks for your answer.

So then the real questions are :

  *   Is it correct that 4D Volume desktop uses only 1 core?
  *   How can I enable 4D Volume desktop to use all cores?

Gr,
Piotr


Piotr
I believe the "bitness" has more to do with how it uses RAM than cores.
Pat

On Wed, 30 Jan 2019 at 09:13, Piotr Chabot Stadhouders via 4D_Tech <
4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote:

> Hi all,
>
> First of all, I must say I am no hardware expert, so maybe this is a
> stupid question.
>
> It seems that 4D 32-bit Volume desktop only uses 1 core.
> But does 4D 64-bit Volume desktop use all available cores?
>
> Gr,
> Piotr
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Lutz, Jeffrey,

Thanks for your answers.

So it is about using 64-bit, and writing preemptive-safe methods
I see a lot of 4D commands turning into preemptive-safe commands, so that's good

Now for me probably work has to be done, but I am confused what is needed.

  1.  We don't use 4D tables, we use 4D for OCI and variables and arrays
  2.  We don't use 4D server, we use 4D Volume desktop
  3.  We start 1 or more processes (new process) in which we show a dialog with 
data (the variables and arrays)
  4.  We use a whole lot more in 4D, but nothing to do with 4D datafiles / 4D 
data query 4D queries etc.

So, does 4D automagically use more cores in 4D 64-bit or what?
When I follow all pre-emptive advise in the docs or from the iNUG, do I have a 
multi-core application?

Gr,
Piotr


Compiled 64-bit Volume Desktop can use more than one core, depending upon how 
you write your code. 64-bit 4D is required, as is being compiled, in the 
current implementation.

You need to write preemptive-safe methods and your methods need to be marked as 
preemptive in the method properties.

> On Jan 30, 2019, at 4:48 AM, Pat Bensky via 4D_Tech 
> <4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote:
>
> Piotr
> I believe the "bitness" has more to do with how it uses RAM than cores.
> Pat
>
> On Wed, 30 Jan 2019 at 09:13, Piotr Chabot Stadhouders via 4D_Tech <
> 4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote:
>
>> Hi all,
>>
>> First of all, I must say I am no hardware expert, so maybe this is a
>> stupid question.
>>
>> It seems that 4D 32-bit Volume desktop only uses 1 core.
>> But does 4D 64-bit Volume desktop use all available cores?
>>
>> Gr,
>> Piotr
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeff,

Thanks again for your answer.

I understand, but I think I am having a problem.

Suppose our app depends heavily on UI (and it does😊)
Suppose our app starts 8 processes showing 8 dialogs showing all kind of 
variables and arrays, and that need to be refreshed every X seconds
Then no UI is out of the question, and pre-emptive methods don’t help me a lot 
I guess.
Now suppose I have a machine with 4 cores (What I have heard it is getting 
difficult to get a machine without multi-core)
How can I use the 4 cores to its full extend?
I am hoping you are not going to say I can’t

So, when it is impossible to use 4 cores within the application, is there a way 
to assign a core to the application?
So when starting the application tell the machine to use core 1
When starting a second instance of the application tell the machine to use core 
2
Etc.

We are in a citrix environment, and all instances of our 4D Volume Desktop 
application now only use 1 core, and even worse it is using THE SAME core
Now Citrix splits the time assigned to 1 4D instance by the number of 4D 
instances launched, while the other cores are doing totally nothing

Is there a solution for this?
By the way, and maybe for some of you this is obvious, but not for me: why must 
there be no UI involved?
Wy can’t I say in 4D “start a new process showing a dialog and use core 2”, 
“start another process showing a dialog and use core 4”?

Gr,
Piotr


No, not at all. You have to first mark the method that's called first from New 
Process as preemptive. That method, plus all methods called by that method, and 
all methods called by those methods, must be written in a preemptive-safe 
manner (i.e. no UI, no unsafe commands, no plug-ins).

If all that happens, that process will be scalable across cores.

> On Jan 30, 2019, at 1:25 PM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote:
>
> So, does 4D automagically use more cores in 4D 64-bit or what?
> When I follow all pre-emptive advise in the docs or from the iNUG, do I have 
> a multi-core application?
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim,

Now for me an important question: is 4D for Oci pre-emptive?

In short: We use for 90% UI and 4D for OCI commands. How can I make use of more 
than 1 core?

Nu colleague says Word and Excel also use more cores, so why can't we?

Gr,
Piotr


I see, this is relatively new development - I have sent a request to the Doc 
Team to update the documentation to reflect this.



In either case, it would appear that although the SDK has been updated, the 
individual plugin developers would still need to update their plugins and make 
those preemptive versions available... and even then, there are still certain 
plugin calls that are not thread safe, so it shouldn’t be expected that plugins 
will just work in preemptive mode unless they are using the latest SDK and 
specifically coded as such.



Just because the SDK is being made preemptive does not mean that all plugins 
are inherently preemptive also.



-Tim

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

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako,

> if you feel you have reason to assign a CPU to an application,
> there is CPU affinity (Google the word affinity)."

Thanks for the tip


> if you run 4D (64-bit, v17) normally on Windows,
> the work will spread across multiple core naturally.

Can you confirm that this is only with 64-bit 4D applications, not with 32-bit 
4D applications?


Gr,
Piotr



it is normally a good thing that work is spread across multiple cores.

it prevents the CPU from over heating.



a cooperative thread may use many cores,

just not "at the same time".



anyway,

if you feel you have reason to assign a CPU to an application,

there is CPU affinity (Google the word affinity).



but you now reveal that you are using Citrix.

so your question is really about Citrix.



if you run 4D (64-bit, v17) normally on Windows,

the work will spread across multiple core naturally.



you can also launch multiple instances of 4D,

in which case several cores may be used concurrently.



however, engine merged applications are prevented from starting a second 
instance,

because it has its own private structure and data file.
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

close box of the MDI Application window in 64-bit is not triggered

2019-02-01 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When using the close box of the Application window in 32-bit the form method of 
the frontmost window is triggered.
However, when using the close box of the MDI Application window in 64-bit 
nothing happens.

Does anybody know why this is?

Gr,
Piotr

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

Best way to detect pasting a picture in 4D Write Pro

2019-04-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all,

Does anybody know what is the best way to detect pasting a picture in 4D Write 
Pro?

I understand I can do it with some form event type, but I think I have to run 
this code every time something is pasted into the Write Pro Area, so also when 
pasting text for example

Gr,
Piotr

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

Web area and not secure site

2019-04-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

4D v17R3 Windows

We have an internal website (development) that we want to access in a web area
Because its an internal URL, and for now in development, we don't have a 
certificate for it right now
So, when using Internet explorer, we get a message "This site is not secure"
However, we can proceed and after seeing the error DLG_FLAGS_INVALID_CA, 
DLG_FLAGS_SEC_CERT_CN_INVALID we can force to go further

When using a webarea (not embedded, because embedded looks nothing like it 
should be) however I get the message "This site is not secure", but with 
errorcode 0
And more important, I am not able to proceed to the website

Does anybody know how I can solve this problem?

Gr,
Piotr

P.S. I don't use the embedded version because
* in 32-bit it looks nothing like it should
* in 64-bit (Blink) I get an blank HTML page, and nothing is shown

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

RE: Web area and not secure site

2019-04-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeremy,

Thanks for your thoughts, but it looks all has to do with having a https url 
without having a valid certificate for the web site
It looks like the 64-bit embedded web rendering engine doesn’t show anything in 
that case
When I make the web server accept using http all works fine, what of course 
isn’t desirable

So: When using 64-bit embedded web rendering and make a call to an unsecure 
website (https without valid certificate) it show a blank page
I would expect the same behavior as with Chrome, and this certainly isn’t just 
a blank page

Van: Jeremy French 
Verzonden: donderdag 11 april 2019 16:35
Aan: 4D iNUG Technical <4d_tech@lists.4d.com>
CC: Piotr Chabot Stadhouders 
Onderwerp: Re: Web area and not secure site

Have you tried making these calls in the form’s “form method”.

In the form’s “On Load” event

 WA OPEN URL(*;$objName_webArea_t;"about:blank")
 WA SET PAGE CONTENT(*;$objName_webArea_t;" ";"file:///“)
 SET TIMER(-1)
In the form’s “On Timer” event

 SET TIMER(0)
 WA OPEN URL(*;$objName_webArea_t;"about:blank")
 WA SET PAGE CONTENT(*;$objName_webArea_t;" ";"file:///“)

Also see:
https://doc.4d.com/4Dv17/4D/17.1/SET-TIMER.301-4178784.en.html


On Apr 11, 2019, at 3:25 AM, Piotr Chabot Stadhouders via 4D_Tech 
<4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>> wrote:

 I don't use the embedded version because
* in 64-bit (Blink) I get an blank HTML page, and nothing is shown

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

Webarea Embedded rendering engine show blank pages in 64-bit

2019-05-07 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Tested on Windows

In 4Dv17R4 32-bit I have some html pages that are shown in a Webarea
Because I need "Access 4D methods", I use the embedded rendering engine
Also, I like to use the embedded rendering engine in 64-bit because of Blink

However, when using embedded rendering engine, the pages (that work in v17R4 
32-bit) don't show in 4Dv17R5 64-bit
When NOT using the embedded rendering engine the pages show up, but I can't use 
the "Access 4D methods"

What could be the problem?

Thanks,
Piotr

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

RE: Webarea Embedded rendering engine show blank pages in 64-bit

2019-05-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Pat,

I found out that when using WA SET PAGE 
CONTENT(*;$area_object;$html;"file:///") it doesn't show up, but when saving it 
to file and assign "file:///"+Document to the URL variable it DOES

The docs say:
"Note: Under Windows, you cannot call this command unless a page has already 
been loaded previously into the Web area. If necessary, you can pass the 
"about:blank" URL in order to load a blank page."
But I don't know how to pass the "about:blank" URL, or this also doesn't work

Gr,
Piotr

> -Oorspronkelijk bericht-
> Van: Pat Bensky 
> Verzonden: dinsdag 7 mei 2019 20:03
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Webarea Embedded rendering engine show blank pages in 64-
> bit
> 
> Piotr,
> I have noticed the same problem. I guess it needs to be reported as a bug :) 
> Pat
> 
> On Tue, 7 May 2019 at 18:21, Piotr Chabot Stadhouders via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
> > Hi,
> >
> > Tested on Windows
> >
> > In 4Dv17R4 32-bit I have some html pages that are shown in a Webarea
> > Because I need "Access 4D methods", I use the embedded rendering
> > engine Also, I like to use the embedded rendering engine in 64-bit
> > because of Blink
> >
> > However, when using embedded rendering engine, the pages (that work in
> > v17R4 32-bit) don't show in 4Dv17R5 64-bit When NOT using the embedded
> > rendering engine the pages show up, but I can't use the "Access 4D
> > methods"
> >
> > What could be the problem?
> >
> > Thanks,
> > Piotr
> >
> >
> 
> **
> > 4D Internet Users Group (4D iNUG)
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >
> 
> **
> 
> 
> 
> --
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *

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

RE: Webarea Embedded rendering engine show blank pages in 64-bit

2019-05-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk,

Thanks for your input.

We generate html on the fly, with data retrieved by queries on the database
I preferably don't want to store these temp html files on disk, ending up with 
cleaning up a lot of temp pages

As said, on 4Dv17R4 32-bit, WA SET PAGE CONTENT works fine with the embedded 
rendering engine (I also use css and javascript in the html)

Maybe you, or someone else, know of good reasons why this shouldn't work with 
Blink on 4Dv17 64-bit?

Gr,
Piotr


> Piotr,
> I use web areas quite a lot. WA SET PAGE CONTENT is tricky to make work if
> it's not initialized and generally not on the first page. I create pages on
> disk instead in a WA folder I setup in Resources. This also gives me a
> place to store Assets (CSS, JS, etc.) I use in the pages. Writing the pages
> to disk also lets you troubleshoot them in an actual browser which can be
> helpful during development. It also gives you the option to design a
> default page for your web areas.


Van: Piotr Chabot Stadhouders 
Verzonden: dinsdag 7 mei 2019 19:21
Aan: 4D iNUG Technical <4d_tech@lists.4d.com>
CC: Piotr Chabot Stadhouders 
Onderwerp: Webarea Embedded rendering engine show blank pages in 64-bit

Hi,

Tested on Windows

In 4Dv17R4 32-bit I have some html pages that are shown in a Webarea
Because I need "Access 4D methods", I use the embedded rendering engine
Also, I like to use the embedded rendering engine in 64-bit because of Blink

However, when using embedded rendering engine, the pages (that work in v17R4 
32-bit) don't show in 4Dv17R5 64-bit
When NOT using the embedded rendering engine the pages show up, but I can't use 
the "Access 4D methods"

What could be the problem?

Thanks,
Piotr

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

Special character euro sign in JSON string

2019-06-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

I have a JSON string with a special character, the euro sign
This character is represented in JSON by u0080

An example of part of the JSON string in 4D when watching in the debugger is 
 ,"amount":"250.00","valutasign":"\\u0080", 

When I use $obj:=JSON Parse($json_string) I don't get the euro sign returned
Does anybody know what the problem is?

Gr,
Piotr

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

RE: Special character euro sign in JSON string

2019-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako,

We use Oracle to generate the JSON, and use as character set WE8ISO8859P1
Although everything else works fine with this charset (also the euro sign), it 
seems that with JSON Oracle converts the euro sign to \u0080 when using 
WE8ISO8859P1 instead of \u20AC

So, the problem is with JSON in Oracle and WE8ISO8859P1
Unfortunately knowing this doesn't solve my problem

Gr,
Piotr

> -Oorspronkelijk bericht-
> Van: Keisuke Miyako 
> Verzonden: dinsdag 11 juni 2019 10:03
> Aan: 4D iNug Technical <4d_tech@lists.4d.com>
> Onderwerp: Re: Special character euro sign in JSON string
> 
> JSON string should be represented in unicode
> 
> https://www.json.org
> 
> \u0080 is not the euro sign.
> 
> $euro:=JSON Parse("{\"euro\":\"\\u20AC\"}")
> 
> > 2019/06/11 16:22、Piotr Chabot Stadhouders via 4D_Tech
> <4d_tech@lists.4d.com>ăźăƒĄăƒŒăƒ«:
> > When I use $obj:=JSON Parse($json_string) I don't get the euro sign
> > returned Does anybody know what the problem is?
> 
> 
> 

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

Which extension does Google Blink engine use when showing PDF

2019-06-27 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Windows, 4D V17 64-bit
We use a webarea with the embedded web rendering engine checked, so 4D is using 
Google Blink
In this area we show PDFs and it look very nice I must say

However, we ant to change the default zoom for the PDFs
I have changed the zoom preference in Acrobat on my machine, but without effect

So, does anybody know which extension the blink web rendering uses to show PDFs
Or does anybody know how to set the default zoom for PDF?

Thanks,
Piotr

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

Another splitter question

2019-09-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

I have a form with three listboxes on it, with in between 2 vertical splitters

I want to accomplish the following, preferably only by setting object 
properties :
When I move the left splitter the left listbox must size, the middle listbox + 
right splitter must move, and the right listbox must size
When I move the right splitter the middle and right listbox must size (the left 
splitter + listbox must stay as is)

I am having troubles to find a (good) way to accomplish this

Anybody any tips?

Gr,
Piotr

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

RE: Another splitter question

2019-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk,

Thanks for your answer.

The way you describe the properties is the way I set them, and then listbox_2 
is resized when splitter_1 is moved. (Pusher property is off)
This most of the time is the wanted behavior.
However, in this case what I want is :
- when I move splitter_1 I want listbox_2 and splitter_2 to MOVE and listbox_3 
to resize
- when I move splitter_2 I want listbox_2 and listbox_3 to resize

Gr,
Piotr

-Oorspronkelijk bericht-
Van: Kirk Brooks  
Verzonden: Wednesday, 25 September 2019 17:18 
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
Onderwerp: Re: Another splitter question

Piotr,

listbox_1  |  listbox_2  |  listbox_3

listbox_1:  horizontal resize = grow; vertical resize= grow (I assume)
splitter_1:  horizontal resize = none; vertical resize= grow
listbox_2:  horizontal resize = grow; vertical resize= grow
splitter_2: horizontal resize = none; vertical resize= grow
listbox_3: horizontal resize = grow; vertical resize= grow

Notes:

Be sure the splitters start before the top of the listbox and end after the 
listbox. It won't work if the splitters are not longer, at least by a pix on 
each end. At least in my experience.

You won't be able to size the listbox smaller than the layout in the form 
editor.




On Wed, Sep 25, 2019 at 1:05 AM Piotr Chabot Stadhouders via 4D_Tech < 
4d_tech@lists.4d.com> wrote:

> Hi,
>
> I have a form with three listboxes on it, with in between 2 vertical 
> splitters
>
> I want to accomplish the following, preferably only by setting object 
> properties :
> When I move the left splitter the left listbox must size, the middle 
> listbox + right splitter must move, and the right listbox must size 
> When I move the right splitter the middle and right listbox must size 
> (the left splitter + listbox must stay as is)
>
> I am having troubles to find a (good) way to accomplish this
>
> Anybody any tips?
>
> Gr,
> Piotr
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



--
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *

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

RE: Another splitter question

2019-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Kirk,

Yes, I already was afraid this would be the final conclusionâ˜č

I know I can set splitter_2 and listbox_2 and listbox_3 by setting the 
coordinates of the objects while moving splitter_1 (in on clicked event)
I also know I can assign a value to splitter_2 and then the other objects react 
on this assignment while moving splitter_1 (in on clicked)

My problem with this is that I find it to be not very intuitive
I get all kinds of unexpected sizing and moving of the objects

Gr,
Piotr

Van: Kirk Brooks 
Verzonden: Thursday, 26 September 2019 15:39
Aan: Piotr Chabot Stadhouders 
Onderwerp: Re: Another splitter question

Piotr,
On Thu, Sep 26, 2019 at 12:57 AM Piotr Chabot Stadhouders 
mailto:p.stadhoud...@timeff.com>> wrote:
However, in this case what I want is :
- when I move splitter_1 I want listbox_2 and splitter_2 to MOVE and listbox_3 
to resize
- when I move splitter_2 I want listbox_2 and listbox_3 to resize

I don't think 4D will do that natively. When you move splitter 1 it causes 
listbox 2 to resize but the resize 'flag' (no idea if that's the actual 
mechanism) is not passed on to splitter 2 or listbox 3. So it only affects 
listbox 2.

Conversely when you resize the form itself, making it larger for example, only 
listbox 3 is affected.

What you want would be a sort of auto-distribute resize option. That's 
something different and more complicated. If this is a super critical feature 
you simply must have I think you will need to manage it yourself using the On 
resize form event. I've done that sort of thing a couple of times. It's tedious 
but possible. If the number of items is not great, and it sounds like it's not, 
the performance is not affected too much.
--
Kirk Brooks
San Francisco, CA
===

What can be said, can be said clearly,
and what you can’t say, you should shut up about

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

Database 
 is write protected (AGAIN)

2019-10-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

4D v17R5 64-bit, Windows

We use a 4D Volume Desktop application in a Citrix environment
It seems that in 64-bit there is no possibility to use a Virtual Store in 
Windows
So, when launching our app for the second time, we get the message “Database 
 
is write protected”
This is strange because we have set the option “"Do not display warning when 
structure file is in read only"”
This has nothing to do with the datafile, because for this we already use the 
“Default Data/Default.4DD” technique and this works fine

Because we don’t use the 4D datafile we have no problems for the structure file 
and datafile to be in read only mode
We are able to work with our application in a normal way, except for the 
annoying message at startup.

Nowadays I think it is completely normal to start applications in a citrix 
environment by different users in protected mode, so tips for using 4D server 
is a no go

So, does anybody know what to do about this annoying message, or where it comes 
from?

Thanks,
Piotr

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

RE: Database 
 is write protected (AGAIN)

2019-10-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

As explained in a previous post we have problems launching 4D Volume desktop 
64-bit app more than once in a citrix environment.
We solved this in the past by using a virtual store on Windows.
However, this is not supported anymore with 64-bit applications.

Microsoft states:
"Virtualization supports only 32-bit applications. Non-elevated 64-bit
applications simply receive an access denied message when they attempt
to acquire a handle (a unique identifier) to a Windows object. Native
Windows 64-bit applications are required to be compatible with UAC and
to write data into the correct locations.

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd835540(v=ws.10)?redirectedfrom=MSDN
"

Shouldn't 4D respect this? Or can we do something ourselves to solve this 
problem?


-Oorspronkelijk bericht-
Van: Piotr Chabot Stadhouders  
Verzonden: Thursday, 3 October 2019 09:52
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
CC: Piotr Chabot Stadhouders 
Onderwerp: Database 
 is write protected (AGAIN)

Hi,

4D v17R5 64-bit, Windows

We use a 4D Volume Desktop application in a Citrix environment It seems that in 
64-bit there is no possibility to use a Virtual Store in Windows So, when 
launching our app for the second time, we get the message “Database 
 is write 
protected”
This is strange because we have set the option “"Do not display warning when 
structure file is in read only"”
This has nothing to do with the datafile, because for this we already use the 
“Default Data/Default.4DD” technique and this works fine

Because we don’t use the 4D datafile we have no problems for the structure file 
and datafile to be in read only mode We are able to work with our application 
in a normal way, except for the annoying message at startup.

Nowadays I think it is completely normal to start applications in a citrix 
environment by different users in protected mode, so tips for using 4D server 
is a no go

So, does anybody know what to do about this annoying message, or where it comes 
from?

Thanks,
Piotr

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

RE: Re: 4D v17r4 Windows Print To PDF ignoring PAGE SETUP

2019-10-10 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Cameron,

Did you find a solution for this?
I am working on a Windows 10 64-bit machine and have the same problem
Whatever I do to change the paper size:
SET PRINT OPTION(Paper option;1130;820)
SET PRINT OPTION(Paper option;"A3")

The output to Windows Print To PDF doesn’t respect any of my settings

Gr,
Piotr

Van: Piotr Chabot Stadhouders 
Verzonden: Thursday, 10 October 2019 13:55
Aan: Piotr Chabot Stadhouders 
Onderwerp: Re: 4D v17r4 Windows Print To PDF ignoring PAGE SETUP

The newest versions of 4D do better if you set these options in code instead of 
a saved page setup. Try using SET PRINT OPTION to change it to landscape mode.

> On Jul 3, 2019, at 6:13 PM, Cameron Ambrose via 4D_Tech 
> <4d_t...@xxx.xxx> wrote:
>
> Just updated to 4D v17r4 and it appears that when using the Windows 10 (64 
> bit) PDF printer, the client is no longer honouring the PAGE SETUP definition 
> and instead just printing in portrait letter.

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

RE: Database 
 is write protected (SOLVED)

2019-10-10 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

After investigating the problem further we found out that the use of the 
command OPEN DATA FILE was causing the error
Accidently (not completely of course) I stumbled upon the "Use new architecture 
for application deployments" compatibility option since 4D v15 R4
This was exactly the option I was looking for, and must have overlooked this.

This option causes 4D to write the location of the last data file opened in the 
application's user preferences folder, and not in de structure file
https://docs.4d.com/4Dv17R5/4D/17-R5/Data-file-management-in-final-applications.300-4163571.en.html

Gr,
Piotr


-Oorspronkelijk bericht-
Van: Piotr Chabot Stadhouders  
Verzonden: Tuesday, 8 October 2019 16:13
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
CC: Piotr Chabot Stadhouders 
Onderwerp: RE: Database 
 is write protected (AGAIN)

Hi,

As explained in a previous post we have problems launching 4D Volume desktop 
64-bit app more than once in a citrix environment.
We solved this in the past by using a virtual store on Windows.
However, this is not supported anymore with 64-bit applications.

Microsoft states:
"Virtualization supports only 32-bit applications. Non-elevated 64-bit 
applications simply receive an access denied message when they attempt to 
acquire a handle (a unique identifier) to a Windows object. Native Windows 
64-bit applications are required to be compatible with UAC and to write data 
into the correct locations.

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd835540(v=ws.10)?redirectedfrom=MSDN
"

Shouldn't 4D respect this? Or can we do something ourselves to solve this 
problem?


-Oorspronkelijk bericht-
Van: Piotr Chabot Stadhouders 
Verzonden: Thursday, 3 October 2019 09:52
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
CC: Piotr Chabot Stadhouders 
Onderwerp: Database 
 is write protected (AGAIN)

Hi,

4D v17R5 64-bit, Windows

We use a 4D Volume Desktop application in a Citrix environment It seems that in 
64-bit there is no possibility to use a Virtual Store in Windows So, when 
launching our app for the second time, we get the message “Database 
 is write 
protected”
This is strange because we have set the option “"Do not display warning when 
structure file is in read only"”
This has nothing to do with the datafile, because for this we already use the 
“Default Data/Default.4DD” technique and this works fine

Because we don’t use the 4D datafile we have no problems for the structure file 
and datafile to be in read only mode We are able to work with our application 
in a normal way, except for the annoying message at startup.

Nowadays I think it is completely normal to start applications in a citrix 
environment by different users in protected mode, so tips for using 4D server 
is a no go

So, does anybody know what to do about this annoying message, or where it comes 
from?

Thanks,
Piotr

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

HIDE MENU BAR in On Startup database method

2019-10-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When starting an 64-bit Engined Application, the 4D menu bar is visible for a 
moment, even while I call HIDE MENU BAR in the On Startup database method
I am talking about the menu:
File|Edit|Run|Design|Records|Tools|Windows|Help

I don’t want that users see (and click) on this menu bar, so I call HIDE MENU 
BAR in the On Startup database method
As far as I know this does work I 4D 32-bit version

Can anybody confirm this?
Is this a bug?

Thanks,
Piotr

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

RE: HIDE MENU BAR in On Startup database method

2019-10-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi John,

Thanks for the update!
So the bug has been reported a while ago😊

Do you know there is a way to vote for this bug to be solved?

Gr,
Piotr

-Oorspronkelijk bericht-
Van: John DeSoi  
Verzonden: Friday, 11 October 2019 18:04
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
Onderwerp: Re: HIDE MENU BAR in On Startup database method

Reported as a bug in January 2018 - ACI0097822.

John DeSoi, Ph.D.


> On Oct 11, 2019, at 8:24 AM, Piotr Chabot Stadhouders via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> When starting an 64-bit Engined Application, the 4D menu bar is 
> visible for a moment, even while I call HIDE MENU BAR in the On Startup 
> database method I am talking about the menu:
> File|Edit|Run|Design|Records|Tools|Windows|Help
> 
> I don’t want that users see (and click) on this menu bar, so I call 
> HIDE MENU BAR in the On Startup database method As far as I know this 
> does work I 4D 32-bit version
> 
> Can anybody confirm this?
> Is this a bug?


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

[HIGH] Why does 4D does not respect my regular 4D filtering option disabled for all

2019-10-24 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

We have a database where the 4D filtering option is set to “disabled for all”
However, in some installations we still get Error 48 in 4D Write pro documents 
where we use expressions.

We have Enable user settings in external file checked
Can there be a problem with our installation?
Why do we still get Error 48 although we allow all commands and methods?

Where is this setting stored?

Thanks in advance,
Piotr


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

RE: [HIGH] Why does 4D does not respect my regular 4D filtering option disabled for all

2019-10-24 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

We found the problem
It seems that when the Preferences folder is missing in the database folder, 
and 4D is not able to create the Preferences folder, the error 48 appears

Gr,
Piotr

-Oorspronkelijk bericht-
Van: Piotr Chabot Stadhouders  
Verzonden: Thursday, 24 October 2019 10:46
Aan: 4D iNug Technical <4d_tech@lists.4d.com>
Onderwerp: [HIGH] Why does 4D does not respect my regular 4D filtering option 
disabled for all

Hi,

We have a database where the 4D filtering option is set to “disabled for all”
However, in some installations we still get Error 48 in 4D Write pro documents 
where we use expressions.

We have Enable user settings in external file checked Can there be a problem 
with our installation?
Why do we still get Error 48 although we allow all commands and methods?

Where is this setting stored?

Thanks in advance,
Piotr


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

Write Pro Hide/clear pictures when printing

2019-10-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

We want to print a Write Pro document without printing the contained pictures
Say we print to paper that has corporate identity, we don’t want to print the 
logo that is inside the Pro document
So we want copy the pro document to a new one, and in this new document 
hide/clear the pictures (logo) and then print

When I set the picture to 0 bytes, the picture is not printed but I see an ugly 
black rectangle around it, so this does not work
So, is there a way to procedurally hide/clear the pictures

Gr,
Piotr

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

Print Object error #6

2019-11-13 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

In some occasion we are getting an error when using the command Print Object
The message is “The form cannot be printed. Error #6”

Does anybody know what this error number means?

Gr,
Piotr

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

DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

We use DOCUMENT LIST and COPY DOCUMENT to handle scans
The documents are copied by a scanner to a certain folder on a Windows server, 
where we are picking them up and process them
It seems that because of slow copying the documents are picked up too early by 
us
How can I ensure that the documents are totally copied by the scanner? COPY 
DOCUMENT to an temporary folder doesn’t seem to solve the problem

Gr,
Piotr

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

Re: DOCUMENT LIST : how do I know the documents are valid

2019-11-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Dear Alexander,

Unfortunately, I believe the “locked” attribute doesn’t return true when 
copying is in progress

But thanks for your tip.

Gr,
Piotr


could this help?

GET DOCUMENT PROPERTIES ( document ; locked ; invisible ; created on ; created 
at ; modified on ; modified at )

> Am 21.11.2019 um 11:20 schrieb Piotr Chabot Stadhouders via 4D_Tech 
> <4d_t...@xxx.xxx>:
>
> Hi,
>
> We use DOCUMENT LIST and COPY DOCUMENT to handle scans
> The documents are copied by a scanner to a certain folder on a Windows 
> server, where we are picking them up and process them
> It seems that because of slow copying the documents are picked up too early 
> by us
> How can I ensure that the documents are totally copied by the scanner? COPY 
> DOCUMENT to an temporary folder doesn’t seem to solve the problem
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PRINTERS LIST

2019-11-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Dave,

"Apparently 4D loads it’s copy of current available printers at launch"

We have an 4D v17 64-bit engined App running in a Citrix environment.
We got the feeling that, when a user takes over his session in another room, he 
"looses" the connection to the available printers, even when we call printers 
list.

How did you find out the above?

Also, the docs for printers list say:
"On the other hand, its location and model type are linked to its physical 
characteristics. Therefore, you can use the optional array values to check the 
characteristics of the selected printer — typically, you can check that all the 
client machines use the same printer."

Do you know what they mean with that?

Gr,
Piotr



"
ï»żOn 07/10/2019, 17:10, "4D_Tech on behalf of David Ringsmuth via 4D_Tech" 
<4d_tech-boun...@xxx.xxx on behalf of 
4d_t...@xxx.xxx>
 wrote:

Apparently 4D loads it’s copy of current available printers at launch

Obviously there are times when available printers change during a 4D user login 
session.

There should be an option in the PRINTERS LIST command that causes 4D to 
refresh it’s copy of the available printers.

Should this be a feature request?
"

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

on Windows using SET CURRENT PRINTER(Generic PDF driver) with SET PRINT OPTION(Destination option;3;$path) does not restore settings

2019-12-04 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When using SET CURRENT PRINTER(Generic PDF driver) on Windows 10 with SET PRINT 
OPTION(Destination option;3;$path) does not restore the checkbox “Print To File”
I use the Microsoft Print To PDF printer
The checkbox “Print To File” stays on when done printing
I believe this can cause problems when users want to print afterwards to a 
“normal” printer

Can anybody confirm this?

Gr,
Piotr

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

web area and memory use

2019-12-09 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

Windows 64 bit, 4D v17r5, Embedded rendering engine

We use 4D Web Area to show some HTML based reports
The reports are formatted by CSS and on some of the elements we enabled user 
interaction with Javascript
Sometimes there cab be quite an amount of HTML elements in the report, because 
of a lot of data

Anyway, when generating quite a large report with CSS and Javascript embedded, 
and show this in a web area, can someone tell me if there are some (memory) 
limits on this?
I am asking this because some of our users now and then, suddenly, get blank 
output while this shouldn’t be the case
Is there a way to see memory usage? Are there known memory leaks? I am touching 
in the dark with this, but my feeling is we are having a web area memory problem

I hop someone can help me,
Piotr

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

XML Null reference with DOM Find XML element

2019-12-17 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

4Dv17R6, Windows 64-bit
What is the best way to test if a XML DOM element is a Null reference?
Especially when using DOM Find XML element?

The docs say “If the command has been executed correctly, the system variable 
OK is set to 1”
Does it mean “if the command finds an element”? Finding nothing is also 
“executed correctly”

In our app we tested on “”, but now it seems (64-bit?) that a 
null reference consists of 32 zeroes instead of 16
I only see 1 mention about null reference in XML but it tals about 16 zeroes

Does anybody know more about this?

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

Re: XML Null reference with DOM Find XML element

2019-12-17 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Koen,

Thanks for he snippet

>> Hi Piotr,

>> I have a small method DOM_validRef which basically uses this test:

>> if(Replace string($ref;"0";"")="")
>> $valid:=false
>> end if

>> 64bit indeed uses 32 zero chars instad of 16, but this code handles both 
>> situations (and future ones, if we live long enough to make the transiton to 
>> 128bit systems...).

>> My method also checks if all chars in the XML ref are valid hex chars (0-9 
>> A-F), but that might be overkill.

>> Kind regards,
>> Koen

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

RE: Web Area not visible

2020-01-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeremy,

First of all the best wishes for 2020

I have the same problem, I am interested in your solution, and sort of 
understand it, but not completely
Some people say loading the content from disk with WA OPEN URL solves the 
problem, but I don't like this because of potential critical information in the 
HTML

So, when having a variable with HTML content in it, that I want to show on 
load, without having to save it on disk where do I put the HTML content?

Thanks in advance,
Piotr Chabot Stadhouders
Rotterdam, Netherlands

-Oorspronkelijk bericht-
Van: Jeremy French  
Verzonden: vrijdag 8 november 2019 04:48
Aan: 4D iNUG Technical <4d_tech@lists.4d.com>
CC: Mitchell Shiller 
Onderwerp: Re: Web Area not visible

Hi Mitch,

I resolved the failure (of the embedded web engine to display when a form 
loads) by calling (in the form's Form Method) the following:

Case of
: (Form event=On Load)

JFU_WEB_AREA_DISPLAY_FIX ("webArea")
SET TIMER(-1)

: (Form event=On Timer)

JFU_WEB_AREA_DISPLAY_FIX ("webArea")
SET TIMER(0)

End case 

JFU_WEB_AREA_DISPLAY_FIX executes:

WA OPEN URL(*;$objName_webArea_t;"about:blank")
WA SET PAGE CONTENT(*;$objName_webArea_t;" ";"file:///")

Best regards,
- Jeremy French

> On Nov 7, 2019, at 3:06 PM, Mitchell Shiller via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Anyone else notice this problem?


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

auto row height only with array based listboxes?

2020-01-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

First of all best wishes for 2020!!

Can anybody confirm that the command
LISTBOX SET PROPERTY(*;"mylistbox";lk auto row height;lk yes)
only works with array based listboxes, and not collection based listboxes?

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

Write Pro disable spell checking

2020-01-10 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When displaying a write pro area in a form, on default I want to disable spell 
checking

I thought I could do this with the view property wk spell enable

$viewProps[wk spell enable]:=false
WP SET VIEW PROPERTIES(*;$wpro_area;$viewProps)


However, when doing this the spelling options in the context menu are gone, and 
in the write pro toolbar the "enable spelling" button is disabled
So, the user cannot enable spell cheking

Is there another way to disable spell checking? (On load, without the write pro 
area having the focus)
Im a doing something wrong?

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

first call in form of WA EXECUTE JAVASCRIPT FUNCTION takes 6 seconds

2020-04-28 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi,

When opening calling WA EXECUTE JAVASCRIPT FUNCTION the first time in a form 
for a web area it takes 6 seconds to complete
Successive calls run as expected
Does this have something to do with loading certain libraries?
Does anybody know why does this take so long?
Can I do something about this?

I have a javascript function to scroll to a certain element within my html

function scroll_to_id(my_id) {
  var elmnt = document.getElementById(my_id);
   elmnt.scrollIntoView()
};

and WA EXECUTE JAVASCRIPT FUNCTION(*;$area;"scroll_to_id";*;$element) use to 
execute it

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

<    1   2