RE: Subform initialize logic

2017-11-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Stadhouders via 4D_Tech < 4d_t...@xxx.xxx> wrote: > As I understand correctly, when not on page 1, this subform is only > initialized when the page is loaded > ​I assume you are talking about a subform you placed in the design environment and not one where you used OBJECT SET SUB

Subform initialize logic

2017-11-23 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16.2 I am using a subform in my app (a widget) As I understand correctly, when not on page 1, this subform is only initialized when the page is loaded In my widget I have an attribute defined called "enabled" When using a dropdown for example, I can disable the dropdown "On load", even

BUG in ST Get content type?

2017-10-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16R4 I use the "loop example" to get all expressions in a WP area However, when the first "character" of the text in the area is an expression, this expression is skipped (not seen) It seems that when I call $type:=ST Get content type*;"WParea";$start;$end;$startBlock;$endBlock) for

4D Write Pro and SMTP_Body

2017-10-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, We use 4D to send HTML emails Until now we used 4D Write to generate the mail body, and convert it to HTML (WR SAVE DOCUMENT ($area;$docpath;wr HTML 4 document)) Now we want to convert this to 4D Write Pro. In WP there is a command WP EXPORT VARIABLE to convert an area to HTML ("wk mime

Selecting tables in a Write Pro Area

2017-10-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I am experimenting with 4D Write Pro. Because WP only supports inline pictures I thought to give tables a try, i.e to insert a picture in a cell and text in a next cell (what is a "workaround" for wrapping text around a picture) Inserting a table with some cells is no problem, but I have

font color with disabled 3D button

2017-09-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, We are setting a font color for 3D buttons However, when the button is disabled on Windows this font color becomes gray, but on OSX the color stays the same as the original color Is this normal behavior (So the behavior on OSX and Windows differs) ? Gr, Piotr

RE: Form with Custom Grow Box

2017-09-20 Thread Piotr Chabot Stadhouders via 4D_Tech
Spring, AB Canada > 403-626-3236 > <can...@synergyfarmsolutions.com> > > > > > On Sep 19, 2017, at 9:51 AM, Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > >

RE: Form with Custom Grow Box

2017-09-19 Thread Piotr Chabot Stadhouders via 4D_Tech
th Custom Grow Box > > having not done this > this *might* work > a button (picture probably) > on mouse down - get current mouse/window coords on mouse up - get > mouse position - resize window to that position > > > On Tue, 19 Sep 2017 06:58:40 +, Piotr Chabot S

Form with Custom Grow Box

2017-09-19 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I think I have read somewhere that it is possible somehow to create a form with a custom grow box. I am not talking about maximize / minimize but on Windows the area in the right bottom corner of a window I want to open a Modal form dialog box and create my own grow box. Was I dreaming, or

RE: OBJECT get variable type

2017-09-11 Thread Piotr Chabot Stadhouders via 4D_Tech
ot;current". > > the bound variable can change at runtime (see OBJECT SET DATA SOURCE), > so the initial "variable type" has no real value in code. > > > 2017/09/09 3:18、Piotr Chabot Stadhouders via 4D_Tech > > <4d_tech@lists.4d.com> のメール: &g

OBJECT get variable type

2017-09-08 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, V16 Maybe this is a stupid question but I just don't see it : When putting a variable on a form and set a variable name to t I attach a variable to the object, for example a C_TEXT variable However, there is also a property "Variable Type", that doesn't necessarily has to be of type text,

Re: Setting a detail subform's scroll position programmatically

2017-09-08 Thread Piotr Chabot Stadhouders via 4D_Tech
> On Jul 18, 2015, at 8:56 AM, Jeff Grann wrote: > > 4Dv14/v15 > > There doesn't seem to be a way to set a detail subform's scroll position > programmatically. OBJECT SET SCROLL POSITION doesn't work with detail > subforms. > > Am I missing something? Is there a workaround? > Dear Jeff

RE: [ANN] 4D v16.2 ready for download

2017-09-06 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Brian, Windows 10 I notice something strange (I also noticed this in 16.1 HF2 and posted this here without a response) : In the property list the checkboxes and also the edit button look like an "earlier" windows version, i.e. the checkboxes have a sunken border and the button a raised

RE: Widget questions

2017-09-05 Thread Piotr Chabot Stadhouders via 4D_Tech
4D > does not bubble and capture events for all widgets on all levels on all pages. > > to design complex forms on a single page, you could take advantage of > "object views". > > http://doc.4d.com/4Dv15/4D/15.4/Using-object-views.300-3285345.en.html > Thanks fo

RE: Widget questions

2017-09-04 Thread Piotr Chabot Stadhouders via 4D_Tech
ese widgets most of the time are created with 4D v14. > > > Would you do (some) things differently when using v16? > > > > > > Thanks, > > > > > > Piotr > > > > > > > -Oorspronkelijk bericht- > > > > Van: Keis

RE: Widget questions

2017-09-04 Thread Piotr Chabot Stadhouders via 4D_Tech
to:keisuke.miy...@4d.com] > > > Verzonden: zaterdag 26 augustus 2017 0:32 > > > Aan: 4D iNug Technical <4d_tech@lists.4d.com> > > > Onderwerp: Re: Widget performance > > > > > > there is a "duplicate by matrix" menu in the form editor, which

