Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread Tim Nevels via 4D_Tech
On Nov 21, 2018, at 7:48 PM, John DeSoi  wrote:

> I'm happy there is a simpler work-around than finding some obscure file to 
> delete. But it would be better if 4D just fixed the issue. If you use 
> multiple monitors and change configurations this is an ongoing issue. Other 
> Mac applications have no problems, but I'm often surprised by how 4D windows 
> end up. I try to remember to quit 4D before unplugging my external monitor 
> because of all the problems.

I agree John. It would be great if a 4D engineer that has multiple monitors and 
also a laptop were assigned the task of updating their code to be more 
defensive about where it opened windows. Checking the window rect to see if it 
will be fully displayed with the current monitor configuration, making sure 
windows don’t appear partially offscreen, etc. I’ve been doing this for years 
in my own “OpenWindow” method and it’s a lot of work, but it can be done. And 
there are complications to make it work well on both macOS and Windows.

But I am now abandoning using my OpenWindow method and I’m now using a new 
method called “OpenFormWindow” that relies on the “save geometry” option so 
that windows remember where the user positioned them and how they configured 
listbox columns, splitters, etc. 

It’s a great 4D feature that you can use by simply checking a checkbox for a 
form and using the “Open form window” command. They just need to add a bit more 
polish to it and then we can enjoy using it without these “edge case” problems. 
I can’t do the work I was doing with my OpenWindow method because now 4D is in 
full control of where to position a new window. I have to trust them that they 
will do a good job. Sometimes they let me down. :(

This secret command key will help my users when this situation occurs. I can 
now tell them to just hold down the shift key before they select a menu item. 

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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
**

Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread John DeSoi via 4D_Tech
I'm happy there is a simpler work-around than finding some obscure file to 
delete. But it would be better if 4D just fixed the issue. If you use multiple 
monitors and change configurations this is an ongoing issue. Other Mac 
applications have no problems, but I'm often surprised by how 4D windows end 
up. I try to remember to quit 4D before unplugging my external monitor because 
of all the problems.

John DeSoi, Ph.D.


> On Nov 21, 2018, at 6:47 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Thanks so much for telling everyone about this keyboard fix. And I’m sure 
> it’s probably documented somewhere with a single sentence that most of us 
> never bothered to read. 
> 
> As least now we all know… when a 4D window opens in a stupid location, close 
> it and then open it again with the shift key down to fix it. A simple, 
> elegant solution. No more wandering to the preferences folder and deleting a 
> file to fix it. 
> 
> Do we know what version this was implemented in?
> 

**
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: Explorer bottom toolbar not displaying...

2018-11-21 Thread Tim Nevels via 4D_Tech
On Nov 21, 2018, at 2:00 PM, Garri Ogata wrote:

> Greetings,
> 
> Thanks for all the tips. I ended up using the shift key when opening the 
> explorer window. That was a nice quick fix.
> 
> And I've added the tech tip to my code base and ran it also.
> 
> Thanks again for the help.
> 
> And Happy T-Day to everyone.

Garri is back! Seems like a long time since I saw any posts from you on the 
iNUG.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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
**

Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread Tim Nevels via 4D_Tech
On Nov 21, 2018, at 2:00 PM, Keisuke Miyako wrote:

> or, just close the Explorer and bring it back while holding down the shift 
> key.
> 
> Open form window (...;*) window bounds are reset with the shift key.

Thanks so much for telling everyone about this keyboard fix. And I’m sure it’s 
probably documented somewhere with a single sentence that most of us never 
bothered to read. 

As least now we all know… when a 4D window opens in a stupid location, close it 
and then open it again with the shift key down to fix it. A simple, elegant 
solution. No more wandering to the preferences folder and deleting a file to 
fix it. 

Do we know what version this was implemented in?

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.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
**

Re: Audit File Updates via Triggers...

2018-11-21 Thread Kirk Brooks via 4D_Tech
On Wed, Nov 21, 2018 at 12:35 PM Benedict, Tom via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>  If you live on an island where the only language is 4D, objects offer
> some advantages. But if there's ever the chance that you'd like to
> communicate with the outside world the lingua franca of rows and columns
> makes you friends around the globe.


It's a peninsula, actually.
-- 
Kirk Brooks
San Francisco, CA
===

*We go vote - they go home*
**
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: Audit File Updates via Triggers...

2018-11-21 Thread Benedict, Tom via 4D_Tech
Kirk Brooks writes:

>John,
>Sure you can - you make a method to extract the data
>you want. In selection based listboxes you can put the
>method in a column formula.

>On Tue, Nov 20, 2018 at 1:14 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com>
wrote:

>> Just note that you won't be able to see any of the data in an object
>> field if you are displaying records in a list box. Some possible
>> options now in version 17 if you are using collections/entity selections.

I'm with John on the suitability of object fields. If you live on an island 
where the only language is 4D, objects offer some advantages. But if there's 
ever the chance that you'd like to communicate with the outside world the 
lingua franca of rows and columns makes you friends around the globe.

Tom Benedict
Optum
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
**
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: dragging an object

2018-11-21 Thread Peter Mew via 4D_Tech
Hi Kirk
Thanks for that, very interesting, Unfortunately, Im on v13, and all the
JSON stuff seems to have been created for v14+
I'll see if I can work round it using your code as a base
cheers
-pm

On Tue, Nov 20, 2018 at 8:24 PM Kirk Brooks via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Peter,
>
> This works in two parts.
> 1) On begin dragover:  You need to capture the mouse xy of the click and
> store it in the pasteboard. Something like:
>
> GET MOUSE($x;$y;$mods)
>
> SET TEXT TO PASTEBOARD(Json stringify(New object("x";$x;"y";$y)))
>
>
> 2) On drop: get the data in the pasteboard, calculate delta x and delta y
> then apply MOVE OBJECT.
> More pseudo code:
>
> $obj:=JSON Parse(GET TEXT FROM PASTEBOARD)
> GET MOUSE($x;$y;$mods)
>
> $dX:=$x-$obj.x
> $dY:=$y-$obj.y
>
> MOVE OBJECT(*;"object name";$dX;$dY)
>
> The code is off the top of my head so it will need some tweaking but that's
> the mechanics. If you are moving a picture on top of another picture (like
> a background graphic) you use Drop position to get the drop xy.
>
>
> On Tue, Nov 20, 2018 at 12:07 PM Peter Mew via 4D_Tech <
> 4d_tech@lists.4d.com>
> wrote:
>
> > Hi
> > Any ideas on how to implement the following
> > Click on an object on a form(a Picture)
> > Drag it to a new location
> > Have it stay at the new location
> > a bonus would be if it could be shown being dragged
> > Ive tried various combinations of form events involving the mouse (Mouse
> > Enter Mouse Move etc) in the object method, with mouse button down.
> > GET MOUSE
> > OBJECT GET CORDINATES
> > Thanks
> > -pm
> > 4D v13.6
> > Mac OS Yosemite
> > **
> > 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
> ===
>
> *We go vote - they go home*
> **
> 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
**

Re: Explorer bottom toolbar not displaying...

2018-11-21 Thread Garri Ogata via 4D_Tech
Greetings,

Thanks for all the tips. I ended up using the shift key when opening the 
explorer window. That was a nice quick fix.

And I've added the tech tip to my code base and ran it also.

Thanks again for the help.

And Happy T-Day to everyone.

Garri



From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of Keisuke Miyako via 
4D_Tech <4d_tech@lists.4d.com>
Sent: Tuesday, November 20, 2018 8:34 PM
To: 4D iNug Technical
Cc: Keisuke Miyako
Subject: Re: Explorer bottom toolbar not displaying...

or, just close the Explorer and bring it back while holding down the shift key.

Open form window (...;*) window bounds are reset with the shift key.

2018/11/21 4:37、Randy Jaynes via 4D_Tech 
<4d_tech@lists.4d.com>のメール:

First guess is to quit 4D and throw out the folder "4D Window Bounds v15” in 
your 4D folder.



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