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 thi

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

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

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 inform

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

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 not

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

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

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 c

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

2019-11-21 Thread Piotr Chabot Stadhouders via 4D_Tech
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 proces

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 docu

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 iNU

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 (lo

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 A

[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

RE: HIDE MENU BAR in On Startup database method

2019-10-12 Thread Piotr Chabot Stadhouders via 4D_Tech
erwerp: 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 4

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

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

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 sett

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 s

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 becaus

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

RE: Another splitter question

2019-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
x27;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 >

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 mu

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,

RE: Special character euro sign in JSON string

2019-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
r 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

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

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

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

2019-05-08 Thread Piotr Chabot Stadhouders via 4D_Tech
ericht- > 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

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

RE: Web area and not secure site

2019-04-12 Thread Piotr Chabot Stadhouders via 4D_Tech
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 b

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 p

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

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 **

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 6

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 hav

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

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
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

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

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
lto: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: > >

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

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
ed, 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

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

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

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.

RE: Calling java

2018-12-04 Thread Piotr Chabot Stadhouders via 4D_Tech
/jsonrpc4j John DeSoi, Ph.D. > On Dec 4, 2018, at 1:48 AM, Piotr Chabot Stadhouders via 4D_Tech > <4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote: > > We need to call some java classes from within 4D. > These classes deliver an interface to interact with a smart card connecte

Calling java

2018-12-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, We need to call some java classes from within 4D. These classes deliver an interface to interact with a smart card connected to the local PC Does anybody have an opinion how to handle this? I don't see any other way than to use these java classes, and one way or the other call this java

RE: Miyako zip plugin

2018-11-13 Thread Piotr Chabot Stadhouders via 4D_Tech
#x27;s fixed already. https://github.com/miyako?page=3&tab=repositories On Tue, Nov 13, 2018 at 2:33 AM Piotr Chabot Stadhouders via 4D_Tech < 4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> wrote: > Hi Miyako, or others, > > We are using Miyako's zip plugin, thanks for that!

Re: Miyako zip plugin

2018-11-13 Thread Piotr Chabot Stadhouders via 4D_Tech
on of this plugin. It's one that Miyako maintains and updates regularly. This may be an issue he's fixed already. https://github.com/miyako?page=3&tab=repositories On Tue, Nov 13, 2018 at 2:33 AM Piotr Chabot Stadhouders via 4D_Tech < 4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>>

Miyako zip plugin

2018-11-13 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, or others, We are using Miyako's zip plugin, thanks for that! But now we are having difficulties (on Windows) with zipping text files within a folder. Previously we used the 7zip plugin from Miyako, and used *.txt to define all text files within the folder But now, when I use [FOLDE

4D and SafeSign Identity Client

2018-11-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I need to use a card reader in our 4D software The authority that provides the card, wants us to use the SafeSign Identity Client Does anybody have experience using SafeSign Identity Client along with 4D? Gr, Piotr ** 4D I

Use HID Omnikey 3121 USB reader in 4D

2018-09-27 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi All, I recently saw a discussion about using USB barcode scanners in 4D Maybe this is an obvious question, but does anybody know what is the best way to interface with an USB (smart card) reader in 4D? We are going to use the HID Omnikey 3121 Thanks in advance, Piotr ***

RE: Printing A3 format on windows when scaling is not possible

2018-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Olivier, The example in the docs for the command PAGE SETUP is indeed kind of what I am talking about. But instead of having different forms with a scaling setting I have different page setup forms with a “paper size” setting (A3 portrait, A3 landscape), because also forms with a scaling set

RE: Printing A3 format on windows when scaling is not possible

2018-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, Thanks for your anwer. Ok, I understand what you are saying, and in some cases I already use the SET PRINT OPTION command But when I want to print a report without interaction with the user, and I want to print it to a certain paper size, I can do two things I guess: 1. Use SET

Printing A3 format on windows when scaling is not possible

2018-09-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, I am working for over 20 years with 4D now, but still I am having troubles with printing reports on Windows / OSX On forehand I want to say it sure can be me that is the problem😊 The most problematic is when I want to print a lot on a report and scaling comes in to play Because scaling

Cursor position in 4D method editor is wrong a few pixels

2018-09-13 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Tested on Windows 4D v17.0 When I click with my mouse in a text string (enclosed by double quotes) in the 4D method editor, the cursor position is often wrong a few pixels Then it looks like the cursor is after character Y, but it IS after character X (1 character before Y) Does anybody else

RE: Web Area display PDF

2018-08-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeff, Thanks for sharing! > -Oorspronkelijk bericht- > Van: Jeffrey Kain > Verzonden: maandag 20 augustus 2018 19:20 > Aan: 4d_tech@lists.4d.com > Onderwerp: Re: Web Area display PDF > > I wasn’t able to get it working in Windows. It seems really close though. But > the IE rendering

Re: Web Area display PDF

2018-08-20 Thread Piotr Chabot Stadhouders via 4D_Tech
/Documents/Products_Documentation/LastVersions/Line_16/VIntl/4D_v16_3_ReleaseNotes.pdf > 2018/05/15 17:10、Piotr Chabot Stadhouders via 4D_Tech > <4d_t...@xxx.xxx<mailto:4d_t...@xxx.xxx>> のメール: > We also have problems viewing PDF in a webarea with 4D 32-bit on High Sierra > Do

RE: UUID version 4 needed

2018-07-07 Thread Piotr Chabot Stadhouders via 4D_Tech
mt_rand( 0, 0x ), mt_rand( 0, 0x ), mt_rand( 0, 0x ) > ); > } > } > > source: > https://helloacm.com/how-to-create-uuid-in-php/ > > also there is a bunch of discussion on StackOVerflow regarding generating a > UUID, in various languages, and plat

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, The Win32API command sys_GetGUID does return a version 4 UUID So on Windows : Win32API generates a version 4 UUID --> 13th hex digit is a 4 4D v16 does not generate a version 4 UUID --> 15th hex digit is a 4 > -Oorspronkelijk bericht- > Van: Dennis, Neil > Verzonden: vrijdag 6 juli

