How do i stop this from happening?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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! :)
Post Reply