1. RE: Redraw Issue

cklester at yahoo.com wrote:
> If you open up Microsoft Word, or any other commercial app, in MS 
> Windows,
> then resize the window, you don't get a lot of flicker in the button bar 
> (or
> even client) area.
> 
> If you open up a EUPHORIA Windows app- for instance, Bernie's TBAR.EXW
> sample from his w32engin- the buttons flicker like crazy!
> 
> Bernie, what's your take on this? Can this be fixed? I'd prefer my 
> buttons
> not flicker, like commercial Windows apps.
> 

   ck:
   I think that you have a problem with your monitor or
   video-card. My toolbar images/buttons are as solid as a rock
   NO flicker.
   The code being used is the same as any windows program uses
   to place the display the buttons. The code uses Windows
   same built in class that and images that the word toolbar
   uses.

   I tried my toolbar at 32bit true color 1024/768 with no
   problem.

   Take the program to a different system with a different
   monitor and different videocard and try it.

Bernie

new topic     » topic index » view message » categorize

2. RE: Redraw Issue

I just tried it on my Win98 system at home. It flickers as well.
My Win95 system at work flickers. My Win2K system does not.

By "flicker," I just mean you can clearly make out the redrawing of the
client area. It's obvious.

I find it hard to believe it's because of my video cards. And I'm surprised
nobody else experiences it. Am I unique in this?!

-ck


> -----Original Message-----
> From: Bernie Ryan [mailto:xotron at localnet.com]
> Sent: Friday, August 03, 2001 6:04 PM
> To: EUforum
> Subject: RE: Redraw Issue
>
>
>
>
> cklester at yahoo.com wrote:
> > If you open up Microsoft Word, or any other commercial app, in MS
> > Windows,
> > then resize the window, you don't get a lot of flicker in the
> button bar
> > (or
> > even client) area.
> >
> > If you open up a EUPHORIA Windows app- for instance, Bernie's TBAR.EXW
> > sample from his w32engin- the buttons flicker like crazy!
> >
> > Bernie, what's your take on this? Can this be fixed? I'd prefer my
> > buttons
> > not flicker, like commercial Windows apps.
> >
>
>    ck:
>    I think that you have a problem with your monitor or
>    video-card. My toolbar images/buttons are as solid as a rock
>    NO flicker.
>    The code being used is the same as any windows program uses
>    to place the display the buttons. The code uses Windows
>    same built in class that and images that the word toolbar
>    uses.
>
>    I tried my toolbar at 32bit true color 1024/768 with no
>    problem.
>
>    Take the program to a different system with a different
>    monitor and different videocard and try it.
>
> Bernie
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. RE: Redraw Issue

Let me clarify: The flicker occurs when you RESIZE the window. Drag the
bottom right handle around and report your results.

>    ck:
>    I think that you have a problem with your monitor or
>    video-card. My toolbar images/buttons are as solid as a rock
>    NO flicker.
>    The code being used is the same as any windows program uses
>    to place the display the buttons. The code uses Windows
>    same built in class that and images that the word toolbar
>    uses.
>
>    I tried my toolbar at 32bit true color 1024/768 with no
>    problem.
>
>    Take the program to a different system with a different
>    monitor and different videocard and try it.
>
> Bernie

new topic     » goto parent     » topic index » view message » categorize

4. RE: Redraw Issue

cklester at yahoo.com wrote:
> Let me clarify: The flicker occurs when you RESIZE the window. Drag the
> bottom right handle around and report your results.
> 

ck:
  If I grab the bottom right corner and resize the window, the
  buttons do not flicker in any way.

  You have a bad videocard or a out of date video driver
  I have seen bad videocards that cause dots to appear on a control
  when a mouse is moved around on the screen and many other weird
  problems. Try changing your videocard to different number of
  colors and resolution. I've seen many problems with videocards
  bad drivers, bad video memory, bad video bios, etc.

   The monitor is a outside possibility.
Bernie

new topic     » goto parent     » topic index » view message » categorize

5. RE: Redraw Issue

cklester at yahoo.com wrote:
> Let me clarify: The flicker occurs when you RESIZE the window. Drag the
> bottom right handle around and report your results.
> 

ck:
  If I grab the bottom right corner and resize the window, the
  buttons do not flicker in any way.

  You have a bad videocard or a out of date video driver
  I have seen bad videocards that cause dots to appear on a control
  when a mouse is moved around on the screen and many other weird
  problems. Try changing your videocard to different number of
  colors and resolution. I've seen many problems with videocards
  bad drivers, bad video memory, bad video bios, etc.

   The monitor is a outside possibility.
Bernie

new topic     » goto parent     » topic index » view message » categorize

6. RE: Redraw Issue

> did the window example I sent you flicker when you held down the 
> left mouse
> and moved the window on this machine?

No, it moved smoothly.

new topic     » goto parent     » topic index » view message » categorize

7. RE: Redraw Issue

> The TBAR.EXW program flickers when the window is resized. The effect is
> quite pronounced. I'm using a Intel P3 550mHz with 256RAM, nVidia
> TNT2 Vanta
> video card, and Windows ME.
>
> I replaced the line ...
>
>        OR({CS_HREDRAW,CS_VREDRAW}), -- style
>
> with
>                                  0, -- style
>
> and the flicker disappeared. Except that when resizing horizontally, the
> toolbar's border still flickers.

