Re: Animated Notifcation

2017-08-09 Thread Sujit Shah via 4D_Tech
Great thanks - thats the one

On Thu, Aug 10, 2017 at 3:22 PM, Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> did you mean...
>
> > AnotherTip 2.0 is available
> > ———
> >
> > AJAR SA is pleased to announce a new release of the 4D widget :  Another
> Tip 2.0
> >
> > This new release 2.0 adds new animation functionalities.
> >
> > A new revamp Lab is provided, to help you build your tip styles.
> >
> > Another Tip is a 4D component to enhance your 4D Application with a
> modern, beautiful and rich tooltip.
> >
> > Really simple to use and to integrate into your current 4D Application,
> adding a tooltip has never been so easy.
> >
> > To use it, simply write in the target Method Object these three lines of
> code:
> >
> >  C_OBJECT(MyObjectVariable)
> >  OB SET(MyObjectVariable;"tip-display";true)
> >  tip(MyObjectVariable)
> >
> >
> > A full demo, documentation and videos are available here :
> >
> > http://anothertip.ajar.ch/v2/index.html
> >
> > Maurice Inzirillo
> > --
> > AJAR S.A.
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Animated Notifcation

2017-08-09 Thread Keisuke Miyako via 4D_Tech
did you mean...

> AnotherTip 2.0 is available
> ———
>
> AJAR SA is pleased to announce a new release of the 4D widget :  Another Tip 
> 2.0
>
> This new release 2.0 adds new animation functionalities.
>
> A new revamp Lab is provided, to help you build your tip styles.
>
> Another Tip is a 4D component to enhance your 4D Application with a modern, 
> beautiful and rich tooltip.
>
> Really simple to use and to integrate into your current 4D Application, 
> adding a tooltip has never been so easy.
>
> To use it, simply write in the target Method Object these three lines of code:
>
>  C_OBJECT(MyObjectVariable)
>  OB SET(MyObjectVariable;"tip-display";true)
>  tip(MyObjectVariable)
>
>
> A full demo, documentation and videos are available here :
>
> http://anothertip.ajar.ch/v2/index.html
>
> Maurice Inzirillo
> --
> AJAR S.A.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Animated Notifcation

2017-08-09 Thread Sujit Shah via 4D_Tech
I believe someone had developed a component to display JQuery Like
Notifications in 4D using animation and transparency pretty much like:

http://ned.im/noty/#/animations

If someone can recall please send a link Thanks





-- 

xxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Method Header Strategies

2017-08-09 Thread Lee Hinde via 4D_Tech
The ‘false’ doesn’t cover the whole header.

> On Aug 9, 2017, at 5:35 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> that's what I thought at first but then the "False" block already does that 
> job.
> 
>> 2017/08/10 7:58、Guy Algot via 4D_Tech <4d_tech@lists.4d.com> のメール:
>> My guess… So you can click the triangle and hide everything in the header?
> 
> 
> 
> 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Anybody using the TimePicker widget - TimePicker SET STEP

2017-08-09 Thread John Baughman via 4D_Tech
I have been using this for a very long time and always with a 45 min step. Now 
I need to set it to a 10 min step Y calling..

TimePicker SET STEP ($ObjectName;?00:10:00?)

Nothing happens. It stays at 45 mins.

Any ideas?

John



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Method Header Strategies

2017-08-09 Thread Kirk Brooks via 4D_Tech
I tried using that SQL trick for a while and ultimately abandoned it. I
really rely on the headers I create to remind me of what the method does
and what the params are at the top. All the long discussion, if any, comes
after that. I've always heard it is all stripped out when compiled so I
just don't worry about it.

Sometimes I use If(True) statements just to make the code easier to manage.
And I like break up long Case of statements with :(false) // ** some
comment or header here **

It's purely cosmetic but I like it.

