Jump to content

wctltya

Members
  • Posts

    87
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you Joel, But, could you give an example, please? I'm using version 2.8.
  2. Hi, I have to render a GIF image in many image boxes. So far I'm doing it in a loop, for example GHandle image_handle[NumberOf]; for(i = 0; i < NumberOf; i++) { .... image_handle = gwinImageCreate(0, &wi.g); gwinImageOpenFile(image_handle, "image_file.gif"); } Is there another way, open file once, then link it to the imagebox handlers? I know that there are several other function to open image file once, then to draw it, etc, but I don't see a function to link it to the imagebox handler. I don't have frame buffer, the screen is rendered directly in the display memory.
  3. wctltya

    Forums site

    Hi guys, something is wrong with this web site, the pages links(2, 3..., next, etc) doesn't work
  4. @neon1 Have you tried instead of passing NULL pointer here gwinSetText(ghTextedit, NULL, FALSE), to pass a pointer to a char buff, which first element is 0, or just gwinSetText(ghTextedit, "", FALSE) ?
  5. Hi Joel an inmarket, I was created this topic because I'm not sure you have seen may last post here and because it is important to be fixed as well as to warn the other users.
  6. Actually It is, just use the new line inside the text and the library will take care. I've the following code for example: snprintf(buff, sizeof(buff), "%s\n%s", GetStringResource(txtUnitbackupsTitle[unbackupsItem_IAMtoMB], language), TextBuff); gwinSetText(ghUnitbackupsPageElmButton[unbackupsItem_IAMtoMB], buff, TRUE);
  7. @inmarket Definitely there is a bug and it is obvious, I think. See line 138 in gos_x_heap.c: if (pfree) return 0; Should be if (!pfree) return 0; And this fixes the issue.
  8. wctltya

    Font Converter

    Hi, The uGFX studio's v.0.24.1 font converter has an option (check box) Anti-Alias when it is used from studio. Why this options doesn't exists in the mcufont.exe (..\foo\ugfx\tools\mcufontencoder\binaries\windows\), attached is a screenshot. Or if it does exists, how to use it? BTW about adding a new font in studio: 1. It will be nice to have an option for multi-range in case of "Custom Range" is selected for filter. For example a "+" button can add another range selector line. 2. "Unnamed" is a very annoying. I know that using F2 I can rename it, but have a look at the generated font files. If I keep it not renamed, the file name is "unnamed_arial_regular12_aa" for example and it is similar for constants and defines inside. Or if I rename it for example to "arial_regular12_aa", then the file name is "arial_regular12_aa_arial_regular12_aa", and same for constants and defines.
  9. Hi again, I found what actually is causing the issue, I think and it is Although I've RAW32 defined and relevant heap size as well, seems that another 60k are booked for OS, which I don't use. Since I didn't expect this, and because it is something left just from the beginning of the project, I haven't look into the linker output for. Now I can see it. Joel and inmarket, definitely it's my mistake. But a common detailed description of the all keys in gfxconf with their relations etc., will help us to avoid such mistakes, I think. For example I've removed as well, supposing (now) it is not relevant to RAW32 too? Do you think a regression test is needed now? I'm afraid it is too complicated and will take a lot of time, because the project is in a very advanced stage.
  10. The quote from previous report of the same issue: " Thank you inmarket, Just FYI - I'm running RAW32. The uC is Cortex-M4 with plenty of resources (Flash, RAM, FPU). The project is under KDS (single file including) with GCC compiler and the relevant gfxconf are: #define GFX_USE_OS_RAW32 TRUE #define GFX_COMPILER GFX_COMPILER_GCC #define GFX_CPU GFX_CPU_CORTEX_M4_FP #define CORTEX_USE_FPU TRUE #define GFX_EMULATE_MALLOC FALSE And the heap size is set accordingly. I was wondering if the compiler shall be set to GFX_COMPILER_ARMCC? Please, let me know, if I shall turn on/off some other keys.. " Except the compiler definition, which I've removed according to your advice Inmarket. In addition: #define GFX_CPU_ENDIAN GFX_CPU_ENDIAN_UNKNOWN #define GOS_RAW_HEAP_SIZE 61440UL //RAW32 relevant #define GFX_OS_HEAP_SIZE 61440UL #define GFX_OS_NO_INIT TRUE Please, let me know if I've to change something.
  11. Hi Joel and Inmarket, Almost an year ago I've reported this issue, but perhaps with very bad and complicated explanation and I didn't get support on it. So, today I dig more into and debug it a bit. I'll try to describe the issue and my findings shortly and as clear as possible: I have 3 textedit widgets, each into its own container(together with two labels), but all of them are in a common parent container. All textedits widgets are restricted to 4 chars max. But we can focus on two edit box only. Lets name them TE_1 and TE_2. Adding max 4 chars in TE_1 is not a problem, unless at least one char is added in TE_2, then I can't add 4th char in TE_1. I'm restricting explanation to TE_1, because even it is the same for TE_2 related to TE_1 its getting more complicated... Please see the attached video file. Debugging the issue, shows that the TextEditAddChars(...) in line 74 invokes gfxRealloc(...) , which returns 0 in line 139, which leads to TextEdditAddChars returns FALSE in line 75. The particular parameters (filmed in the attached video) passed to gfxRealloc are pointer to "111", oldsize is 4 and size is 5. Perhaps old size and size includes the NULL terminator, otherwise they should be 3 and 4, I think. But this doesn't cause the issue, as long as the same values are passed when it works, i.e. when TE_2 is empty. The link to my previous report describing that issue is here(see the last post) VID_20180705_090553.mp4
  12. wctltya

    Graph bug

    BTW, my application requiring a second Y-axis (right side), so I've created a function for it. You might would like to consider adding an optional second Y-axis to a next library revision as well.
  13. wctltya

    Graph bug

    Thank you Joel, As usual it is my mistake
  14. wctltya

    Graph bug

    // A graph styling static GGraphStyle GraphStyle1 = { { GGRAPH_POINT_DOT, 0, Blue }, // Point { GGRAPH_LINE_NONE, 2, Gray }, // Line { GGRAPH_LINE_SOLID, 0, Red/*White*/ }, // X axis { GGRAPH_LINE_SOLID, 0, Blue/*White*/ }, // Y axis { GGRAPH_LINE_DASH, 5, Red/*Gray*/, 50 }, // X grid { GGRAPH_LINE_DOT, 7, Blue/*Yellow*/, 50 }, // Y grid GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // Flags }; // Another graph styling static const GGraphStyle GraphStyle2 = { { GGRAPH_POINT_SQUARE, 5, Red }, // Point { GGRAPH_LINE_DOT, 2, Pink }, // Line { GGRAPH_LINE_SOLID, 0, Red/*White*/ }, // X axis { GGRAPH_LINE_SOLID, 0, Blue/*White*/ }, // Y axis { GGRAPH_LINE_DASH, 5, Red/*Gray*/, 50 }, // X grid { GGRAPH_LINE_DOT, 7, Blue/*Yellow*/, 50 }, // Y grid GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // Flags }; so: x-Grid, shall be Red, Dash-line y-Grid, shall be Blue, Dot-line
  15. wctltya

    Graph bug

    The attached image quality is not the best one, but it is enough to see that the grid x/y are exchanged. It is always better to read the doc's first - saw the window background color is the default background color.
×
×
  • Create New...