Fabien Comte Posted April 23, 2018 Report Share Posted April 23, 2018 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 More sharing options...
Joel Bodenmann Posted April 23, 2018 Report Share Posted April 23, 2018 Did you ensure that your _mouseDown() function is registered in the VMT? Can you try to put the statusbar in the middle of the display to ensure that it's not some edge-touching issue. Link to comment Share on other sites More sharing options...
Fabien Comte Posted May 29, 2018 Author Report Share Posted May 29, 2018 Hello, I will try that asap. Link to comment Share on other sites More sharing options...
Fabien Comte Posted August 1, 2018 Author Report Share Posted August 1, 2018 I tried without any success. Another test ? Link to comment Share on other sites More sharing options...
Fabien Comte Posted August 1, 2018 Author Report Share Posted August 1, 2018 Could it be because page containers and status bar overlap ? Link to comment Share on other sites More sharing options...
Fabien Comte Posted August 1, 2018 Author Report Share Posted August 1, 2018 It works for one page but not the others. How to manage statusbar parent if it's called in multiple pages ? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted August 2, 2018 Report Share Posted August 2, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now