On Wed, Aug 9, 2017 at 3:11 PM, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> From the conversation about converting images we saw this method header:
>
>
> If (True)
> If (False)
> Begin SQL
> /*
> Name: UTIL_ConvertPICTs
> Path: UTIL_ConvertPICTs
>
> Purpose: Convert all PICT formatted images in the
> Picture Libraray to .PNG images
>
> The v13.2 or later 4D Pack Plugin must be installed to use this
> method
>
> */
> End SQL
> End if
> C_TEXT($MethodName_T)
> $MethodName_T:=Current method name
>  //= Declare Variables
> ==
>  //method_parameters_declarations
>  //--
> --
>  //method_wide_constants_declarations
>  //--
> --
>  //local_variable_declarations
> C_LONGINT($Ndx;$SOA;$RIS;$PictRef_L)
> C_TEXT($PictName_T)
> C_PICTURE($Pict_G)
> C_POINTER($Pict_P)
> End if
>
> I can suss two things out of this. One is the  "If (false)" bit at the top
> so you can do all kinds of things that break cross-referencing in the name
> of not running code.
>
> In this case it’s ‘protecting’ a Begin/End SQL which is being used because
> the construct allows you just type things with out having to comment your
> comments out.
>
> But, why wrap the whole thing in if (True)?
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
Kirk Brooks
San Francisco, CA
===

*The only thing necessary for the triumph of evil is for good men to do
nothing.*

*- Edmund Burke*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Randy Engle via 4D_Tech
I really appreciate how so many of you chimed in so quickly on this topic!

Many, many thanks to all!

Randy Engle


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Method Header Strategies

2017-08-09 Thread Keisuke Miyako via 4D_Tech
that's what I thought at first but then the "False" block already does that job.

> 2017/08/10 7:58、Guy Algot via 4D_Tech <4d_tech@lists.4d.com> のメール:
> My guess… So you can click the triangle and hide everything in the header?




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Method Header Strategies

2017-08-09 Thread Guy Algot via 4D_Tech
My guess… So you can click the triangle and hide everything in the header?

> On Aug 9, 2017, at 4:11 PM, Lee Hinde via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> But, why wrap the whole thing in if (True)?


Later,
Guy

--
Guy Algot, Solutions Specialist
Edmonton, Alberta
(780) 974-8538

hardware, installation, training, support, programming, internet
specializing in 4th Dimension
=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
they use Borg to do their marketing and Ferengi to do their programming."
-- Simon Slavin



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Using c_object for passing parameters

2017-08-09 Thread John Baughman via 4D_Tech
I started using the c_object just recently and am finding more and more places 
to adapt it’s use. I thought my latest revelation was interesting, at least to 
me. I was creating a process that involves several levels of user interaction. 
In other words the user is presented with a list with options that create a 
different list with options that create a different list, etc. All when 
completed returning back to the previous list.

I like to use local variables as much as possible and I soon found myself 
creating too many local variables like $button, $button2, $button3, etc. I was 
also stepping on local variables  too often when I forgot to create a unique 
variable for the list being displayed. At first blush I was going to just push 
each list off to it’s own method. I hate doing this as too many methods in a 
unique process just gets too messy.

Then it dawned on me to use c_object for the parameters and keep all the lists 
in the same method. To me and my simple mind I thought this was pretty cool, 
perhaps someone else might find the thought process interesting or even useful 
so I have pasted a code snippet below….

John


//Initial call from another method…
C_OBJECT($oParams)
$oParams:=New object("action";"DoProcedures";"date";$aDate{Size of 
array($aDate)}) //plus other paams...
AptLenghtMigrate_Procedures ($oParams)

--
// *** Method: AptLenghtMigrate_Procedures ***
C_OBJECT($oParams)
ARRAY LONGINT($aProcedureSeq;0)  //need this because the array will be put in a 
c_object later
ARRAY LONGINT($aProcedureMIgrationLength;0)  //need this because the array will 
be put in a c_object later

$oParams:=$1
$action:=$oParams.action
$startDate:=Date($oParams.date)

Case of 
   : ($action="DoProcedures")
ALL RECORDS([Procedure])
SELECTION TO 
ARRAY([Procedure]_Procedure_Sequence;$aProcedureSeq;[Procedure]Migration_Procedure_Length;$aProcedureMIgrationLength)
 //plus more arrays…

Repeat 
//Display the procedures to the user and provide options
   Case of 
 : ($button=4) //user selected option 4 to list appointments 
scheduled after $startDate
OB SET 
ARRAY($oParams;"procedure_sequences";$aProcedureSeq)
OB SET 
ARRAY($oParams;"procedure_m_lengths";$aProcedureMIgrationLength)
$oParams.action:="ListAppointments"
AptLenghtMigrate_Procedures ($oParams)
  End case 
 Until ($Button=1)

  : ($action="ListAppointments")
QUERY([Appointment];[Appointment]Appointment_Date>=$startDate)
SELECTION TO 
ARRAY([Appointment]Appointment_Date;$aAppointmentDate;[Appointment]_Chair_Sequence;$aChairSequence)
  //plus more arrays... 

Repeat 
 //Display the scheduled appointments to the user and provide 
options

 If ($Button=1) //user selected option 1 to list appointments 
scheduled on a selected date and chair with procedure lengths
   $oParams.chair_date:=$aAppointmentDate{$line}
   $oParams.chair_sequence:=$aChairSequence{$line}
  $oParams.action:="ListChairAppointments"
  AptLenghtMigrate_Procedures ($oParams)

 End if 

  Until ($done)

   : ($action="ListChairAppointments")
  OB GET ARRAY($oParams;"procedure_sequences";$aProcedureSeq)
  OB GET 
ARRAY($oParams;"procedure_m_lengths";$aProcedureMIgrationLength)
  //will use the 2 arrays created in the initial call to get migration 
