Re: Placing a picture or graphic object

2018-11-11 Thread Jeremy French via 4D_Tech
Hi Peter,

Ok, so the line is 1px wide and 60px high. You want to keep the line's 
dimensions but relocate the line to top = 0, left =55.

Use absolute coordinates (which occur when the asterisk parameter is present.)

Specify the top left coordinates as (x=55, y=0)
Specify the bottom right coordinates (x=55, y=60)

So you end up with this call:

MOVE OBJECT(*;”<>Cursor2”;55;0;55;60;*)

Regards,
Jeremy French

> On Nov 11, 2018, at 2:56 PM, Peter Mew via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I want to place a Grapic called "Cursor" at absolute
> coordinates ^0 pixels from the top of the form, and 55 pixels from the left
> edge of the form, no resizing.
> so I call
> $CursorPosPix:=55
> OBJECT MOVE(*;"<>Cursor2";$CursorPosPix;60;0;0;*)
> <>Cursor2 is a Vertical Line 1 pixel in width and 60 pixels high

**
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: INVOKE ACTION only works when I trace through it

2018-11-11 Thread Jeremy French via 4D_Tech
Hi Pat,

Can you simply assign tEditText to the field after returning from the method 
*PicturePathSelect*?

That is:

*PicturePathSelect* (->tEditText) // choose a pic, copy pathname to tEditText

[someTable]someField := tEditText

Regards,
Jeremy French


> On Nov 11, 2018, at 12:39 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Using v17, Mac
> 
> I have an enterable field on a form. The user can right-click on it and
> select an action such as "Select a picture" from a dynamic popup menu.
> 
> The code that runs:
> 
> tEditText:=""
> 
> *PicturePathSelect* (->tEditText) // choose a pic, copy pathname to
> tEditText
> 
> *SET TEXT TO PASTEBOARD*(tEditText)
> 
> *INVOKE ACTION*(ak clear)
> 
> *INVOKE ACTION*(ak paste)
> If I put a trace on the last line of this code and then step through that
> line, then press F5, it works as expected: the picture pathname is copied
> into the selected field.
> If I don't trace through it, this simply does not work. The field is no
> longer the active object and the text hasn't been copied into 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
**

Placing a picture or graphic object

2018-11-11 Thread Peter Mew via 4D_Tech
Hi
I am creating a graphic  object, could be a line or rectangle or a picture.
Having created it, how do I place it on the form where I Want it.
Bear in mind Im on v13 and dont have access to object set coordinates, only
move picture, transform picture, and object get coordinates.
Object Move, using absolute coordinates, doesnt seem to work
For Example I want to place a Grapic called "Cursor" at absolute
coordinates ^0 pixels from the top of the form, and 55 pixels from the left
edge of the form, no resizing.
so I call
$CursorPosPix:=55
OBJECT MOVE(*;"<>Cursor2";$CursorPosPix;60;0;0;*)
<>Cursor2 is a Vertical Line 1 pixel in width and 60 pixels high
The result is a diagonal line starting at 0 pixels on the form and
finishing at 60 pixels from the top and about 600 pixels from the left edge.
Thanks
-pm
Mac Yosemite
4D v13.6
**
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
**

INVOKE ACTION only works when I trace through it

2018-11-11 Thread Pat Bensky via 4D_Tech
Using v17, Mac

I have an enterable field on a form. The user can right-click on it and
select an action such as "Select a picture" from a dynamic popup menu.

The code that runs:

tEditText:=""

*PicturePathSelect* (->tEditText) // choose a pic, copy pathname to
tEditText

*SET TEXT TO PASTEBOARD*(tEditText)

*INVOKE ACTION*(ak clear)

*INVOKE ACTION*(ak paste)
If I put a trace on the last line of this code and then step through that
line, then press F5, it works as expected: the picture pathname is copied
into the selected field.
If I don't trace through it, this simply does not work. The field is no
longer the active object and the text hasn't been copied into it.

I also tried

*POST KEY*(*Character code*("v");Command key mask;tEditText)
instead of *INVOKE ACTION*(ak paste)
but that doesn't work either.

Is there something else I need to do to get this to work?

Pat

-- 
*
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: Forms Stop Receiving Certain Events

2018-11-11 Thread Sandor Szatmari via 4D_Tech


 From:   Sandor Szatmari  
 To:   4D iNug Technical <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/11/2018 9:57 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 



 From:   Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/9/2018 11:04 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 

On Nov 9, 2018, at 9:47 AM, Sandor Szatmari wrote:

