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 » U++ Widgets - General questions or Mixed problems » FIX - SizeGrip executes first MenuEntry of MenuBar
icon3.gif  FIX - SizeGrip executes first MenuEntry of MenuBar [message #13750] Fri, 25 January 2008 21:42 Go to previous message
loki is currently offline  loki
Messages: 36
Registered: October 2007
Member
Hello,

I got some problem with the SizeGrip in the StatusBar.
After releasing the MouseButton on it, the first entry in the MenuBar is executet. Both, StatusBar and MenuBar belong to the same Ctrl.

I think it has something to do with this code:
void SizeGrip::LeftDown(Point p, dword flags)
{
	TopWindow *q = dynamic_cast<TopWindow *>(GetTopCtrl());
	if(!q || q->IsMaximized() || !q->IsSizeable()) return;
	p = q->GetMouseViewPos();
#ifdef PLATFORM_WIN32
	HWND hwnd = q->GetHWND();
	if(hwnd) {
		::SendMessage(hwnd, WM_SYSCOMMAND, 0xf008, MAKELONG(p.x, p.y));
		::SendMessage(hwnd, WM_LBUTTONUP, 0, MAKELONG(p.x, p.y));
	}
#endif


Edit
This should fix it under Windows. Can't test it under Linux.
p = q->GetMouseViewPos();

I use 2008.1 beta


greetings
loki
  • Attachment: Testcase.zip
    (Size: 740.02KB, Downloaded 474 times)

[Updated on: Fri, 25 January 2008 22:40]

Report message to a moderator

 
Read Message icon3.gif
Read Message
Previous Topic: Look of MenuBar dependent on position of calls
Next Topic: How do I text overlay an image in a Upp::Button ?
Goto Forum:
  


Current Time: Sat Jun 07 17:32:39 CEST 2025

Total time taken to generate the page: 0.17337 seconds