It's not just Bernie's program, either. Mike's editor flickers, and most
every other EUPHORIA for Windows program I've seen flickers. All the
Win32Lib examples flicker a LITTLE bit, but that's just because there are
only a very few items in the client area. (Is this the right use of
"client," to mean whatever is within the window's borders?)

But, when I resize this Outlook mail compose window, it doesn't flicker at
all.

Weird!!!

I'm sure it's something simple and once we- I mean you guys- figure it out,
we'll not have flickering windows anymore. :)

-ck

new topic     » goto parent     » topic index » view message » categorize

8. RE: Redraw Issue

> All one has to do is avoid using CS_HREDRAW and CS_VREDRAW style
> flags when
> creating a window.
>
> Does this answer your concerns?
>
> Future versions of Win32Lib will not have these as default.
>
> ----
> Derek.

Derek, thanks so much! I knew one of you gurus would get it.

I like the fact that it's so hard to stump this list... No, I'd say
impossible! :)

<\<

new topic     » goto parent     » topic index » view message » categorize

9. RE: Redraw Issue

Derek Parnell wrote:
> The TBAR.EXW program flickers when the window is resized. The effect is
> quite pronounced. I'm using a Intel P3 550mHz with 256RAM, nVidia TNT2 
> Vanta
> video card, and Windows ME.
> 
> I replaced the line ...
> 
>        OR({CS_HREDRAW,CS_VREDRAW}), -- style
> 
> with
>                                  0, -- style
> 
> and the flicker disappeared. Except that when resizing horizontally, the
> toolbar's border still flickers.

  Derek:

  You should not need to change the style.

  If you are using a TNT2 Vanta 16 megs or less be sure that
  your motherboard bios AGP setting is set for 2X NOT 4X or automatic.
  
  Some manufactors when they decided to go to AGP from PCI video
  cards took their PCI cards and they just moved them to the AGP
  buss without redesigning the card, so some video cards are not
  really AGP cards and can have driver problems.

  ME has alot of driver issues so be sure that you are using the
  correct driver and that a driver is a bug free driver.

  I'am using a S3 Savage4 AGP 2x with 16 megs of memory
  running at 800x600 32bits at 85hz 
  with a memory clock 125mhz with a core clock 110hz
  with a K6-2 at 500mhz 128megs of memory. 

  PS: An for some users that don't seem to think I know what
  I'am talking about, I have been working with computers for
  46 years probably before some of you were even born.

Bernie

new topic     » goto parent     » topic index » view message » categorize

10. RE: Redraw Issue

Derek Parnell wrote:

> It seems to me that the problem stems from having the redraw event 
> happen so
> frequently that there is a noticiable lag between the pixels being set 
> to
> the COLOR_WINDOW color and then having the controls redrawn. In slower
> machines and video driver/cards this leads to a flicker. Why do I have 
> to
> have the window repainted so frequently? If I *must* use these styles it

Derek:
  I tried the toolbar.exw in the win32lib and I don't see any
  jitter or sparkle.
  I only see a normal repaint when the left mouse button is released
  and that only happens once.
  I tried my tbar.exw on another system that has a award bios
  but it has a VGA card and it seems to have no problem.
  
  Maybe I don't understand what the users are complaining about.
  
  Your motherboard manufacture may have a bios upgrade for your
  BIOS if it is a flash BIOS, But be careful if you try to flash
  it that you don't wipe it out. I'am suprised that your motherboard
  has a AGP slot but nothing in the BIOS for it. Maybe there is a
  jumper for 2X/4X on the motherboard, maybe you could chech your
  manual. 
  
Bernie

new topic     » goto parent     » topic index » view message » categorize

11. RE: Redraw Issue

euman at bellsouth.net wrote:
> Here is some code I personally use for window resize.
> It's rather quick to see that InvalidateRect would 
> force a repaint of the entire Window.
> </snip>
> 
> 
>     elsif iMsg = WM_SIZE then
>      
>           inc = HIWORD(lParam)-peek4s(rect_Bottom)
>           if inc > 0 and orgY >= vyScreen-peek4s(rect_Bottom) then 
>              orgY -= inc
>           end if
> 
>           if orgY < 0 then 
>              orgY = 0
>           end if
> 
>           inc = LOWORD(lParam)-peek4s(rect_Right)
>           if inc > 0 and orgX >= vxScreen-peek4s(rect_Right) then 
>              orgX -= inc
>           end if
> 
>           if orgX < 0 then 
>              orgX = 0
>           end if
>       
>           c_proc(GetClientRect, {hwnd,rect})
> 
>           poke4(sifMask,or_bits(SIF_RANGE, SIF_POS))
>           poke4(sifMin, 0)
>           
>           poke4(sifMax,vxScreen-peek4s(rect_Right))
>           poke4(sifPos,orgX)
>           ok = c_func(xSetScrollInfo,{hwnd, SB_HORZ, si, 1})  
>                 
>           poke4(sifMax,vyScreen-peek4s(rect_Bottom))
>           poke4(sifPos,orgY)
>           ok = c_func(xSetScrollInfo,{hwnd, SB_VERT, si, 1})
>           
>           return c_func(xInvalidateRect, {hwnd, NULL, 0})
> 
> <snip/>
> 
> ck, your answer about the window being smooth in the demo I
> sent you answers my question about your hardware. There is nothing
> wrong with it.....Its must be your code or the library you are useing!
> 
> Euman
> euman at bellsouth.net

 I'am sorry but I don't understand what that has to do with the
 toolbar ?
 I don't think the toolbar is part of the client area.


Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu