Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Ctrl Transparency, backpaint, ...
Ctrl Transparency, backpaint, ... [message #56553] |
Wed, 24 March 2021 23:49 |
Didier
Messages: 680 Registered: November 2008 Location: France
|
Contributor |
|
|
Hello,
I am struggling with some painting issues for some time now.
All I want to do is to have some transparent widgets or widgets dislaying a background image with aplha in order to see the Topwindow background
Everything is drawn well on start and when resizing but when I hover over a widget THAT IS DISPLAYED over an alpha image, then some glitches appear.
The same happens when I refresh the layout
It looks like the Topwindow background is not redrawn as it should be.
I uploaded a test case:
* just hover over the option in the tab ==> option glitch appears
* Change selected row inside Grid : call Refresh() of the tab ==> whole background is glitch !
* Once glitch is present, just change tab or resize window and everything comes back to normal
How can I correct this ?
[Edit] removed 7z file
[Updated on: Thu, 25 March 2021 19:29] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Ctrl Transparency, backpaint, ... [message #56582 is a reply to message #56579] |
Fri, 26 March 2021 14:11 |
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
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
|
|
|
Goto Forum:
Current Time: Wed May 15 04:58:47 CEST 2024
Total time taken to generate the page: 0.01860 seconds
|