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 #43981 is a reply to message #43969] Sat, 06 December 2014 18:27 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
kropniczki wrote on Tue, 02 December 2014 03:43
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!


Ha! That actually makes some sense: It is possible that something in your Windows setup routes GetKeyState through Window proc for some reason...

Thanks!

Mirek
 
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 08:31:01 CEST 2024

Total time taken to generate the page: 0.02192 seconds