Search Results

Search results 1-20 of 142.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hi, Quote from Raunaq: “But if it clear the parent window now, the image will be covered by this black parent window. ” that is correct, but since the parent window does not have the WM_CF_HASTRANS flag, it will cover the image displayed in the main window anyway. Instead of adding the WM_PAINT case to _cbParent(), changing the window flags to WM_CF_SHOW | WM_CF_HASTRANS should fix the problem. C Source Code (1 line) Although, currently the parent window has no use except creating the child wind…

  • ukrainian fonts convert

    SEGGER - Florian - - emWin related

    Post

    Hi, good to hear that it worked now. If you need any more information, have a look at the chapters "Fonts", "Font Converter" and "Language Support" in the user manual. Best regards, Florian

  • ukrainian fonts convert

    SEGGER - Florian - - emWin related

    Post

    Hi, what I did was selecting the font, disabling all characters and reading the pattern file. The pattern file contains the Cyrillic characters (not converted to UTF-8). I also set the encoding to UCS-2 LE BOM, which is necessary in order for the pattern file to be read correctly. You can find the pattern file in the attachments. Best regards, Florian

  • Hi, it is overlapping, because the background isn't redrawn. The parent window is missing a WM_PAINT case in _cbParent() that cleares the window. C Source Code (4 lines) Best regards, Florian

  • Hi, it doesn't work when you save non-ASCII characters in your C file. First, you have to encode the string to UTF-8, which you can do using this tool. C Source Code (1 line) Then, you also have to call GUI_UC_SetEncodeUTF8() at the beginning of your application (after GUI_Init()). Now, you can set a font that contains the characters in your UTF-8 String and display the string. The font you generated doesn't contain the characters of your string. It worked for me with a font that contains the cy…

  • Hi, what exactly didn't work? There's nothing wrong with your pattern file, it worked for me. Did you disable all characters before reading the pattern file? When the font was successfully generated, it just has to be added to the project. Then, GUI_SetFont() can be called with a pointer to the GUI_FONT structure of your created font. Best regards, Florian

  • TTF FONT SIZE problem

    SEGGER - Florian - - emWin related

    Post

    Hi, you probably ran out of memory. The TTF fonts are created in RAM. The larger the font, the more memory is needed. So, the font size isn't really limited, but obviously your font can't exceed the memory limit. Best regards, Florian

  • Hi, you can do that with the FontConverter. You have to load a font into the tool that contains the Ukranian letters, select the letters you want to have in your C file and save the result as a C file. Best regards, Florian

  • Prompt screen

    SEGGER - Florian - - emWin related

    Post

    Hi, have a look at the routines GUI_MEMDEV_BlendWinBk(), GUI_MEMDEV_BlurAndBlendWinBk() and GUI_MEMDEV_BlurWinBk(). The manual also has screenshots for these routines. Best regards, Florian

  • Multiple Buffering

    SEGGER - Florian - - emWin related

    Post

    Hi, there is so such display driver called GUI_DRVControl. Only GUIDRV_Lin supports multibuffering. All of the other display drivers use a cache instead. Best regards, Florian

  • Hello, I tried to reproduce your behavior but for me the arc remained consistent (see attached file). Can you send me your code or a sample so I can reproduce your error? Best regards, Florian

  • Hi, the wiki provides such an example, you can download it here. Best regards, Florian

  • Prompt screen

    SEGGER - Florian - - emWin related

    Post

    Hi, there are modal windows in emWin, you can call WM_MakeModal() on a window to achieve this behavior. Best regards, Florian

  • Text scrolling

    SEGGER - Florian - - emWin related

    Post

    Hi, yes, this can be done using animations. The manual explains how animations can be created, and you can find samples and a tutorial about animations in the Wiki. Best regards, Florian

  • Text scrolling

    SEGGER - Florian - - emWin related

    Post

    Hi, do you mean text wrapping? This can be achieved using the function GUI_DispStringInRectWrap(). As parameter for the wrap mode you can choose between char-wise wrapping (GUI_WRAPMODE_CHAR) and word-wise wrapping (GUI_WRAPMODE_WORD). If you mean text scrolling like on a smart phone (scrolling by swiping), you should take a look at the attached example. Best regards, Florian

  • Hi, setting the bitmap pointer of a button to NULL is only required if the bitmap should not be shown in the button anymore. So it should be done when its appearance should change, but it isn't a necessary step when deleting a button. As I said, WM_DeleteWindow() should suffice. It could very well be that there were memory leaks in the past versions that have been fixed by now. V5.22 is almost seven years old, so you should consider updating to the latest version V6.10h. Best regards, Florian

  • Hi, to answer your first question: you can set the text alignment using MULTIEDIT_SetTextAlign(). I have attached a sample for you that controls the scrolling with buttons. This should answer your two other questions. If you have any questions about the sample, please let me know. Best regards, Florian

  • Hi, the performance when using MULTIEDIT widgets will be much better compared to using motion support. I have attached a sample for MULTIEDIT widgets, I hope this helps. Best regards, Florian

  • Hi, Quote from vikramtathe: “I have one more question that, Is it possible to adjust the spacing between the paragraphs? ” yes, since you are going to display strings in rectangles (GUI_RECT), you can define the position of the rectangles and thus the spacing between the paragraphs. Quote from vikramtathe: “Similar to different colors/fonts complexity, Is the same complexity applicable for bold/Italic properties as well? ” Yes, this applies to all kinds of text properties. Quote from vikramtathe…

  • Hi, title and description with different colors/fonts in one line won't be easy to achieve. I'm not saying it is impossible, but it will be a lot of fiddling. So you might want to change your design, like the title could be placed above the text, so that it isn't embedded in the text block. Changing the appearance of a scrollbar to what you want is not possible. Instead, you could create two buttons and overwrite their callback, so that they display the up and down arrow from your image. Instead…