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 » 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 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1259
Registered: September 2007
Senior 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 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 608
Registered: August 2007
Location: Turkey
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


Re: Click problems in embedded controls in GTK mode [message #50279 is a reply to message #50267] Tue, 11 September 2018 11:19 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1259
Registered: September 2007
Senior Contributor
Hi Oblivion,

your testcase does indeed work... I'll try to find out what happens in my case.

Ciao

Massimo
Previous Topic: Display API for ArrayCtrl is too difficult - too much parameters
Next Topic: [SOLVED] How to use ColorDisplay?
Goto Forum:
  


Current Time: Fri Nov 22 17:29:16 CET 2019

Total time taken to generate the page: 0.01293 seconds