> I’m glad to learn that.  However, the way our backups are configured I only 
> see 4BL (the log) and and 4BK (the data) files.  Looks like I need to learn 
> more about the backup configuration process.  What is the recommended way to 
> configure backups so that I would have access to these individual files?  Or, 
> are they accessible individually during the restore process from the 4BK 
> file?  Also, if there is any good reading on this you could point me too, 
> It’d be appreciated.  Thanks for your response, very helpful indeed!








Sorry, forgive the previous errant send... here's the complete post:


I followed the path within the database's preferences and the checkbox for 
"Structure File" is checked off.  However, the only files produced by 4D during 
the backup process are the 4BL and 4BK files.  My only thought is that the 4BK 
file contains the structure file.  We are running v15 R5 but the database 
itself has been around for a very long time;  15+ years.  Perhaps this is 
legacy behavior that is due to database's age/history?

I will try experimenting with a restore on an offline machine.  If I am missing 
the structure file and can't restore that would be a problem.  I seriously 
don't think there's a problem.  We have restored to offline machines for 
testing in the past but that was many software releases ago.

Any thoughts are appreciated.


Sandor Szatmari


















Senior Software Developer
Bristol Capital Inc. - InfoPlus
201 746 7215
www.infoplusonline.com





There is a checkbox in Backup -> Configuration called “Structure File”. Check 
that box and it will backup the .4DB file. You might also consider adding to 
the “Attachments” area the .4Dindy file, “Components” folder, “Plugins” folder, 
and “Resources” folder to the backup. That gives you a complete snapshot of 
what it takes to restore a 4D structure file. You need all these pieces.

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

CONFIDENTIALITY NOTICE: This email (and any related attachments) contains 
information from InfoPlus (a service of Bristol Capital, Inc.). It is intended 
only for the addressee and may contain information that is confidential and/or 
otherwise exempt from disclosure under applicable law. If you are not the 
intended recipient or are acting as agent for the intended recipient, any use 
or disclosure of this communication is prohibited. If you have received this 
communication in error, please notify us immediately to arrange for the 
appropriate method of returning or disposing of the communication. If our 
respective Companies have confidentiality provisions in effect, this email and 
the materials contained herein are deemed CONFIDENTIAL and should be treated 
accordingly unless expressly provided otherwise.
**
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: Forms Stop Receiving Certain Events

2018-11-11 Thread Sandor Szatmari via 4D_Tech


 From:   Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/9/2018 11:04 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 

On Nov 9, 2018, at 9:47 AM, Sandor Szatmari wrote:

> I’m glad to learn that.  However, the way our backups are configured I only 
> see 4BL (the log) and and 4BK (the data) files.  Looks like I need to learn 
> more about the backup configuration process.  What is the recommended way to 
> configure backups so that I would have access to these individual files?  Or, 
> are they accessible individually during the restore process from the 4BK 
> file?  Also, if there is any good reading on this you could point me too, 
> It’d be appreciated.  Thanks for your response, very helpful indeed!





I followed the path within the database's preferences and the checkbox for 
"Structure File" is checked off.  However, the only files produced by 4D during 
the backup process are the 4BL and 4BK files.  My only thought is that the 4BK 
file contains the structure file.  We are running v15 R5 but the database 
itself has been around for a very long time;  15+ years.  Perhaps this is 
legacy behavior that is due to database's age/history?


I will try experimenting with a restore on an offline machine.  If I am missing 
the structure file and can't restore that would be a problem.  I seriously 
don't think there's a problem.  We have restored to offline machines for 
testing in the past but that was many software releases ago.


Any




There is a checkbox in Backup -> Configuration called “Structure File”. Check 
that box and it will backup the .4DB file. You might also consider adding to 
the “Attachments” area the .4Dindy file, “Components” folder, “Plugins” folder, 
and “Resources” folder to the backup. That gives you a complete snapshot of 
what it takes to restore a 4D structure file. You need all these pieces.

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

CONFIDENTIALITY NOTICE: This email (and any related attachments) contains 
information from InfoPlus (a service of Bristol Capital, Inc.). It is intended 
only for the addressee and may contain information that is confidential and/or 
otherwise exempt from disclosure under applicable law. If you are not the 
intended recipient or are acting as agent for the intended recipient, any use 
or disclosure of this communication is prohibited. If you have received this 
communication in error, please notify us immediately to arrange for the 
appropriate method of returning or disposing of the communication. If our 
respective Companies have confidentiality provisions in effect, this email and 
the materials contained herein are deemed CONFIDENTIAL and should be treated 
accordingly unless expressly provided otherwise.
**
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
**