Search Results
Search results 401-420 of 430.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hi Pieter, the clipping rectangle you set doesn't work, because of that most of the blocks don't get drawn. It worked for me when I called WM_InvalidateWindow() after each loop that increases the progbar value. Also, try this to draw your blocks: C Source Code (7 lines) The problem with the two blocks being drawn at once lies within your calculation of blocks. Just do: Blocks = PROGBAR_GetValue(hProg) / 5; Best regards, Florian
-
Hi Sysmop226, I have tried to reproduce this with an array like you said, with an even bigger file and less target memory than the file size, but it still worked fine. Even with an older version (5.48) from before something in the GUI_LANG module was changed, everything worked fine. Can you tell me which emWin version you are using? Best regards, Florian
-
Hi Pieter, window timers still do its job when you use multiple windows. You can create and react on timers with different windows, you just need the window handle the timer will be attached to. What applies for both kinds of timers, is that you still need the correct timer handle when you want to delete or restart a timer. Best regards, Florian
-
Hi Pieter, you have to set a period for the timer using GUI_TIMER_SetPeriod(). Once you did so, calling GUI_TIMER_Restart() will restart that timer with the set period. By the way, when using windows, you might want to use the timer API that is part of the Window Manager (WM_CreateTimer() etc...) for convenience reasons. When a timer of a window has run out, that window will receive a WM_TIMER message that you can handle in your callback. But you may use GUI_TIMERs instead if you want to do so. …
-
Hi Sysmop226, I've tried to reproduce your error, but it worked fine for me. And yes, file size shouldn't matter with GUI_LANG_LoadCSVEx() as this function only gets size and file offset of the text locations. Have you checked if the file handle you pass to GUI_LANG_LoadCSVEx() is still valid? Best regards, Florian
-
Hi Volodymyr, I'm sorry but unfortunately you will have to wait for the next emWin version to be released. By the way, owning an emWin license gives you the advantage to report bugs and obtain a fixed version. But you can try with this workaround for now: just add a button to your dialog with the non-focusable widgets and hide it using WM_HideWindow(). Best regards, Florian
-
Hi Arjuman, the manual explains how to use GetData() functions and provides examples under "9.5 Getting data with the ...Ex() functions". Best regards, Florian
-
Hi Arjuman, no, a binary format is not necessary. You may also use a file reader (like the one in Windows.h) to load the csv data. There is an example of a _GetData() function doing this in the manual if you search for the function GUI_LANG_LoadTextEx(). If you do want to convert something into binary format, you may use our tool Bin2C.exe shipped with emWin. Best regards, Florian
-
Hi Arjuman, let me answer your questions. The format of the CSV is based on some rules that you can find in the manual under "32.2.4 Rules for CSV files". Let me show you an example CSV file: Source Code (5 lines) According to the rules, each line equals one record, meaning one set words. The quotes are not mandatory, although if used once, they have to be used for each field in the CSV file. The separator is crucial, by default it is a comma, but you can set it by using GUI_LANG_SetSep(). Now, …
-
Hi Ashley, calling GUI_LANG_Clear() frees all resources. This routine was just added with emWin V5.50. Best regards, Florian
-
Hi Volodymyr, yes, this is doable. WM_NOTIFICATION_VALUE_CHANGED is the value of a WM_NOTIFY_PARENT message. That message gets sent to the parent window, as the name indicates. But you can of course send the message to any other window you'd like to. This is how you do it: C Source Code (123 lines) Best regards, Florian