Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » bug in toolbar
Re: bug in toolbar [message #43969 is a reply to message #43946] Tue, 02 December 2014 03:43 Go to previous messageGo to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Patching Win32Proc.cpp line #71 with
bool GetMouseLeft()   { AvoidPaintingCheck__(); return !!(GetKeyState(VK_LBUTTON) & 0x8000); }

resolved the problem, in spite of having added loops like
for(int i = 0; i < 10000; i++)
    GetMouseLeft();

to both ToolButton::Paint and Button::Paint. In other words, I was able to 'switch' problem on/off just by removing/adding patch above, respectively.

Just don't know about eventual (unforeseen) consequences (if any) of patch to Upp code as a whole...

tks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Floating context menu
Next Topic: Menu and UHD on Windows
Goto Forum:
  


Current Time: Fri May 10 07:34:57 CEST 2024

Total time taken to generate the page: 0.02719 seconds