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 » Ctrl Transparency, backpaint, ...
Re: Ctrl Transparency, backpaint, ... [message #56582 is a reply to message #56579] Fri, 26 March 2021 14:11 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello Mirek,

1 - Ide doesn't compile du to some pen related code (I looks like accidently pasted code) i GtkEvent.cpp L428 so I commented it out and it compiled and morked after
void Ctrl::Proc()
{
#ifdef LOG_EVENTS
	String ev = "?";
	Tuple2<int, const char *> *f = FindTuple(xEvent, __countof(xEvent), CurrentEvent.type);
	if(f)
		ev = f->b;
	LOG("> PROCESS EVENT " << Upp::Name(this) << " " << ev);
	ProcStop tm;
	tm.ev = ev;
#endif
	if(!IsOpen())
		return;
	Ptr<Ctrl> _this = this;
	bool pressed = false;
	int  kv, hw;
	static int clicktime = msecs() - 100000;
/*   ------------------------------
	pen = CurrentEvent.pen;
	pen_barrel = CurrentEvent.pen_barrel;
	pen_inverted = CurrentEvent.pen_inverted;
	pen_eraser = CurrentEvent.pen_eraser;
	pen_pressure = CurrentEvent.pen_pressure;
	pen_rotation = CurrentEvent.pen_rotation;
	pen_tilt = CurrentEvent.pen_tilt;
-----------------------------------
*/
	switch(CurrentEvent.type) {
	case GDK_MOTION_NOTIFY:
		GtkMouseEvent(MOUSEMOVE, MOUSEMOVE, 0);
		break;


For the rest, transparency works fine now and layout designer also works fine now
Thanks Thumbs Up

Quote:
interesting usage BTW)

I don't like to code my GUIs so I use layout everytime I can

[Updated on: Fri, 26 March 2021 14:12]

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
Previous Topic: K_CTRL_SEMICOLON and K_CTRL_PERIOD keys share the same constant value on Win32
Next Topic: *Hold() mouse events only work for widgets at top-left corner
Goto Forum:
  


Current Time: Tue May 14 12:52:24 CEST 2024

Total time taken to generate the page: 0.01552 seconds