Page 1 of 1

Posted: Sun Mar 23, 2003 7:21 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

I am having a problem with my gadgets displaying properly.

First I create an image (just a white box). Then I display that image
as a Imagegadget.

Next I create a number of textgadgets which go over top of the imagegadget.

Here is the problem.

If I create the imagegadget first, then all the text gadgets don't show until I minimie and refresh the screen.

If I create the Text gadgets first, then they show fine, but if I minimize the screen the restore it, they disappear.

Is this a bug???

Thanks for the help.

Derek

Posted: Sun Mar 23, 2003 7:43 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

I forgot to mention... I am running Windows XP Pro

Posted: Sun Mar 23, 2003 7:46 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

Gadgets is not really supposed to overlap each other, but anyway try this on the textgadgets after all your gadgets are created and see if it helps:

Code: Select all

RedrawWindow_(GadgetID(#YourGadgetNumber), 0, 0, #RDW_INVALIDATE)

Posted: Sun Mar 23, 2003 7:56 pm
by BackupUser
Restored from previous forum. Originally posted by LJ.

Effigy,

Something I've learn recently from Timo, ALWAYS post an example of your code with the problem you are having.

Posted: Sun Mar 23, 2003 8:31 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

Well... the redraw fixed it.

Thanks again for the help, and I will post my code next time thanks LJ

Derek