Re: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech

2019/02/01 10:58、Keisuke Miyako via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
in fact, some keen observers of ORDA have commented that

to be clear,

ORDA is the combination of object access to the persistent relation datastore
and the binding of object data to native UI elements.

this is just a small example of the latter part,
so strictly speaking not really ORDA.


**
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: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech

> The object assigned to the popup menu has these 2-properties: “val” and “ref”.
> Where do we find the documentation that says we can associate a popup with a 
> hierarchical list using a Form.object, where the object has these 
> 2-properties “val” and “ref” that reflect the popup’s current choice?

there is a misunderstanding.

the expression bound to the popup drop down menu is

Form.menu.val

which is just a text property (of an object of an object == Form).
the current "state" as you call it, or just value, is text.

assign a new value to Form.menu.val, the menu updates.
click a new item on the menu, Form.menu.val changes.

the property name "val" is arbitrary.
it could be anything, as long as Value type == Is text.

but I made a conscious decision to use the naming convention

Form[object name].val

for the value and

Form[object name].ref

for the list ref

so that in the object method I can write stuff like

CLEAR LIST(Form[OBJECT Get name(Object current)].ref)

Form[OBJECT Get name(Object current)].val:="a value"

kind of DOM in 4D dialog.

in fact, some keen observers of ORDA have commented that
it would be nice to use object notation with form objects,
for example,

$title:=Form.button.title
Form.button.fontSize:=14

this is in the same spirit.



**
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: Popup/Dropdown element 0

2019-01-31 Thread Jeremy French via 4D_Tech
Hi Miyako,

Your example database:

https://doc.4d.com/4Dv16/4D/16.4/Pop-up-MenusDrop-down-Lists.300-3998943.en.html
 


shows assigning a “Form” object to store the popup’s current state. 

The object assigned to the popup menu has these 2-properties: “val” and “ref”.

From your code:
—
$list:=New list

APPEND TO LIST($list;"a";1)
APPEND TO LIST($list;"b";2)
APPEND TO LIST($list;"c";3)

OBJECT SET LIST BY REFERENCE(*;OBJECT Get name(Object current);Choice 
list;$list)

Form[OBJECT Get name(Object current)]:=New object("val";1;"ref";$list) 
—

Where do we find the documentation that says we can associate a popup with a 
hierarchical list using a Form.object, where the object has these 2-properties 
“val” and “ref” that reflect the popup’s current choice?

Best regards,

- Jeremy

> On Jan 28, 2019, at 10:16 PM, Keisuke Miyako via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> associate the popup menu to "list item value (not ref.)"
> 
> https://forums.4d.com/4DBB_Main/x_User/298210/files/28213957.zip 
> 
**
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: How to get the Window ref of the 4D 64 bit app window

2019-01-31 Thread Keisuke Miyako via 4D_Tech
my understanding is that in the old days,
the window ref (int) in the plugin SDK used to be just a type case of carbon 
windowRef (a C pointer).

in 64-bit you can't just cast an address (64-bit) to int, the value would 
overflow.
so the references are now mapped internally to real pointers (around v14).

MDI is a different issue.

because v16.0 beta or v16R and v17 are Altura-free,
the old get-HWND(0) method to get its reference does not work.

so a new entry point 719 was added in v16.

https://github.com/miyako/4d-plugin-window-control
https://github.com/miyako/4d-plugin-mdi

see also

https://github.com/miyako/4d-plugin-activate

> 2019/02/01 7:40、Peter Hay via 4D_Tech <4d_tech@lists.4d.com>のメール:
> So, does anyone know how to get the 4D window ref of the main 4D
> application MDI window for 64 bit 4D apps?




**
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: How to get the Window ref of the 4D 64 bit app window

2019-01-31 Thread Keith Culotta via 4D_Tech
Doing WINDOW LIST($aWin) in On Startup will return the window's ref in the 
array (on the Mac anyway).

Keith - CDI

> On Jan 31, 2019, at 4:40 PM, Peter Hay via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> I'm trying to get the Window reference of 4D's application window so that I
> can put a custom icon on it, and change the window title.
> 
> This is for 64 bit 4D v17R3 on MS Windows.
> 
> I've been doing this for years with the excellent Win32API
> using gui_GetWindowEx ("").  This works fine with 32 Bit 4D apps, but fails
> on 64 bit apps.  I've checked with Orchard Software, and they confirm the
> issue, but they're still using 32 bit 4D Remote, so it's not a priority for
> them.  I have no problem with this stance.  It's their plugin, and it's
> free, and I'm very grateful for them giving it away.
> 
> So, does anyone know how to get the 4D window ref of the main 4D
> application MDI window for 64 bit 4D apps?
> 
> Thanks.
> --
> Pete Hay
> Managing Director
> Foreground Software Limited
> New Zealand
> **
> 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
> **

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