lengths for each scheduled procedure

  
QUERY([Appointment];[Appointment]Appointment_Date=Date($oParams.chair_date);*)
  QUERY([Appointment]; & 
;[Appointment]_Chair_Sequence=$oParams.chair_sequence)
  SELECTION TO ARRAY(….

  Repeat 
   //Display the chair appointments to the user and provide options
   Case of 
  : ($Button=3)  //etc...
   End case 
  Until ($Done)

:($action=“etc….")
   //etc…

:($action=“etc….")
   //etc…

End case 



John Baughman
Kailua, Hawaii
(808) 262-0328
john...@hawaii.rr.com





**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Method Header Strategies

2017-08-09 Thread Lee Hinde via 4D_Tech
From the conversation about converting images we saw this method header:


If (True)
If (False)
Begin SQL
/*
Name: UTIL_ConvertPICTs
Path: UTIL_ConvertPICTs

Purpose: Convert all PICT formatted images in the 
Picture Libraray to .PNG images

The v13.2 or later 4D Pack Plugin must be installed to use this method

*/
End SQL
End if 
C_TEXT($MethodName_T)
$MethodName_T:=Current method name
 //= Declare Variables 
==
 //method_parameters_declarations
 
//
 //method_wide_constants_declarations
 
//
 //local_variable_declarations
C_LONGINT($Ndx;$SOA;$RIS;$PictRef_L)
C_TEXT($PictName_T)
C_PICTURE($Pict_G)
C_POINTER($Pict_P)
End if 

I can suss two things out of this. One is the  "If (false)" bit at the top so 
you can do all kinds of things that break cross-referencing in the name of not 
running code.

In this case it’s ‘protecting’ a Begin/End SQL which is being used because the 
construct allows you just type things with out having to comment your comments 
out.

But, why wrap the whole thing in if (True)?


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: WEB SEND FILE - Duplicate HTML

2017-08-09 Thread Lee Hinde via 4D_Tech

> On Aug 9, 2017, at 2:10 PM, Matthew Bollwitt via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I know I’ve seen this before but I can’t remember how I resolved it. When I 
> send a file out using WEB SEND FILE command, the page comes out as intended, 
> but part of the HTML file gets duplicated and added on to the end. So I get 
> the page and then a lower section of the same page added on.
> 
> Am I hitting a page size limit? Is there still a 32K limit to 4D pages 
> getting served up with 4D tags?
> 
> Anyone else experience this? Know how to resolve it?
> 
> Thanks!
> 

I had a situation like this and Kirk Brooks kindly gave me a second pair of 
eyes to figure it out.  This may not be your cause, but I had a similar outcome.

In my case I had a method that both calculated some values and returned a page. 
I was calling that routine as part of a parent routine that just wanted the 
value calculation part (bad code design.). 4D, more or less, honors the final 
Web Send File, so I mostly saw the page I wanted but that call in the middle 
mucked things up.

So, the point is, do you have something calling Web Send File in the middle of 
the parent routine that’s sending the page you want to see?


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

WEB SEND FILE - Duplicate HTML

2017-08-09 Thread Matthew Bollwitt via 4D_Tech
I know I’ve seen this before but I can’t remember how I resolved it. When I 
send a file out using WEB SEND FILE command, the page comes out as intended, 
but part of the HTML file gets duplicated and added on to the end. So I get the 
page and then a lower section of the same page added on.

Am I hitting a page size limit? Is there still a 32K limit to 4D pages getting 
served up with 4D tags?

Anyone else experience this? Know how to resolve it?

Thanks!


Matthew Bollwitt - mbollw...@campcourageous.org 

Camp Courageous - http://www.campcourageous.org 
   
    

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Chuck Miller via 4D_Tech
You are missing one line of code

TRANSFORM PICTURE($Pict_G;Transparency;0x00FF)

This will set white background to clear. 

regards

Chuck


 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Aug 9, 2017, at 4:22 PM, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
>   For ($Ndx;1;$SOA)  // for each picture
>   $PictRef_L:=$PictRef_aL{$Ndx}
>   $PictName_T:=$PictName_aT{$Ndx}
>   GET PICTURE FROM LIBRARY($PictRef_aL{$Ndx};$Pict_G)
>   $Pict_P:=->$Pict_G  // passage of a pointer
>   If (AP Is Picture Deprecated ($Pict_P)=1)  // if format is obsolete
>   CONVERT PICTURE($Pict_G;".PNG")  // conversion to png
>   SET PICTURE TO LIBRARY($Pict_G;$PictRef_L;$PictName_T)  // and 
> storage in the library
>   End if 
>   End for 

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Timothy Penner via 4D_Tech
Don't forget that the MSC helps you locate deprecated pictures:
http://blog.4d.com/msc-now-helps-you-to-find-deprecated-images/

These deprecated images will not be visible in 64 bit, they must be converted 
(for example, while in 32 bit).

-Tim




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Tim Nevels via 4D_Tech
On Aug 9, 2017, at 2:59 PM, Randy Engle wrote:

> Been messing with 64bit v16r4
> 
> Found that most (not all) of my PICTURE LIBRARY pictures went south.
> 
> If I open the app in the 32 bit version, they are all still there.
> 
> So... what Christian said below, is more than a "good idea"
> 
> Not looking forward to redoing all of these pictures into the resources 
> folder and then finding all references to them.

It is not required to move all your picture to the Resources folder. You can 
continue to use the Picture Library. All that is needed is to convert the old 
picture format into a new format. Leave the picture names and IDs in the 
library the same and you will not need to update any code or forms.

Here is the code from the knowledge base article. http://kb.4d.com/assetid=76775

If (True)
If (False)
Begin SQL
/*
Name: UTIL_ConvertPICTs
Path: UTIL_ConvertPICTs

Purpose: Convert all PICT formatted images in the 
Picture Libraray to .PNG images

The v13.2 or later 4D Pack Plugin must be installed to use this method

*/
End SQL
End if 
C_TEXT($MethodName_T)
$MethodName_T:=Current method name
 //= Declare Variables 
==
 //method_parameters_declarations
 
//
 //method_wide_constants_declarations
 
//
 //local_variable_declarations
C_LONGINT($Ndx;$SOA;$RIS;$PictRef_L)
C_TEXT($PictName_T)
C_PICTURE($Pict_G)
C_POINTER($Pict_P)
End if 
//== Initialize and Setup 

ARRAY LONGINT($PictRef_aL;0)
ARRAY TEXT($PictName_aT;0)

PICTURE LIBRARY LIST($PictRef_aL;$PictName_aT)
$SOA:=Size of array($PictRef_aL)

// Method Actions ==

If ($SOA>0)
For ($Ndx;1;$SOA)  // for each picture
$PictRef_L:=$PictRef_aL{$Ndx}
$PictName_T:=$PictName_aT{$Ndx}
GET PICTURE FROM LIBRARY($PictRef_aL{$Ndx};$Pict_G)
$Pict_P:=->$Pict_G  // passage of a pointer
If (AP Is Picture Deprecated ($Pict_P)=1)  // if format is obsolete
CONVERT PICTURE($Pict_G;".PNG")  // conversion to png
SET PICTURE TO LIBRARY($Pict_G;$PictRef_L;$PictName_T)  // and storage 
in the library
End if 
End for 
Else 
ALERT("The picture library is empty.")
End if 

// Clean up and Exit =

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Relative path in SVG DOM

2017-08-09 Thread Keisuke Miyako via 4D_Tech
the doc could have been worded better, I suppose.

relative path means relative to the SVG image file.
the doc assumes your SVG is itself inside the Resources folder, in fact at the 
top level.

> 2017/08/09 18:55、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> 
> のメール:
> No, it isn’t. It is created with ’SVG_New’.




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Randy Engle via 4D_Tech
Frijoles Frio!

Thanks  

Randy Engle, Director
XC2 Software LLC – XC2LIVE!
mailto:  randy.en...@xc2software.com
PH:  800.761.4999 – 415.456.9200


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Keith Culotta 
via 4D_Tech
Sent: Wednesday, August 9, 2017 12:35 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keith Culotta 
Subject: Re: Missing Pict - 64bit Removes pictures from library

This was a big help with the Picture Library.  Run it from a version of 4D that 
still supports the old format.  http://kb.4d.com/assetid=76775 


Keith - CDI



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Tools Was: Re: C-objects and memory use

2017-08-09 Thread Cannon Smith via 4D_Tech
I can! :-)



--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Aug 9, 2017, at 1:34 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Sorry, I don't have a Forum link to the right request, but perhaps someone
> else can supply one?

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Tools Was: Re: C-objects and memory use

2017-08-09 Thread David Adams via 4D_Tech
> So many times in the past, and even still today, 4D will add a now
property to
> a form object that can only be set by using the Property List in the
Design
> environment. So no programatic way to “set” or “get” the new property.
Glaring
> example of this are new listbox properties. Then after some time and
several
> new versions of 4D, new “get” and “set” commands are added to the
language so
> you have programatic control over the property.

Good point! My favorite feature request in the past year comes from Cannon
Smith and relates to your point. Cannon asked for each form object to have
a C_OBJECT associated with it *autoamtically*. The idea is to have a little
dictionary available automatically. It's a really beautiful idea nd feels
very "4D" to me. Well, if 4D were to add this feature, it would help make
it easy to store configuration/behavioral informational object about a form
widget "in" the form widget.

And, at that point, why not extend the sytax to support native 4D
properties as well?

$font_size := MyWonderfulButton.FontSize

MyWonderfulButton.FontSize := 14

If you haven't already voted for Cannon's request, please do. (Anyone
rolling their own event cycles/MVVC/etc. stuff in native 4D alredy knows
they want this...everyone else would just wonder how they had lived without
it for so long.)

Sorry, I don't have a Forum link to the right request, but perhaps someone
else can supply one?
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Keith Culotta via 4D_Tech
This was a big help with the Picture Library.  Run it from a version of 4D that 
still supports the old format.  http://kb.4d.com/assetid=76775 


Keith - CDI

> On Aug 9, 2017, at 2:28 PM, David Adams via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I put all of my pictures into PNG in external files some years back. I
> wrote a tech note about migrating from the picture library and it had some
> tips and code...although I can't remember what it said. It might be worth
> checking out. Chances are, there are better ideas out there - so if
> something in there seems off, ask here and that helps the archives.
> 
> [Later] Okay, clearly I'm losing it - I wrote this note last year and it's
> 21 pages with a bunch of utility code. Who knew? It looks like it's
> generally available for download from here:
> 
> http://kb.4d.com/assetid=77446
> 
> Presumably, there's something useful in there.I saw JPRs tool at the road
> show and it *definitely* looked helpful. Not sure why there isn't a
> conversion tool of some kind that's fully automated, but I guess JPR's tool
> is meant to improve the situation some. Not sure where you get it
> officially...or if you can.


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread David Adams via 4D_Tech
I put all of my pictures into PNG in external files some years back. I
 wrote a tech note about migrating from the picture library and it had some
tips and code...although I can't remember what it said. It might be worth
checking out. Chances are, there are better ideas out there - so if
something in there seems off, ask here and that helps the archives.

[Later] Okay, clearly I'm losing it - I wrote this note last year and it's
21 pages with a bunch of utility code. Who knew? It looks like it's
generally available for download from here:

http://kb.4d.com/assetid=77446

Presumably, there's something useful in there.I saw JPRs tool at the road
show and it *definitely* looked helpful. Not sure why there isn't a
conversion tool of some kind that's fully automated, but I guess JPR's tool
is meant to improve the situation some. Not sure where you get it
officially...or if you can.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Randy Jaynes via 4D_Tech
Randy,

You can use 4D commands to figure out where these are used. I wrote a utility 
routine to track down things like this and where some formats are used so I 
could flush out the ones that aren’t in the Filters list in the Toolbox.

You should be able to find what you’re looking for using the commands
FORM GET OBJECTS
OBJECT Get Type
OBJECT Get format

These will let you get a list of objects on the form, loop through them, and 
check the objects. 

I found that objects from my picture library have a format like
?6909
?162
?32741

Objects that are pictures from our Resources folder have a format like
#images/Print_16x16.png
#images/magnify_blue_16x64.png

I have a method that I can call from a button on a form to dump everything on 
it, and then another method that will loop through all project forms and table 
forms to create a big dump file of the entire database.

Handy for tracking all the uses of these things so I can get them converted as 
we need.

Would love to get the handy JPR tool that Neil mentioned to see what that does.

HTH,
Randy

--
Randy Jaynes
Senior Programmer and Customer Support

http://printpoint.com • 845.687.3741 • PrintPoint, Inc • 57 Ludlow Lane • 
Palisades, NY 10964 





> On Aug 9, 2017, at 3:00 PM, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> FYI;
> 
> Been messing with 64bit v16r4
> 
> Found that most (not all) of my PICTURE LIBRARY pictures went south.
> 
> If I open the app in the 32 bit version, they are all still there.
> 
> So... what Christian said below, is more than a "good idea"
> 
> Not looking forward to redoing all of these pictures into the resources 
> folder and then finding all references to them.
> 
> Arrrgghhh!
> 
> 😉
> 
> Randy Engle, Director
> XC2 Software LLC – XC2LIVE!
> mailto:  randy.en...@xc2software.com
> PH:  800.761.4999 – 415.456.9200
> 
> 
> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Christian 
> Sakowski
> Sent: Thursday, January 26, 2017 6:29 AM
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: Re: Missing Pict
> 
>> SET PICTURE TO LIBRARY($vpPict;$vPictRef;$vPictName)
> 
> FYI: Never use the library anymore. It's obsolete since v11. You have to use 
> the Resources-Folder. 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: JSON Tools Was: Re: C-objects and memory use

2017-08-09 Thread Tim Nevels via 4D_Tech
On Aug 9, 2017, at 2:00 PM,David Adams wrote:

> Thanks for saying this so clearly. This is the reality that is behind my
> feature request(s) for a set of native tools to deal with arbitrary JSON
> input/output. For now, I've got NTK but it is a feature set that any modern
> tool should have out of the box.

When I read all these messages about how 4D has done a “half-assed” job of 
implementing native support for JSON it reminds me of object properties on 
forms. 

So many times in the past, and even still today, 4D will add a now property to 
a form object that can only be set by using the Property List in the Design 
environment. So no programatic way to “set” or “get” the new property. Glaring 
example of this are new listbox properties. Then after some time and several 
new versions of 4D, new “get” and “set” commands are added to the language so 
you have programatic control over the property. 

I think JSON support has been implemented in a similar way. Instead of “full 
support” for JSON we have “half-assed” support. Maybe that is to sever. Maybe 
it more like "3/4-assed". :) But I’m confident that in future versions of 4D 
they will add more commands to the language and complete support for JSON. For 
now we will all have to work around 4D’s limitations. 

Also consider the constant “Folder separator”. Since the beginning of time 
every 4D developer has had to implement this feature using an interprocess 
variable or a function to return either “:” or “/“. Now we don’t need to. 4D 
has provided native support for this feature. 

Tim


Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Stephen J. Orth via 4D_Tech
Randy,

All our images, which currently is almost 1000 (for buttons, forms, etc..) are 
stored in the Resources folder.  Here is how we access them:

 $image_path:=Get 4D folder(Current resources folder)+"Images\\"

Pretty easy to access the folder, all you need to know from this point is the 
name of the image.  We have a very specific naming convention based upon how 
it's used, just to make things easier to organize.

BTW, all our images are PNG files...

Best,


Steve

-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Randy Engle 
via 4D_Tech
Sent: Wednesday, August 09, 2017 2:00 PM
To: '4D iNug Technical' <4d_tech@lists.4d.com>
Cc: Randy Engle <4d.l...@xc2.us>
Subject: RE: Missing Pict - 64bit Removes pictures from library

FYI;

Been messing with 64bit v16r4

Found that most (not all) of my PICTURE LIBRARY pictures went south.

If I open the app in the 32 bit version, they are all still there.

So... what Christian said below, is more than a "good idea"

Not looking forward to redoing all of these pictures into the resources folder 
and then finding all references to them.

Arrrgghhh!

😉

Randy Engle, Director
XC2 Software LLC – XC2LIVE!
mailto:  randy.en...@xc2software.com
PH:  800.761.4999 – 415.456.9200

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Dennis, Neil via 4D_Tech
> Found that most (not all) of my PICTURE LIBRARY pictures went south.

Did you migrate you pictures to png or some other supported type?

There is a cool update tool that JPR wrote to help you update your images. It 
was demonstrated at the last road show.


Neil








--

Privacy Disclaimer: This message contains confidential information and is 
intended only for the named addressee. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please delete this email 
from your system and notify the sender immediately by replying to this email.  
If you are not the intended recipient you are notified that disclosing, 
copying, distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.

The Alternative Investments division of UMB Fund Services provides a full range 
of services to hedge funds, funds of funds and private equity funds.  Any tax 
advice in this communication is not intended to be used, and cannot be used, by 
a client or any other person or entity for the purpose of (a) avoiding 
penalties that may be imposed on any taxpayer or (b) promoting, marketing, or 
recommending to another party any matter addressed herein.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Missing Pict - 64bit Removes pictures from library

2017-08-09 Thread Randy Engle via 4D_Tech
FYI;

Been messing with 64bit v16r4

Found that most (not all) of my PICTURE LIBRARY pictures went south.

If I open the app in the 32 bit version, they are all still there.

So... what Christian said below, is more than a "good idea"

Not looking forward to redoing all of these pictures into the resources folder 
and then finding all references to them.

Arrrgghhh!

😉

Randy Engle, Director
XC2 Software LLC – XC2LIVE!
mailto:  randy.en...@xc2software.com
PH:  800.761.4999 – 415.456.9200


-Original Message-
From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Christian 
Sakowski
Sent: Thursday, January 26, 2017 6:29 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Subject: Re: Missing Pict

> SET PICTURE TO LIBRARY($vpPict;$vPictRef;$vPictName)

FYI: Never use the library anymore. It's obsolete since v11. You have to use 
the Resources-Folder. 


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Relative path in SVG DOM

2017-08-09 Thread Two Way Communications via 4D_Tech
Hi Keisuke,

No, it isn’t. It is created with ’SVG_New’.
The picture is inside a folder ‘Map_pictures’ inside the database folder.

When I use either the full path to the picture file, or embed it inside the 
SVG, the picture shows.

But for obvious reasons I want to use a relative path. I have tried:

“../“, “..//“, “file:../“, “file:..//“ 

… but nothing seems to work.


Kind regards,

Rudy Mortier
Two Way Communications bvba  -



> On 09 Aug 2017, at 02:16, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> is your SVG image itself a file inside the Resources folder?
> 
>> 2017/08/09 2:45、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> 
>> のメール:
>> However, if I put this inside the xlink:href attribute of the image, it does 
>> not show up in the SVG.
> 
> 
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**