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++ Library : Other (not classified elsewhere) » how can I draw on the top of a dockwindow?
Re: how can I draw on the top of a dockwindow? [message #50847 is a reply to message #50846] Tue, 08 January 2019 17:28 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Ok,
Something like this?

index.php?t=getfile&id=5732&private=0


This is a modified version of upp/reference/DockingExample: ( https://www.ultimatepp.org/reference$DockingExample1$en-us.h tml)

Add the below code (no any other alterations needed):

	virtual void Paint(Draw& w)
	{
		DockWindow::Paint(w);
		w.DrawRect(GetSize(), Gray());
		w.DrawImage(GetSize() / 2, CtrlImg::reporticon());

	}



Is this what you need?

Best regards,
Oblivion


[Updated on: Tue, 08 January 2019 17:31]

Report message to a moderator

 
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: BUG dialog does not close
Next Topic: Using VisualStudio as a main IDE
Goto Forum:
  


Current Time: Wed May 15 03:46:00 CEST 2024

Total time taken to generate the page: 0.03143 seconds