Search Results

Search results 1-20 of 40.

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

  • Hi Sven, you promised:Quote from SEGGER - Schoenen: “You are right, we lost a sign when loading a xbf file We have fixed this and it will be present in the next release of emWin and with this also in the FontConverter. ” Sorry, but unfortunately FontConverter V5.40 is still corrupting negative X-position in the same manner when loading XBF File: Value of -1 is interpreted as 65535 Value of -2 is interpreted as 65534 etc. This gives unexpected results when generating a C-File. Do you have an idea…

  • Does anyone has an idea? The scenario problematically: 1. GUI_LANG_LoadTextEx(pfGetData,...) is called successfully, initialising the language textes (file is opened, pfGetData is called a few times). So far. 2. In between we assume file is temporary no accessable. 3. The following GUI_LANG_GetTextBuffered(...,pBuffer,...) calls my pfGetData. I return pfGetData with 0 (to indicate: 0 Bytes read). Nevertheless GUI_LANG_GetTextBuffered is returning 0 = suggesting success, thus suggesting valid fil…

  • Hi, Does the language module work both without BOM and with BOM (Byte Order Mark) for the UTF-8 TXT and CSV text and language resource files? In the manual in 32.2.1 is only said generally: "If the used range of characters exceeds the ASCII set the text files should contain UTF-8 text." Looking forward to your answer. Matz

  • Hi, I call GUI_LANG_GetTextBuffered() to get a text. In some special case in my corresponding Get Data function I must return 0 (because of a failure). I trusted GUI_LANG_GetTextBuffered() will then return with 1 (= error) to handle this case. But in fact GUI_LANG_GetTextBuffered() returns 0 (= success). This is fatal, because this deceives a valid text in the buffer. But it isnt. Do I something wrong? How can I return an error within the GetData function back to emWin, so that emWin is able to …

  • Hi, Is it possible first to load few language with one call of GUI_LANG_LoadCSVEx() and then load additional languages with GUI_LANG_LoadTextEx()? The Segger tutorial LANG_UTF8_CSV_TXT.c does it so. But in contrast the emWin documentation says not to do so! Under "32.2.6.2 CSV file functions" is said: "It is not possible to use a text file including one language and a CSV file including further languages. Either text files or CSV files should be used." Is the order the only crucial? Will 1. Load…

  • Thanks.

  • Hi guys, the LoadTextEx function is declared following: C Source Code (1 line) Unfortunately the return value is not documentated. What is the function returning? Is there a possibility to check, wether loading was successful or not? Same question for GUI_LANG_LoadText() Further question: Can I re-load a text file by a repeating call of GUI_LANG_LoadTextEx for the same language, means with the same IndexLang? (e.g. to update the texts)? Best regards Matz

  • Ristriction: I just realized that it only works sufficient when loading a .c font file and then read a (UCS2 little endian) pattern file (I use a .txt pattern file). When I load the corresponding .xbf font file the issue is still there. . Hope Segger can fix this. Regards. EDIT: I just recognized that you already uses an usc2 little endian pattern .txt file. Sorry, then my suggestion will not help. Seems that the problem depends on several factors.

  • Hi ToneL I bothered with the same issue and I solved it for me: I found out, that my pattern file MUST BE in "UCS2 Little(!) Endian" format. With UTF-8 or UCS2-big-endian I had the same problem. Please convert your pattern file and try again. (For such stuff I use free notepad++ editor.) Hope this helps you and Segger to improve FontConverter Best regards Matz

  • I want to draw rotated line.

    XT-Matz - - emWin related

    Post

    Hi, you can think of several possibilities: - use basic transformation of coordinates and doing it by hand - maybe you can do it with GUI_RotatePolygon (a line is a special case of polygon) - or GUI_MEMDEV_Rotate...() See manual! I have a similar simple job and using the first possibility. Matz

  • Hi Jörg, Thanks for the reply. But sorry, I dont understand completely: Scenario: what happens with internal resources (emwin-memory) when the csv file with GUI_LANG_LoadCSVEx() is opened again and the "same" text is accessed with GUI_LANG_GetTextEx ("same" means with identical IndexText and IndexLang)? You say: returned text remains valid in any(!) case. But if new text allocates additionally(!) memory - without freeing the memory of the old text, that makes no sense, because the old text (with…

  • I'm bothering to find out what I am doing wrong. I could not find anything. emWinSPY shows "Fixed Bytes" increasing and "Free Bytes" shrinking, until error message "WM.c No memory ..." appears. Does it promise success to continue searching the fault in my software? Or is it on emWin side? Please help. If desired I can provide sample code for demonstration (based on emWin Sample "LANG_UTF8_CSV_TXT.c"). Matz.

  • Hi, I observed that repeated calls of GUI_LANG_LoadCSVEx() does NOT remove (free) ALL the previous used language resources. "Fixed Bytes" are not freed! Multiple calls of GUI_LANG_LoadCSVEx() increases the amount of "Fixed Bytes" successively until out of (emWin-)memory. Is this a bug, or am I doing something wrong? Best regards, Matz

  • See manual chapter "6.4.4 Position". Matz

  • Sorry I put a incorrect statement: I use GUI_LANG_LoadCSVEx() with a language file in the file system. And further calls of GUI_LANG_LoadCSVEx() does NOT remove (free) ALL the previous used language resources; "Fixed Bytes" are not freed. See previous post for further details. What am I doing wrong? Matz

  • You can use a seperate skinning routine for the special button. See manual chapter 22.6. Best regards Matz

  • How to find all dialog opened

    XT-Matz - - emWin related

    Post

    Hi, an raw idea: what is with sending WM_Delete with WM_BroadcastMessage? Matz

  • Hi all, Hi Adrian, My question concerns the following old thread, but the system recommends me to create a new thread: Memory allocation I have the same requirement like the TO from the above old thread: I have to repeat GUI_LANG_LoadCSV() from time to time (e.g. when the language file changed or had been extended, or what ever). So far so good, no problem, it works. But I observed, that in constrast to Adrian's statement a further call of GUI_LANG_LoadCSV() does remove (free) NOT ALL the langua…

  • Hi, what is the purpose of GUI_ALLOC_SetAvBlockSize? In this thread Adrian stated that SetAvBlockSize is obselete. But in the simulation/trial version - in V5.36 too - it is used anyway! Is it necessary for the simulation, but for the target not? Best regards. Matz.

  • Hi, I have a strange effect: I have a dialog box with a blue background and few checkboxes and similar. When the focus changes from one widget (checkbox e.g.) to another widget, then the area around the widgets is incomprehensively first cleared/filled with white color before(!) receiving the WM_PAINT message in which I clear to my dedicated color (blue). This effect is recognized as a kind of short "flashing". I reproduced it with emWinView in the Simulator to evaluate this. And I tried many bu…