Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
84 user(s) are online (67 user(s) are browsing Forums)

Members: 0
Guests: 84

more...

Support us!

Headlines

Report message:*
 

Re: Displaying animated GIFs / PNGs

Subject: Re: Displaying animated GIFs / PNGs
by tomsoniq on 2020/12/2 15:25:03

@Raziel
Hi,
that's pretty close but it attaches a datatype object to an empty space in a window at a fixed position where no gadget is.
I need it as a child of a layout object.

I also tried adding it with LAYOUT_AddImage instead of LAYOUT_AddChild but that doesn't help either.

So my code for the layout section of the window currently is:
LAYOUT_AddChild, LayoutObject,
LAYOUT_VertAlignment, LALIGN_CENTER,
LAYOUT_HorizAlignment, LALIGN_CENTER,

LAYOUT_AddChild, Objects[OBJ_BUTTON] = ButtonObject,
GA_Text, "Button",
ButtonEnd,
CHILD_WeightedWidth, 0,
CHILD_WeightedHeight, 0,


LAYOUT_AddImage, Objects[OBJ_PICTURE] = NewDTObject("picture.png",
DTA_SourceType, DTST_FILE,
DTA_GroupID, GID_PICTURE,
PDTA_DestMode, PMODE_V43,
PDTA_ScaleQuality, 1,
TAG_END),
CHILD_WeightedWidth, 0,
CHILD_WeightedHeight, 0,

LayoutEnd,
CHILD_WeightedHeight, 0,

But I only get the button, not the picture.



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project