IonicWind Software

IWBasic => GUI Central => Topic started by: paja on February 17, 2011, 07:56:01 AM

Title: Redraw Window ?
Post by: paja on February 17, 2011, 07:56:01 AM
Hi,

When I open new window over other window and then I close new window then some controls
on the 2nd window are not correctly shown. How can I redraw window to correct state ?

Thanks
Title: Re: Redraw Window ?
Post by: LarryMc on February 17, 2011, 08:38:10 AM
sounds like you don't have your windows set up properly but without any code to look at I can't help you.

LarryMc
Title: Re: Redraw Window ?
Post by: aurelCB on February 17, 2011, 09:55:36 AM
There is only one case in which controls are not show properly and that is static control.
If you have static control that is predimensioned i mean content of static is smaller then
control dimension then this static control is not showed properly.
Title: Re: Redraw Window ?
Post by: paja on February 17, 2011, 10:57:42 AM
Hi,

You are right that problem is with STATIC control only - but interesting is that it is only in W XP - in W 7 this problem
is not. Sometimes are STATICs only like black square. I tested some dimensions for STATIC but the result the same. It there other solution ?
Some redraw window ?

Thanks

Title: Re: Redraw Window ?
Post by: LarryMc on February 17, 2011, 11:41:57 AM
Based on your code, if it was me, I'd use 3x instead of what you are using.

LarryMc
Title: Re: Redraw Window ?
Post by: paja on February 17, 2011, 12:02:59 PM
Sorry,

But your answer is a bit difficult for me. Please can you a bit more explain.

Thanks
Title: Re: Redraw Window ?
Post by: aurelCB on February 17, 2011, 12:20:07 PM
I find only problem in dimensions,so try this :
'properly dimensioned
CONTROL w1,@STATIC,"Static",80,50,60,12,0x5000010B,1
SETFONT w1,"ms sans serif",8,400,0,1
'not properly dimensioned
CONTROL w1,@STATIC,"Static",80,100,80,20,0x5000010B,2
SETFONT w1,"ms sans serif",8,400,0,2

...and you will see difference
Title: Re: Redraw Window ?
Post by: LarryMc on February 17, 2011, 12:31:35 PM
Quote from: paja on February 17, 2011, 12:02:59 PM
Sorry,

But your answer is a bit difficult for me. Please can you a bit more explain.

Thanks

That shows how hard it is to help you without seeing how your code is written.

LarryMc