Jump to content

Fabien Comte

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by Fabien Comte

  1. Fabien Comte

    License

    Hello, I am close to finish the design of a product for a customer. Is that a problem if i buy Ugxf license myself ? Is that legally ok for my customer ?
  2. Hello, Ugfx is announced to support hardware acceleration but what are supported targets for that ? Is Linux Framebuffer supported ? Thank you.
  3. It works. Thank you for your help.
  4. Hello, I wish to create a Screenshot. How can I access to the actual display buffer to read pixels please ? Thank you.
  5. Hello, Online font converter is broken, could you repair it please ? Thank you.
  6. If you take a simple button, you can see that the text draw is after the retangle draw. I modified some controls to use pixmaps for compositions and display is very clean. I can move controls with no blink effect now Thank you all people for your help.
  7. Ok i found, there was a timer that sometimes was fighting against me. I moved to immediate configuration and i was able to do everything i wanted. Thank you all people for your help.
  8. It works for one page but not the others. How to manage statusbar parent if it's called in multiple pages ?
  9. Could it be because page containers and status bar overlap ?
  10. I tried without any success. Another test ?
  11. A make clean fixed it. Thank you for your help.
  12. Hello, How can i use GWIN_REDRAW_IMMEDIATE and have button pressed render please ?
  13. Ok i found about the lock, my mistake sorry.
  14. Hello, It's more complex that i imaginated. I tried to move on GWIN_REDRAW_IMMEDIATE = GFX_ON but gwinHide(ghMyPageContainer1); is never goes out. Do i missed something ?
  15. it was another problem the source of the segmentation fault.
  16. i replaced gwinSetVisible(ghPushbutton1, FALSE); with ghPushbutton1->flags = ghPushbutton1->flags & ~GWIN_FLG_SYSVISIBLE; and it works
  17. Hello, I want to hide a button before animate another one. That doesn't work (strange colors at old position): gwinSetVisible(ghPushbutton1, FALSE); GWidgetObject * temp_control = ((GWidgetObject *) ghPushbutton1); gdispGFillArea(temp_control->g.display, temp_control->g.x - border, temp_control->g.y - border, temp_control->g.width + 2 * border, temp_control->g.height + 2 * border, GFX_BLACK); That works (hidden but can be clicked): GWidgetObject * temp_control = ((GWidgetObject *) ghPushbutton1); gdispGFillArea(temp_control->g.display, temp_control->g.x - border, temp_control->g.y - border, temp_control->g.width + 2 * border, temp_control->g.height + 2 * border, GFX_BLACK); It looks like if set invisible launched a background task. Do I missed something ?
  18. Hello, I want to force a button to render in a pixmap. Is there any clean way ? I tried a dirty hack with "my_button->g.display = pixmap;" but sometimes i get a segmentation fault like if it was Something else that use it. How to do that cleanly please ?
  19. Hello, Thank you for your response.
  20. Hello, I already asked a close question how to use a double buffer. Response was not possible. I have some blink issues when i move a simple buton due to buton background fill. Is there any way to prepare a full render in a pixmap and swap (unsynchronized with display) when done. If not, is there any way to draw completly a control on a pixmap and write it on display when all processing was done ? Thank you ps: my target is linux framebuffer.
  21. 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 ?
  22. Hello, When i draw my images, it looks like x and y are expected values + 2 This is the code void gwinMyButtonCustomDraw(GWidgetObject *gw, void *param) { const GColorSet * pcol; coord_t sy = 0; if (gw->g.vmt != (gwinVMT *)&buttonVMT) return; gdispImage * temp_images = (gdispImage *)param; gdispImage * temp_image = NULL; if (!(gw->g.flags & GWIN_FLG_SYSENABLED)) { temp_image = &(temp_images[BUTTON_DISABLED]); } else if ((gw->g.flags & GBUTTON_FLG_PRESSED)) { temp_image = &(temp_images[BUTTON_ACTIVE]); } else { temp_image = &(temp_images[BUTTON_IDLE]); } gdispGImageDraw(gw->g.display, temp_image, gw->g.x, gw->g.y, gw->g.width, gw->g.height, 0, sy); if (gw->text[0] != '\0') { pcol = getButtonColors(gw); gdispGDrawStringBox(gw->g.display, gw->g.x+1, gw->g.y+1, gw->g.width-2, gw->g.height-2, gw->text, gw->g.font, pcol->text, justifyCenter); } } And a schematic (i noticed that because my button image was a prolongation of the background)
×
×
  • Create New...