Monday, December 11th 2017, 6:47am UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 40.

Thursday, December 7th 2017, 10:47am

Author: kenmux

Message cannot be posted from child to parent via default callback?

Thanks for your reply, Sven Okay, I see. This is not the same as handling a key message, right? A key message will be posted to the focused window. If it is not handled by the focused window, it will be posted to its parent.

Thursday, December 7th 2017, 7:51am

Author: kenmux

Message cannot be posted from child to parent via default callback?

Hello all, In my opinion, the message will be posted from child to parent via default callback. Is it right? To make it clear, I wrote the test code as followed: C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 static TEXT_Handle _hText; static WM_HWIN _hDialog; static void _cbText(WM_MESSAGE * pMsg) { /* Handle the message(s) needed */ switch (pMsg->MsgId) { case 1100: printf("TXT::1100\n"); break; //no return here ... let pare...

Tuesday, December 5th 2017, 9:49am

Author: kenmux

Bitmap file with custom "bfOffBits" cannot be displayed correctly

Hello, I have a bitmap file with custom "bfOffBits" (=56). It can be displayed very well in PC, but incorrectly in emWin: [attach]2148[/attach] The issued image is attached: [attach]2149[/attach] My emWin version is: v5.44 Then how should I do? It seems that emWin does not use the custom offset?

Thursday, August 10th 2017, 9:16am

Author: kenmux

Is it possible to generate EMF file from emWin?

Hello Sven, So, there's no acceptable way to create EMF file from emWin. Sigh~ Thanks for your reply any way! Kenmux

Thursday, August 10th 2017, 3:53am

Author: kenmux

Is it possible to generate EMF file from emWin?

Hello all, There's a requirement for generating EMF file from emWin. So I've read the chapter about movie, but with no idea about the possible way. IS IT POSSIBLE TO GENERATE EMF FILE FROM EMWIN? Or, Is there any way to generate jpeg file from the screen? I need a clear answer, thanks in advance! Kenmux

Tuesday, August 8th 2017, 7:46am

Author: kenmux

UI not refreshing while callback called

Hello, Now days, I encountered an annoying issue: The UI stopped refreshing while the callback was called all the time. I use a separate task calling GUI_Exec() once per 1ms, under FreeRTOS. My emWin version is v5.42. PS: If I add GUI_Exec() in the callback, this issue seems gone. (But, it's not recommended by the manual (Chapter 17.4.5), right?) So, what's wrong? Any ideas? Please help! Thanks in advance! Kenmux

Thursday, June 22nd 2017, 4:51am

Author: kenmux

Multitask and WM_LOCK()/WM_UNLOCK()

Hello Sven, Thanks for your reply. Your info is useful, but there's something else. Consider in this scenario under multitask system: Two widgets use the same callback. Then how to protect it? Any mechanism to make sure only one use it at the same time? Use GUI_X_Lock()/GUI_X_Unlock()? Any recommendations? Thanks, Kenmux

Wednesday, June 21st 2017, 9:44am

Author: kenmux

Multitask and WM_LOCK()/WM_UNLOCK()

Hello, Recent day I was struggling in handling with multitasks calling emWin. It seems that sometimes I need to use the pair of WM_LOCK()/WM_UNLOCK(). But not very sure. The manual does not mention it in details. In my multitask system (FreeRTOS), I follow the recommendations (chapter 17.4.5) strictly: - All UI requests are organized as events - One task handling with UI events as UI foreground task - One task calling GUI_Exec() as UI background task - Other real time tasks sending UI events to ...

Wednesday, June 21st 2017, 9:06am

Author: kenmux

Does emWin support YUV or not?

Hello Sven, I...see... Thanks for your reply! That means I need to convert YUV to RGB while preparing the image data. Thanks, Kenmux

Tuesday, June 20th 2017, 5:37am

Author: kenmux

Does emWin support YUV or not?

Hello, I want to draw an image with the format of YUV422. I read the manual carefully and see nothing about it. So, Does emWin support YUV or not? Thanks, Kenmux

Saturday, June 17th 2017, 8:34am

Author: kenmux

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Hello Sven, Thanks for your reply. Yes I do that in the header file "GUI_ConfDefaults.h". And the library file re-created works very well now. I hope there's no potential risk, please!!! Thanks, Kenmux

Friday, June 16th 2017, 5:33am

Author: kenmux

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Okay, a further step: 1) GUI__MEMCPY links to memcpy which causes crash 2) there's an optional replacement for memcpy which test good: GUI__memcpy So, can I replace memcpy with GUI__memcpy globally? Any potential risks? Similarly, GUI__memset vs memset? Also, the reason why memcpy caused crash unknown. Who can give some clear answers, thanks in advance. Kenmux

Thursday, June 15th 2017, 10:57am

Author: kenmux

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Well, I took place the library file with source codes and looked into this issue. But, it still seems not that easy to find the problem. I focused on the function LISTBOX_GetItemText() and the code crashed on this line: C/C++ Source code 1 GUI__MEMCPY(pBuffer, pString, CopyLen); But it seems that all local variables are sane: [attach]1746[/attach] Then where goes wrong? Just confused... Any ideas? Thanks, Kenmux

Thursday, June 15th 2017, 6:32am

Author: kenmux

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Okay, I did another test, in the callback of LISTBOX, calling LISTBOX_GetItemText() also cause crashed, reason unknown. Who can shed me some light of hope? Thanks in advance! Kenmux

Thursday, June 15th 2017, 5:26am

Author: kenmux

LISTBOX_GetItemText() in LISTBOX user draw function cause crashed

Hello all, Now I ran into a very annoying issue: The code always crashed when calling LISTBOX_GetItemText() in LISTBOX user draw function. All I known is that, the code is inherited from an earlier project which works very well. When I look into this issue, I found this is the reason: C/C++ Source code 1 2 char String[150]; LISTBOX_GetItemText (hWin, pDrawItemInfo->ItemIndex, String, sizeof (String)); I comment them, and fill the char array "String" with const string, everything works very well:...

Monday, June 12th 2017, 4:30am

Author: kenmux

Issue about BmpCvt.exe with 32bit bitmap

Hello Sven, Thanks very much for your kindness! I'm sorry I've found your email just now. The gmail treated it as spam, and that folder hidden as default. I tested with the latest version you provided, it's okay now! Thanks, Kenmux

Friday, June 9th 2017, 10:24am

Author: kenmux

Issue about BmpCvt.exe with 32bit bitmap

Hello Sven, Thanks for your reply! So the reason is clear enough. I'd like to have a direct way to solve it. I'm glad to get the update. Thanks for your info. Kenmux

Friday, June 9th 2017, 8:26am

Author: kenmux

Issue about BmpCvt.exe with 32bit bitmap

Hello Sven, The device I used is the board used in my project. The lcd driver is proved okay & works very well. I checked the LCD_CORLOR_CONVERSION again, and it's GUILCC_RGB8888. You know there's also a format "True color with alpha, (Both variants)" in BmpCvt.exe. Using this will go over the pits you mentioned, right? And, it gave me the same result. I also attached the 32bit bitmap. Would you please help to test it? Maybe the file's fault? I've no idea at all. Thanks in advance. Kenmux

Friday, June 9th 2017, 8:03am

Author: kenmux

Issue about BmpCvt.exe with 32bit bitmap

Hello all, I tried to use BmpCvt.exe to convert a 32bit bitmap to c file. I used the format "True color with alpha" which will set the draw function as "GUI_DRAW_BMP8888". But the c file cannot be played properly: nothing showed but only a black screen. I tried it in both pc simulator and my own board with the same result. In addition, if I use format "True color 24bpp", all's fine. The version of BmpCvt.exe I used is: v5.4.0. I add an attachment of c file converted by BmpCvt.exe. Any ideas? Tha...