Fred or Freak: Smooth IDE resize

Just starting out? Need help? Post your questions and find answers here.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Fred or Freak: Smooth IDE resize

Post by Tenaja »

Trond wrote:The panel gadget flickers alot, so if you use that for the tabs you will get flicker.
So you have to do it manually to get good results? If so, why doesn't Fred just replace his PanelGadget with a new library?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Fred or Freak: Smooth IDE resize

Post by Trond »

Tenaja wrote:
Trond wrote:The panel gadget flickers alot, so if you use that for the tabs you will get flicker.
So you have to do it manually to get good results? If so, why doesn't Fred just replace his PanelGadget with a new library?
Yes, there is always a bit flicker with the panel gadget. The panel gadget is a windows control, so why doesn't Microsoft fix it?

PS. Pay attention to the fact that while the panel gadget is used pervasively throughout Windows (especially options or properties windows) "coincidentally" none of the windows with panels are resizable. :?
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Fred or Freak: Smooth IDE resize

Post by skywalk »

I use the PanelGadget a lot for simplicity of development, but I also disable many of the visual effects of the O/S for speed. So, when I resize a window, I see no flicker. It is not doing much until the resize has completed. I don't enforce this on end users, but it is a suggestion for optimizing computing resources.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Fred or Freak: Smooth IDE resize

Post by User_Russian »

Trond wrote:The panel gadget flickers alot, so if you use that for the tabs you will get flicker.
I, in the above-mentioned pbTorrent, so that the panel does not flicker, do not use PanelGadget, while its counterpart on the VINAP and achieved a complete lack of flicker when switching tabs and resizing.
Tenaja wrote:So you have to do it manually to get good results? If so, why doesn't Fred just replace his PanelGadget with a new library?
Good question.
It's not hard to do, but why has not eliminated the problem with flickering?
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Fred or Freak: Smooth IDE resize

Post by Tenaja »

User_Russian wrote:I, in the above-mentioned pbTorrent, so that the panel does not flicker, do not use PanelGadget, while its counterpart on the VINAP and achieved a complete lack of flicker when switching tabs and resizing.
I totally missed that you only use the panelgadget to determine which scintilla gadget to show, with no actual panel content! What a great idea!

Thanks!
staringfrog
User
User
Posts: 58
Joined: Wed Feb 27, 2013 9:36 am

Re: Fred or Freak: Smooth IDE resize

Post by staringfrog »

Tenaja wrote:
User_Russian wrote:I, in the above-mentioned pbTorrent, so that the panel does not flicker, do not use PanelGadget, while its counterpart on the VINAP and achieved a complete lack of flicker when switching tabs and resizing.
I totally missed that you only use the panelgadget to determine which scintilla gadget to show, with no actual panel content! What a great idea!

Thanks!
PanelGadget's counterpart in WinAPI? Would anyone care to elucidate, please? What window class to look up, for instance? In my application, I've got that olden flickering light, pardon, form problem with panel gadget on resize, as well (wobbling monstrously on XP and a bit less conspicuously on Win7).

Not too many WinAPI sample snippets on this forum, regret to say. When books on WinAPI customarily use C and VB for examples, learning WinAPI with PB is a double headache. If not for a couple of introductory pages on the matter in Kale's book, I would never get to the basics of it (but no farther as yet :) ) Nonetheless, PB still seems to be an ideal tool for mastering intrinsic Windows functions.
Coding's men's knitwork.
Post Reply