How to get the Window ref of the 4D 64 bit app window

2019-01-31 Thread Peter Hay via 4D_Tech
Hi,

I'm trying to get the Window reference of 4D's application window so that I
can put a custom icon on it, and change the window title.

This is for 64 bit 4D v17R3 on MS Windows.

I've been doing this for years with the excellent Win32API
using gui_GetWindowEx ("").  This works fine with 32 Bit 4D apps, but fails
on 64 bit apps.  I've checked with Orchard Software, and they confirm the
issue, but they're still using 32 bit 4D Remote, so it's not a priority for
them.  I have no problem with this stance.  It's their plugin, and it's
free, and I'm very grateful for them giving it away.

So, does anyone know how to get the 4D window ref of the main 4D
application MDI window for 64 bit 4D apps?

Thanks.
 --
Pete Hay
Managing Director
Foreground Software Limited
New Zealand
**
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 Epperlein, Lutz (agendo) via 4D_Tech
Right, I see the individual cores, but I'm not able to get the part a certain 
application uses. The summary view shows me that. See this screenshot:


4D.exe is selected, the orange line in the topmost graph shows the use by 4D, 
but this line is absent on the other graphs of the cores. It would be nice to 
know how much 4D (or another application) distributes its load to the 
individual cores.

Regards
Lutz

> You can click it right click on the summary graph and have it display
> individual cores.
**
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 Jeffrey Kain via 4D_Tech
You can click it right click on the summary graph and have it display 
individual cores.  

> On Jan 31, 2019, at 4:31 AM, Epperlein, Lutz (agendo) via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Just out of curiosity, how can I visualize the use of the CPU cores on 
> Windows 
> using some inbuilt tools of the OS?
> The task manager shows a summary only. In the resource monitor I can see the 
> use the total use of all cores by an application, not the use of individual 
**
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 Epperlein, Lutz (agendo) via 4D_Tech
Just out of curiosity, how can I visualize the use of the CPU cores on Windows 
using some inbuilt tools of the OS?
The task manager shows a summary only. In the resource monitor I can see the 
use the total use of all cores by an application, not the use of individual 
cores.

Regards
Lutz
**
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 Keisuke Miyako via 4D_Tech
preemptive mode for 4D methods is a 64-bit only feature.

32-bit version of 4D exists mainly for compatibility, speed is not the highest 
priority.
it is still using the old altura library, the old cache manager, etc.

of course, the web server, SQL server and database engine are preemptive even 
for 32-bit.
but unless the application is running many independent processes, (i.e. like a 
server)
it normally wouldn't need so many cores.

---

as already mentioned,
the issue with Citrix limiting your volume desktop to the same core seems like 
a Citrix thing,
nothing to do with whether 4D is taking advantage of preemptive mode or whether 
it is 64-bit or 32-bit.

I can not say whether "this" in your question has anything to do with the 
architecture of 4D.

2019/01/31 17:09、Piotr Chabot Stadhouders via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Can you confirm that this is only with 64-bit 4D applications, not with 32-bit 
4D applications?



**
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 Christian Sakowski via 4D_Tech
> Are you really saying that I can mark a 4D method as preemptive capable and 
> use significant functionality of the plugins in a preemptive process?

Yes, indeed it took some work to rewrite the code to make Plugin-Handles 
preemptive.
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
christian.sakow...@heubach-media.de
Tel: +49/(0)40/52 10 59-23




> Am 31.01.2019 um 03:32 schrieb John DeSoi via 4D_Tech <4d_tech@lists.4d.com>:
> 
> Hi Christian,
> 
> That is really impressive since they seem like complex plugins that need a 
> lot of 4D interaction and there are currently very few plugin API calls that 
> are thread safe. 
> 
> Are you really saying that I can mark a 4D method as preemptive capable and 
> use significant functionality of the plugins in a preemptive process?
> 
> John DeSoi, Ph.D.
> 
> 
>> On Jan 30, 2019, at 4:10 PM, Christian Sakowski 
>>  wrote:
>> 
>>> I'm not aware any commercial 4D plugin that works in preemptive mode.
>> 
>> hmCal and hmReports are thread safe.
> 
> **
> 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
> **


--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: i...@heubach-media.de
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach

Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**
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
**