Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Scrolling field with Jpeg elements

52 views
Skip to first unread message

André Tremblay

unread,
Jul 23, 2018, 11:08:54 PM7/23/18
to SuperCard Discussion
Hello, 

I wonder how it possible to display a scrolling field with Jpeg? 

The images would come from a list of file's paths to files located on the network?

The user would select an image for further actions.

Is there a way to adapt PictureData() to do that? Or with another XCFN?

This is something we were doing with WindowScript since the beginning of the 90s.

Explanations or suggestions are welcome! 

André Tremblay
PhotoGraphex

codegreen

unread,
Jul 24, 2018, 1:51:41 PM7/24/18
to SuperCard Discussion
If you look in the Internals Toolbox sample projects folder inside the SuperCard application folder you'll find a number of XFcns (InsertFieldObject, InsertFieldHyperLink, GetSetObjectBaseline, GetSetObjectImage, GetSetObjectName, GetSetObjectProp, GetSetObjectRefCon, FlattenFieldHyperLink, SetObjectPlacement, TestObjectAccessors) that let you insert images into fields and query/tweak their properties.

There's also several example projects, which hopefully should be fairly self-explanatory.

HTH,
-Mark

codegreen

unread,
Jul 24, 2018, 2:17:38 PM7/24/18
to SuperCard Discussion
Or if you just wanted to know how to do this by hand:

- if you set the allowObjects of a field to true you can simply paste images into it.

- if you also set the field's allowDrop to true and the allowDnD to true, you can drag image files into it too...

-Mark

André Tremblay

unread,
Jul 29, 2018, 4:52:54 PM7/29/18
to SuperCard Discussion
Hello Mark, 

If you look in the Internals Toolbox sample projects folder inside the SuperCard application folder you'll find a number of XFcns (InsertFieldObject, InsertFieldHyperLink, GetSetObjectBaseline, GetSetObjectImage, GetSetObjectName, GetSetObjectProp, GetSetObjectRefCon, FlattenFieldHyperLink, SetObjectPlacement, TestObjectAccessors) that let you insert images into fields and query/tweak their properties.

There's also several example projects, which hopefully should be fairly self-explanatory.

Thank you very much for the clear informations and direction, it will be most useful shortly, I will temporarily use PictureData() until I finish with other long scripts, but I will definitely go further with your suggestions as they open a vast field of possibilities for my intended goals!

Regards

André Tremblay
PhotoGraphex
Reply all
Reply to author
Forward
0 new messages