Fabien Comte Posted April 23, 2018 Report 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 ?
Joel Bodenmann Posted April 23, 2018 Report 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.
Fabien Comte Posted August 1, 2018 Author Report Posted August 1, 2018 I tried without any success. Another test ?
Fabien Comte Posted August 1, 2018 Author Report Posted August 1, 2018 Could it be because page containers and status bar overlap ?
Fabien Comte Posted August 1, 2018 Author Report 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 ?
Joel Bodenmann Posted August 2, 2018 Report 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.
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