RE: UUID version 4 needed

2018-07-06 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Dennis, There is something strange: Indeed, when I look at the generated UUID in 4D the 15th hex digit is always 4 But, as far as I know the docs say : "set the four most significant bits of the 7th byte to 0100'B, so the high nibble is 4" This means that the 13th hex digit must be 4 And in f

RE: UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Neil, For some reason I thought it is not version 4. I hope you are right! @Steven : Unfortunately the webservice we are talking with demands a message with a UUID version 4 generated message ID. Don't ask me why. Gr, Piotr > -Oorspronkelijk bericht- > Van: Dennis, Neil > Verzonde

UUID version 4 needed

2018-07-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, I need to generate an UUID but it MUST be version 4 I know in 4D there is the command Generate UUID and the NTK plugin has the command NTK Create UUID but as far as I know they both are not UUID version 4 Does anybody know how to generate an UUID version 4? Thanks, Piotr *

RE: Any way to detect change to 4D Write Pro orientation.

2018-06-26 Thread Piotr Chabot Stadhouders via 4D_Tech
ble > - Make the other object the focus > > A bit clunky ... but should work OK? > > Pat > > On Tue, 26 Jun 2018 at 07:54, Piotr Chabot Stadhouders via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > Hi John, > > > > I am already using the 4D Wr

RE: Any way to detect change to 4D Write Pro orientation.

2018-06-25 Thread Piotr Chabot Stadhouders via 4D_Tech
> 1331 Auwaiku Street > Kailua, Hawaii 96734 > (808) 262-0328 > john...@hawaii.rr.com > > > On Jun 20, 2018, at 9:45 PM, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > > Hi John, > > > > I am on your side with

RE: Re: Any way to detect change to 4D Write Pro orientation.

2018-06-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi John, I am on your side with this. Especially the need to use INVOKE ACTION to set specific attributes is something I don't understand. Our users want to be able to set some defaults for the Write Pro area, for example the default zoom % and the default view mode Now I have to use for exampl

RE: Write Pro: programmatically manipulate text expertise needed