RE: Widget questions

2017-09-02 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Timothy, Thanks for your answer! We are 4D partner but I don't know if I can, and if so how I can vote for your bug. Do you know how I can do that? Thanks, Piotr > -Oorspronkelijk bericht- > Van: Timothy Penner [mailto:tpen...@4d.com] > Verzonden: vrijdag 1 september 2017 21:22 >

RE: Widget questions

2017-09-01 Thread Piotr Chabot Stadhouders via 4D_Tech
; there is a "duplicate by matrix" menu in the form editor, which > > > allows you to quickly experiment with tens of thousands of objects. > > > maybe it is the execution code setup code that is taking 2 seconds. > > > > > > in my experience, a form wit

Widget questions

2017-09-01 Thread Piotr Chabot Stadhouders via 4D_Tech
kly experiment with tens of thousands of objects. > > maybe it is the execution code setup code that is taking 2 seconds. > > > > in my experience, a form with thousands of form objects is nothing > > uncommon. > > >

RE: Widget performance

2017-08-31 Thread Piotr Chabot Stadhouders via 4D_Tech
riment with tens of thousands of objects. > maybe it is the execution code setup code that is taking 2 seconds. > > in my experience, a form with thousands of form objects is nothing > uncommon. > > > 2017/08/25 16:39、Piotr Chabot Stadhouders via 4D_Tech > > <4d_tech@lis

RE: Widget performance

2017-08-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Thanks Miyako and Jody, The thing I most worry about is the performance overhead of subforms. I would suspect a subform is "heavier" than a simple field or button for example. Can someone tell me what the subform performance overhead is? After all, when inserting 100 widget I am in fact

RE: Listbox header OSX

2017-08-26 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, Thanks for your answer. As I understand correctly the only way to get rid of the lines is by changing system appearances in OSX. Gr, Piotr Miyako wrote : "Hello, the Header of a listbox takes after the appearance of a standard menu bar. on Windows 10, the menu bar happens

Listbox header OSX

2017-08-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16, OSX When I set the border line style of a listbox to none OSX still shows a line above the header. On windows this line disappears as expected. Does this make sense? Does anybody know how to get rid of the line above the listbox header on OSX? Gr, Piotr

Widget performance

2017-08-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, 4D v16, Windows 10 Despite all advice saying to use standard 4D objects, I am on the verge of creating my own dropdown menu. We have a multi-platform application and want to have its own unique L I think I can create a dropdown as a widget, but what I am worried about is performance As a

Property list in 4D 16.1HF2 looks old

2017-07-15 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Windows 10, 4D v16.1 hotfix 2 I noticed that the property list looks "old", i.e. with sunken checkboxes The look and feel looks like something from years ago Does anybody know what could be the reason of this? ** 4D Internet

Citrix and sys_GetEnv alternative for getting CLIENTNAME

2017-04-25 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, For a couple of years now we use the WIN32API command sys_GetEnv to get the CLIENTNAME However, we have found out that when an user is taking over his citrix session on another machine, the OLD CLIENTNAME is returned when using this command and not the name of the new machine My

form fields and variables with rounded borders

2017-04-05 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, Is there a (smart) way to set rounded borders to fields and variables on a form? In other apps I am seeing the use of rounded borders for fields a lot. I know I can set border to none and put a rounded rectangle beneath, but I was hoping for something easier. Also, I often see fields

RE: 4D Write Pro using expressions with XML merge file (or JSON)

2017-04-03 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I was thinking : Wouldn't it be nice if 4D implemented some commands where we can easily do this kind of stuff in 4D Write Pro? 1 command to link a xml / json data file to a 4D write pro document, and 1 counterpart to detach data file Extend ST INSERT EXPRESSION (maybe ST INSERT XPATH)

Re: 4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Bruno, Because it is easy to use xpath in 4D and easy to generate XML in Oracle this is exactly why I think this is a nice solution. I am glad you think the same:-) I assume one can also use attributes in xpath in 4D. Gr, Piotr Op 29 mrt. 2017 21:37 schreef Bruno LEGAY

RE: 4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
gt; > HTH > Koen > > Op 29-mrt.-2017, om 09:02 heeft Piotr Chabot Stadhouders via 4D_Tech > <4d_tech@lists.4d.com> het volgende geschreven: > > > Has anybody already done "my new way" and have experience with this? > > Does

4D Write Pro using expressions with XML merge file (or JSON)

2017-03-29 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi All, We are using 4D Write for about 20 years now. With 4D v16R2 we think it is time to migrate to 4D Write Pro. One thing we use a lot is expressions to merge data with document templates. We don't use 4D records but we use 4D for OCI to connect to an Oracle database. 20 years ago we didn't

Entry Field questions

2017-03-21 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I have 2 questions about entry fields : 1. Although I know the best answer on forehand (Use system behavior), is there an (easy) way to customize entry fields (fields and variables). For example rounded borders, yellow background when having focus instead of blue border? 2. What is

How to get array index with hierarchical listbox when using on mouse move

2017-02-27 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi, I want to use a hierarchical listbox with arrays When I am in the on mouse move event of the listbox, how can I determine which element this is? I have found a tech tip where is explained how to get the row number. But how can I get from row number to array index? Say I have 6 elements in a

<    1   2