Re: Moving picture resources from one database to another

2018-02-10 Thread Patrick Emanuel via 4D_Tech
Hi,

This method works well only if you are not in a 64 bits version. All old
pictures format aren't recognize.
So, if you want that work, use this code in a 32 bits version.



-
Patrick EMANUEL

Administrator
www.association-qualisoft.eu 
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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: Mac OS for v11 Server

2018-02-10 Thread Wayne Stewart via 4D_Tech
10.6.8 in a virtual environment?

Actually server is very stable because of the lack of user interaction at
least for v13. Not so certain about v11.

Seriously look at the VM environment if you have problems though.

Wayne

On Sun, 11 Feb 2018 at 17:03, Justin Leavens via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> If there's anyone else out there still running a v11 Mac server - I'm
> curious
> to know what version of Mac OS X you're running under? I need to upgrade a
> current 10.6.8 server machine with... something. thanks!
>
>
>
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 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
> **

-- 

Regards,

Wayne


[image: --]
Wayne Stewart
[image: http://]about.me/waynestewart

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

Mac OS for v11 Server

2018-02-10 Thread Justin Leavens via 4D_Tech
If there's anyone else out there still running a v11 Mac server - I'm curious
to know what version of Mac OS X you're running under? I need to upgrade a
current 10.6.8 server machine with... something. thanks!



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
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: Moving picture resources from one database to another

2018-02-10 Thread Tim Nevels via 4D_Tech
On Feb 10, 2018, at 2:00 PM, Dave Tenen wrote:

> Forgive my ignorance on these features.  Maybe I wasn’t clear…I am in the 
> toolbox, in the Pictures item.  There are pictures in that list (I'm assuming 
> they are buried in the structure)  I want to take all of them and move them 
> into a place that a different structure can use them, ideally so they can be 
> reused by many structures…similar to a component!  

Hi Dave,

4D provides all the commands that you need to accomplish this. I’ve not done 
exactly what you want to do, but I have done something that works with the 
Toolbox Picture Library. 

This method converts all pictures in the library to PNG format and then writes 
them back to the library. It’s an example to see the logic that you would use.

C_TEXT($pictureName_t)
C_PICTURE($picture_c)
C_LONGINT($i;$pictureID_l)
ARRAY LONGINT($pictureID_al;0)
ARRAY TEXT($pictureName_at;0)

PICTURE LIBRARY LIST($pictureID_al;$pictureName_at)

For ($i;1;Size of array($pictureID_al))
$pictureID_l:=$pictureID_al{$i}
$pictureName_t:=$pictureName_at{$i}
GET PICTURE FROM LIBRARY($pictureID_l;$picture_c)

  // convert the picture
CONVERT PICTURE($picture_c;".png")

  // make all white pixels transparent
TRANSFORM PICTURE($picture_c;Transparency;0x00FF)

  // write back to library
SET PICTURE TO LIBRARY($picture_c;$pictureID_l;$pictureName_t)
End for 

So for your need, change the SET PICTURE TO LIBRARY command to something that 
will save $picture_d to file on your hard drive like the WRITE PICTURE FILE 
command.

Here are the docs on “Pictures” commands. It will have all the information you 
need to accomplish your goal.

http://doc.4d.com/4Dv16/4D/16.3/Pictures.201-3651053.en.html

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: Javascript Calendar in Web Area

2018-02-10 Thread Julio Carneiro via 4D_Tech
I agree with Tom’s recommendations, try to pick a framework of your choice that 
does include a Calendar widget.
 I’m also a big fan of Kendo UI. I’ve been using their jQuery version but I’m 
now in the process of migrating to their Angular version. 

> On Feb 10, 2018, at 1:50 PM, Tom DeMeo via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi,
> 
> 
> I would recommend that choosing a Calendar is less important than choosing a 
> web UI/datasource framework (which would include a Calendar solution) and 
> using it whenever you have a choice. Picking and choosing libraries for 
> specific UI problems makes development more difficult and inefficient. In 
> some specific cases, like charting, it makes sense, but for a Calendar, 
> that’s less likely. Perhaps you have a really specific need that narrows what 
> you can use, but its more likely that you can use any of the better UI 
> frameworks for your solution.
> 
> I’d go shopping for a web UI toolkit and stick with it. I’ve been using Kendo 
> UI more recently and really like the Calendar functionality, and more 
> importantly the whole framework is great to work with.
> 
> As for how to get data into and get data out of a web area, it is very 
> straightforward:
> 
> 
> From 4D code to call javascript in the Web Area - WA EXECUTE JAVASCRIPT 
> FUNCTION:
> http://doc.4d.com/4Dv16/4D/16.3/WA-EXECUTE-JAVASCRIPT-FUNCTION.301-3652382.en.html
>  
> 
> 
> 
> From the Web Area,  to call 4D methods using javascript code, look for using 
> the $4d object in the middle of the page below:
> http://doc.4d.com/4Dv16/4D/16.3/Programmed-management-of-Web-Areas.300-3652400.en.html
>  
> 
> 
> 
> 
> Tom

--
Julio Carneiro
jjfo...@gmail.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: Moving picture resources from one database to another

2018-02-10 Thread Dave Tenen via 4D_Tech


> Message: 13
> Date: Thu, 8 Feb 2018 10:57:53 -0500
> From: Jeffrey Kain 
> To: 4D iNug Technical <4d_tech@lists.4d.com>
> Subject: Re: Moving picture resources from one database to another
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
> 
> Don't be using Mac resources anymore. 
> 
> Get those pictures into files and put them into the Resources folder next to 
> your structure file (there's even a drag and drop GUI (Design menu->Tool 
> Box->Resources) where you can drag pictures from your desktop into the window 
> and 4D will copy them to Resources automatically, and you can drag them out 
> this window and onto a form where 4D will create a reference to this picture, 
> much like the picture library.


Forgive my ignorance on these features.  Maybe I wasn’t clear…I am in the 
toolbox, in the Pictures item.  There are pictures in that list (I'm assuming 
they are buried in the structure)  I want to take all of them and move them 
into a place that a different structure can use them, ideally so they can be 
reused by many structures…similar to a component!  

Dave Tenen


Personal Chef 

Coming to you from Spec Pond and I swear the fish was
[]
this big

dte...@me.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: Javascript Calendar in Web Area

2018-02-10 Thread Tom DeMeo via 4D_Tech
Hi,


I would recommend that choosing a Calendar is less important than choosing a 
web UI/datasource framework (which would include a Calendar solution) and using 
it whenever you have a choice. Picking and choosing libraries for specific UI 
problems makes development more difficult and inefficient. In some specific 
cases, like charting, it makes sense, but for a Calendar, that’s less likely. 
Perhaps you have a really specific need that narrows what you can use, but its 
more likely that you can use any of the better UI frameworks for your solution.

I’d go shopping for a web UI toolkit and stick with it. I’ve been using Kendo 
UI more recently and really like the Calendar functionality, and more 
importantly the whole framework is great to work with.

As for how to get data into and get data out of a web area, it is very 
straightforward:


From 4D code to call javascript in the Web Area - WA EXECUTE JAVASCRIPT 
FUNCTION:
http://doc.4d.com/4Dv16/4D/16.3/WA-EXECUTE-JAVASCRIPT-FUNCTION.301-3652382.en.html
 



From the Web Area,  to call 4D methods using javascript code, look for using 
the $4d object in the middle of the page below:
http://doc.4d.com/4Dv16/4D/16.3/Programmed-management-of-Web-Areas.300-3652400.en.html
 




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