Page 1 of 1

Posted: Thu Feb 06, 2003 6:37 am
by BackupUser
Restored from previous forum. Originally posted by Popke.

I am writing a small label printing program for a friend's store but, i am running into a problem.

After the printrequester dialog closes and i return to the actual window of my program, it looks like the following:



Not exactly how i want a windows app to behave :) Anyone know how to get rid of this happening?

Thanks!

Popke

Posted: Thu Feb 06, 2003 8:20 am
by BackupUser
Restored from previous forum. Originally posted by tinman.
Originally posted by Popke

After the printrequester dialog closes and i return to the actual window of my program, it looks like the following:
This is a problem that affects some gadgets (string, combo and some others IIRC), which you might also see after resizing your window. You can try forcing your window to refresh by using "UpdateWindow_(WindowID())" I think.

--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51)

Posted: Thu Feb 06, 2003 9:15 am
by BackupUser
Restored from previous forum. Originally posted by fred.

You have a correct event loop ? I never seen such problem except for resize (but they should have been fixed since).

Fred - AlphaSND

Posted: Thu Feb 06, 2003 9:42 am
by BackupUser
Restored from previous forum. Originally posted by Pupil.

Almost looks like you textgadgets are to wide and partially covers your stringgadgets, if that isn't the case do as Fred says - look through your event loop.

Posted: Thu Feb 06, 2003 7:26 pm
by BackupUser
Restored from previous forum. Originally posted by Popke.

Pupil,

You were absolutely right, my text gadgets were WAY too wide...

Thanks! Learn something new every day they say :)

Popke

Posted: Thu Feb 06, 2003 9:45 pm
by BackupUser
Restored from previous forum. Originally posted by Kale.

If you ever get 'glitches' and the gadgets not drawing/refreshing right use this:

Code: Select all

RedrawWindow_(WindowID(),0,0,1)
--Kale

Getting used to PureBasic and falling in Love! :)