Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Click problems in embedded controls in GTK mode
Click problems in embedded controls in GTK mode [message #50229] |
Fri, 31 August 2018 11:57 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi,
I've an ArrayCtrl with a DropList and a ColorPusher embedded.
In X11 mode all is working perfectly; in GTK mode the embedded controls are NOT responsive.
When I click, sometimes nothing happens, sometimes the DropList open and closes quickly.
The only way to use it is to try many times, keeping mouse button pressed and, when the list is
opened, move the cursor KEEPING THE BUTTON PRESSED and using the wheel.
Almost the same happens with ColorPusher. Sometimes the control is irresponsive and, when it
opens, it closes suddenly releasing the mouse button.
Is there a solution for it ?
Ciao
Massimo
|
|
|
Re: Click problems in embedded controls in GTK mode [message #50267 is a reply to message #50229] |
Thu, 06 September 2018 19:39 |
Oblivion
Messages: 1112 Registered: August 2007
|
Senior Contributor |
|
|
Hello Massimo,
Can you provide any test code?
I use GTK (with Gnome 3.28.2, the latest nightly U++, and Linux 4.18.5, Radeon driver/RX 480), and it works fine. What is your setup?
Below code works fine here:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class Test : public TopWindow {
ArrayCtrl array;
public:
typedef Test CLASSNAME;
void ColorPusherFactory(int i, One<Ctrl>& ctrl)
{
ColorPusher& cp = ctrl.Create<ColorPusher>();
}
void DropListFactory(int i, One<Ctrl>& ctrl)
{
DropList& dl = ctrl.Create<DropList>();
for(int i = 0; i < 4; i++)
dl.Add(i, i);
dl.SetIndex(0);
}
Test()
{
SetRect(0, 0, 640, 480);
CenterScreen();
Add(array.SizePos());
array.AddColumn("DropLists").Ctrls(THISFN(DropListFactory));
array.AddColumn("ColorPushers").Ctrls(THISFN(ColorPusherFactory));
for(int i = 0; i < 10; i++) array.Add();
}
};
GUI_APP_MAIN
{
Test().Run();
}
Does this example give the same results on your machine(s)?
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 20:07:28 CEST 2024
Total time taken to generate the page: 0.03176 seconds
|