October 29, 2025, 05:42:45 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Redraw Window ?

Started by paja, February 17, 2011, 07:56:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paja

February 17, 2011, 07:56:01 AM Last Edit: February 17, 2011, 08:12:22 AM by paja
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

LarryMc

sounds like you don't have your windows set up properly but without any code to look at I can't help you.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

aurelCB

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.

paja

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


LarryMc

Based on your code, if it was me, I'd use 3x instead of what you are using.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

paja

Sorry,

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

Thanks

aurelCB

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

LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library