Page 1 of 1

Windows versus Linux Widget

Posted: Thu Apr 12, 2007 2:02 pm
by pbdep
Hi Fred,

Im porting a Linux application to windows (Linux V4 Beta4) (Win32 v4)

The application does a 2dDraw on an ImageWidget.
Also in the same window there is a StringGadget displayed.

To be able to update the Image in the Gadget I use SetGadgetState(0, ImageID(0))
This work fine under linux, and the string gadget AND image are shown both in the same window.


Though.. if I use the same code under Win32.. I dont see the StringGadget,
So there is an imcompatibility between the use of refreshing/gadget behaviour.

On Win32 they seem to be both there..but I never see the StringGadget,

Question is: What could i use to update both the image and
the string gadget to have them both updated in the same Window?
(for both linux and windows to be working)


Regards, Norman.

Posted: Thu Apr 12, 2007 3:06 pm
by walker
...could you please show a snippet which demonstrates your problem?

I have an application with image and stringgadgets too... and they're working on both OS as expected...

Posted: Thu Apr 12, 2007 3:18 pm
by Brice Manuel
Like Walker said, a snippet would be helpful. I am using Windows and Linux and my games are using multiple image gadgets and string gadgets on the same window and I am not having the problems you describe.

Posted: Thu Apr 12, 2007 4:25 pm
by pbdep
HA... small "divide error" in my own program.. Its works now!

I had a image "divide" hidden in a un-collapsed procedure so i missed it ;-(

Sorry folks.. thisone can be shot ;-)

Regards, Norman.

Posted: Mon Apr 16, 2007 8:20 am
by pbdep
I had again the problem.. but this time with the Frame3DGadget.


Example:

When creating an image of 100,100
and lateron creating an imagegadget of size 50,50
then imagegadget always assumes 100,100 and keeps overwriting the window.

So it does not matter what you fillout at Imagegadget the size of createimage
is leading with screen updates...

can someone confirm this?

Norman.

Posted: Mon Apr 16, 2007 8:30 am
by Trond
Yes, I don't know what the purpose of the size parameters for the imagegadget is.