2018-06-20 Thread Piotr Chabot Stadhouders via 4D_Tech
I'll take a closer look at it. > > > > HTH > > > > Pat > > > > On Wed, 13 Jun 2018 at 07:35, Piotr Chabot Stadhouders via 4D_Tech < > > 4d_tech@lists.4d.com> wrote: > > > >> Hi Pat, > >> > >> Your tips seem to w

RE: Write Pro: programmatically manipulate text expertise needed

2018-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
tyled text. > > 2. Again, use ST GET PLAIN TEXT to get a range of text from the cursor > position > back n characters or to the beginning of the text. > > HTH > > Pat > > On Tue, 12 Jun 2018 at 10:02, Piotr Chabot Stadhouders via 4D_Tech < > 4d_tech@lists.4d.

RE: Write Pro: programmatically manipulate text expertise needed

2018-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
ay to get an accurate position with styled text. > > 2. Again, use ST GET PLAIN TEXT to get a range of text from the cursor > position > back n characters or to the beginning of the text. > > HTH > > Pat > > On Tue, 12 Jun 2018 at 10:02, Piotr Chabot Stadhouders via

Write Pro: programmatically manipulate text expertise needed

2018-06-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, We are in the progress of migrating from 4D Write to Write Pro A lot of things are going fine, but there is one area that seems easy but I am having difficulties with it and that is programmatically manipulating text I give 2 examples that maybe seem obvious to others but are not for me:

RE: 4D Write Pro: traverse throught all available headers and footers

2018-05-29 Thread Piotr Chabot Stadhouders via 4D_Tech
ses an expression" > > do you mean ST Get content type doesn't report "ST Expression type" (for > instance you get mixed type) or do you mean ST Get expression doesn't return > an expression (maybe you should start from 1, not ST Start text) > > ? > >

RE: 4D Write Pro: traverse throught all available headers and footers

2018-05-29 Thread Piotr Chabot Stadhouders via 4D_Tech
tech@lists.4d.com> > Onderwerp: Re: 4D Write Pro: traverse throught all available headers and > footers > > Hello, > > the command is ST Get content type > > http://doc.4d.com/4Dv16/4D/16.3/ST-Get-content-type.301-3652488.en.html > > > 2018/05/26 0:46、Piotr C

RE: Why are columns of a non-focusable listbox not enterable?

2018-05-25 Thread Piotr Chabot Stadhouders via 4D_Tech
t; jeffrey.k...@gmail.com > > > > > > On May 24, 2018, at 2:57 AM, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > > > I need some listboxes that are not focusable However, as a side effec

4D Write Pro: get all expressions

2018-05-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Below is a code snippet (not my own) that loops through all expressions in a 4D Write Pro document It seems that when an expression is the very first element in the document it is not detected Does anybody know a solution? Is there a better way to get all expressions? Thanks, Piotr $done

RE: procedurally delete anchored image in 4D Write Pro

2018-05-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Justin, Miyako, INVOKE ACTION works, but then I was realizing that this only works with an Write Pro on a Form and not when using an "offscreen" 4D Write Pro object variable That's why I thought I must be overlooking a command to do the deleting So there are 2 possibilities: 1. We are overlo

4D Write Pro: traverse throught all available headers and footers

2018-05-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Does anybody know of a way how to traverse through all available headers and footers of a document? I have an 4D Write Pro object and in some circumstances I get an error when using WP SET FRAME How do I know if, and so which frames are available in a 4D Write Pro object I need to traverse t

Why are columns of a non-focusable listbox not enterable?

