Jump to content

StatusBar _mouseDown not fired


Fabien Comte

Recommended Posts

Hello,

I tried to implement a statusbar based on your exemple on my project. It's a Linux with touchscreen and _mouseDown is never called (i am sure that touch works because button events are ok)

static void _mouseDown(GWidgetObject* gw, coord_t x, coord_t y)
{
	printf("_mouseDown (%d,%d)\n", x, y); // never called
	// ...

in my main

void * events_function(void *arg)
{
	printf("events_function start\n");
	while(1) 
	{
		// Get an Event
		GEvent * pe = geventEventWait(&gl, 1000);

		// ...
	}
}


int main()
{
	// ... 

	geventListenerInit(&gl);
	gwinAttachListener(&gl);

	// ...


	if (pthread_create(&events_thread, NULL, events_function, NULL) == -1) 
	{
		perror("pthread_create events_thread");
		return EXIT_FAILURE;
    }

	// ...

 

Do you have an idea of what can i check ?

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
On 01/08/2018 at 10:31, Fabien Comte said:

Could it be because page containers and status bar overlap ?

What do you mean by overlapping? The statusbar is a widget and can therefore either be in a container or not. It cannot be half way in one.

 

On 01/08/2018 at 10:49, Fabien Comte said:

How to manage statusbar parent if it's called in multiple pages ?

Can you please show screenshots/mockups of what you're trying to achieve?
A statusbar is usually not part of a page container as it's always visible.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...