Jump to content

Daid

Members
  • Posts

    2
  • Joined

  • Last visited

  1. I would like to suggest an option to disable rendering of an widget, until enabled again. Currently I'm putting elements in a listbox, but during this inserting the listbox gets drawn repeatedly, causing flicker. I worked around this by: gwinSetVisible(ghFileList, FALSE); for each file: gwinListAddItem(ghFileList, fn, TRUE); gwinSetVisible(ghFileList, TRUE); However, gwinSetVisible FALSE causes the listbox area to be cleared on the screen. So it's empty for a while. If I hack this up to: ghFileList->flags &= ~2;//Disable the visibility flag. for each file: gwinListAddItem(ghFileList, fn, TRUE); gwinSetVisible(ghFileList, TRUE); I get the result I'm looking for, in a very dirty way. Thoughts?
  2. As shown here: http://daid.eu/~daid/IMG_20140124_144355.small.jpg Font drawing seems to go wrong when the text is clipped. A simple example to reproduce this: gwinSetDefaultFont(gdispOpenFont("DejaVuSans32")); wi.g.x = 0; wi.g.y = 0; wi.g.width = 48; wi.g.height = 90; wi.customDraw = gwinRadioDraw_Tab; wi.text = "SET"; ghTabPrint = gwinRadioCreate(NULL, &wi, 0); Both the S and the T will be corrupted.
×
×
  • Create New...