Windows versus Linux Widget

Linux specific forum
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

Windows versus Linux Widget

Post 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.
Last edited by pbdep on Mon Apr 16, 2007 8:20 am, edited 2 times in total.
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post 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...
Brice Manuel

Post 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.
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

Post 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.
pbdep
User
User
Posts: 68
Joined: Fri Apr 25, 2003 5:18 pm
Location: Netherlands

Post 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.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Yes, I don't know what the purpose of the size parameters for the imagegadget is.
Post Reply