2018-05-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I need some listboxes that are not focusable However, as a side effect then the columns of these listboxes are not enterable Does anybody know the reason of this? Does this make sense? Gr, Piotr ** 4D Internet Users Group (4

procedurally delete anchored image in 4D Write Pro

2018-05-18 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Sorry, but I don't see it: How can I procedurally delete an anchored image in a 4D Write Pro document? I know how to select the image with WP SELECT(*;"WParea";$image_object) But then what? I hope somebody knows the answer. Gr, Piotr ***

RE: Web Area display PDF

2018-05-15 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeffrey, We also have problems viewing PDF in a webarea with 4D 32-bit on High Sierra Do you know if this is a 32-bit problem? So going to 64-bit would solve the problem? We are using 4d write and want to migrate it to 4D write pro Now would be the time to do this if the PDF problem doesn't ex

RE: Paste (ctrl-v) in textfield doesn't work with focusable listbox

2018-05-12 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Ok, thanks, i Will try to reproduce the problem in a sample database " I created a simple form with an array based listbox and a text field and it seems like I have no trouble pasting into the text field, but perhaps I am doing something different than you are doing. Also, I don't see an

Paste (ctrl-v) in textfield doesn't work with focusable listbox

2018-05-09 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16R6 I have a form with a listbox and a textfield When the listbox has the property focusable set, pasting text into the text field via ctrl-v doesn't work (menu item paste DOES work) When I uncheck the focusable property pasting does work Does anybody know about this behavior? I need t

RE: overlapping subforms

2018-03-21 Thread Piotr Chabot Stadhouders via 4D_Tech
equired > instead of managing multiple subform objects. > > The version you are using also may matter. But to answer the question you > asked: > > On Mon, Mar 19, 2018 at 1:40 AM, Piotr Chabot Stadhouders via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > I have

RE: overlapping subforms

2018-03-20 Thread Piotr Chabot Stadhouders via 4D_Tech
> > Randy Jaynes > > Senior Programmer and Customer Support > > > > http://printpoint.com <http://printpoint.com/> • 845.687.3741 • > > PrintPoint, Inc • 57 Ludlow Lane • Palisades, NY 10964 Please send all &g

overlapping subforms

2018-03-19 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I have a form with a couple of subforms on it Now I want to add another subform, that is on top of 3 others, and becomes visible when pressing a button You can see it as a kind of popup viewer Because the subform must show in front of the others, in design mode I put the subform container to

Procedurally set Movable Rows option for a listbox

2018-03-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16R5 I must be overlooking it, but how can I procedurally set the Movable Rows option for a listbox? Gr, Piotr ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/ar

Best way to fill a variabe with styled text?

2018-01-17 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I need some commands to fill a variable with styled text. Some parts must be in bold, some parts in bigger font size, etc I know there is a command ST SET ATTRIBUTES, but then you first have to append the text to the variable with ST SET PLAIN TEXT Then you have to remind the selection of th

RE: On Column Resize event

2018-01-05 Thread Piotr Chabot Stadhouders via 4D_Tech
flag. Set the > > flag in 'On Mouse Enter', and clearing it in 'On Mouse Leave', in the > > context of the listbox. Then in the code for resizing if the flag is > > set the user has the mouse in the listbox and is resizing manually. If not, > > then >

RE: On Column Resize event

2018-01-05 Thread Piotr Chabot Stadhouders via 4D_Tech
and clearing it in 'On Mouse Leave', in the context of the listbox. Then in > the > code for resizing if the flag is set the user has the mouse in the listbox > and is > resizing manually. If not, then the user is resizing the window. > > Chip > On Thu, 4 Jan

On Column Resize event

2018-01-04 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, In 4D v16 there is a new feature so an "On Column Resize" event is triggered "live" during resizing of a listbox: https://blog.4d.com/execute-action-upon-listbox-column-resizing/ I have a lot of code behind that event in our application that now is executed too many times, so I don't like t

RE: Stack level in 4DDebugLog.txt

2017-12-14 Thread Piotr Chabot Stadhouders via 4D_Tech
"How do you know the 3rd party component is not nesting the calls 200+ deep before returning back to your code?" Maybe I don't understand correctly, but how can I call a component at, say, level 4 and it returns at another level? I assumed it finally always must return at the same level it sta

RE: Stack level in 4DDebugLog.txt

2017-12-13 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Chip, Tim, Could there be some other weird reason why the stack level increases and doesn't decrease? Maybe calling plugin commands, or maybe EXECUTE METHOD? Maybe a bug in the debug log? Maybe something in Windows 10? I know nearly for sure that there is no recursion, and still the stack lev

RE: Stack level in 4DDebugLog.txt

2017-12-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim, Thanks again for your answer. I already thought so, however, in my case the stack level increases over time It starts with zero I see it decrease some times, but after 1000 log lines it already is at 262 So I guess this smells like a nesting problem? I have to find out where and why Or c

Stack level in 4DDebugLog.txt

2017-12-11 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Can anybody explain to me what the "Stack level" column in the 4DDebugLog.txt means? There is no further explanation of this column in the docs What can be done with this? TIA, Piotr ** 4D Internet Users Group (4D iNUG) F

RE: poor performance LISTBOX INSERT COLUMN

2017-12-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim, Yes, I have opened a tech support case. Gr, Piotr > -Oorspronkelijk bericht- > Van: Timothy Penner [mailto:tpen...@4d.com] > Verzonden: woensdag 6 december 2017 2:24 > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > Onderwerp: RE: poor performance LISTBOX INSERT COLUMN > > > My

RE: poor performance LISTBOX INSERT COLUMN

2017-12-05 Thread Piotr Chabot Stadhouders via 4D_Tech
k/empty columns - rather then appending > the columns to your list boxes I would expect this to be slower. In a > previous > email I mentioned that I do dynamic list boxes every where I use them. > > I always (generic code) append the new column(s). > Listbox Insert column(listb

RE: poor performance LISTBOX INSERT COLUMN

2017-12-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Arnaud, Thanks for your thorough test. >That's not surprising, IMHO, it's like concatenation: as the room is filled, >each piece added is harder to arrange than the previous. I understand this, but still I believe maybe there can be some performance improvement in the command. I cannot be

RE: poor performance LISTBOX INSERT COLUMN

2017-12-05 Thread Piotr Chabot Stadhouders via 4D_Tech
hi Alan, Maybe calling the average was a bit misleading after all : So I created a demo database with 1 form On this form I have 12 listboxes with 1 column On load of each listbox I insert 20 columns with LISTBOX INSERT COLUMN Inspecting the 4D debug log I am seeing something I did mention below

RE: poor performance LISTBOX INSERT COLUMN

2017-12-04 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Chip, When the form is first displayed there are no elements in one of the arrays in the listboxes Only after certain user action, like pressing a button, the arrays are populated, so this isn't the problem Furthermore, I am not able to test with local 4D data because, surprise, we don't us

RE: poor performance LISTBOX INSERT COLUMN

2017-12-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Alan, Thanks for testing! This is great news, because then maybe there is something else going on. Remember, I only asked the community if this performance was normal behavior and if it could be confirmed. Clearly not by you. I tested this on an HP Intel Core i7-4710MQ 2.50GHz laptop with 24

RE: poor performance LISTBOX INSERT COLUMN

2017-12-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, >I think we need to set reasonable limits on how the commands is expected to be >used, >before we device that its performance is "poor". Sorry, maybe you are right and I shouldn't have called it poor performance, but it was my feeling because the command takes 10 times longer to exec

RE: poor performance LISTBOX INSERT COLUMN

2017-12-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Arnaud, Array listboxes >> Le 1 déc. 2017 à 15:49, Piotr Chabot Stadhouders via 4D_Tech >> <4d_t...@xxx.xxx> a écrit : >> >> Hi, >> >> In search of a performance problem in 1 of our forms I am asking for some >> advice. >> >>

RE: poor performance LISTBOX INSERT COLUMN

2017-12-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim, > -Oorspronkelijk bericht- > Van: Tim Nevels [mailto:timnev...@mac.com] > Verzonden: vrijdag 1 december 2017 22:00 > Aan: 4d_tech@lists.4d.com > Onderwerp: Re: poor performance LISTBOX INSERT COLUMN > > On Dec 1, 2017, at 2:00 PM,Piotr Chabot Stadhouders wrote: > > > But, bottom

RE: CALL FORM and CALL WORKER

2017-12-01 Thread Piotr Chabot Stadhouders via 4D_Tech
In fact, the functionality explained below could be seen as setting an alarm The alarm fires after a second (period of time) In the meantime it can be reset to again wait for a period of time before it fires Gr, Piotr Van: Piotr Chabot Stadhouders Verzonden: vrijdag 1 december 2017 17:40 Aan: 4

  1   2   >