Sunday, February 18th 2018, 9:57am UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 21.

Tuesday, February 13th 2018, 3:26pm

Author: Ivancho

Watch running application (Target Hardware) on the PC

Dear emWin-users, I would like to ask you for some help regarding the "live stream" of an existing application (Target hardware) on the PC. During the past several months I have developed a quite interesting application for my end, did this also as an .exe for "stand alone" PC application (emwin Simulation) via Visual Studio. I always wanted to go deeper to the thema: Live Stream ... is there a way to stream on the PC respectively to control via mouse etc. ( VNC is probably needed...). Could you...

Friday, December 15th 2017, 12:27pm

Author: Ivancho

C Bitmap File in emWin Simulation

Thank you, Sven. Nice holidays. Ivo

Monday, December 11th 2017, 3:44pm

Author: Ivancho

C Bitmap File in emWin Simulation

Dear emWin-support team, here is the issue: When I place a Device.bmp and Device1.bmp (for HardKey) into the directory of my project, the .exe is shown the way I want, pictures of my end are there, everything works fine. But the .bmp files have to be moved/cuted/copied together with the .exe in order always to be executed and shown correctly. Is there a way to include those two files as C bitmap Files (.c) directly into the project (as application resources infact)? Any help would be appreciated...

Thursday, March 30th 2017, 10:56am

Author: Ivancho

Memory Devices and the Window Manager

Dear Sven, with the risk of being annoying I really do not understand the behavior of the WM_CF_CONST_OUTLINE and need your continuous help here. I asked you all this questions because I just wanted to have my application to operate a bit faster ( like for example when you press on a button that the button reacts faster and respectively goes faster in the another menu (for example)). The slow process was caused as you explained to me because all the windows had to be redrawn in WM_PAINT after so...

Tuesday, March 28th 2017, 11:07am

Author: Ivancho

Memory Devices and the Window Manager

Wonderful! Thank you a lot, Sven!

Friday, March 24th 2017, 2:59pm

Author: Ivancho

Memory Devices and the Window Manager

Dear Sven, unfortunately WM_SetTransState(hItem, WM_CF_HASTRANS | WM_CF_CONST_OUTLINE) does not make the button transparent. static void _cbButton1(WM_MESSAGE * pMsg) { WM_HWIN hItem; switch (pMsg->MsgId) { case WM_PAINT: break; case WM_INIT_DIALOG: break; default: BUTTON_Callback(pMsg); break; } } ......................in the cbDialog after that : case WM_INIT_DIALOG: hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_1); WM_SetTransState(hItem, WM_CF_CONST_OUTLINE | WM_CF_HASTRANS); WM_SetCallback...

Wednesday, March 22nd 2017, 2:07pm

Author: Ivancho

Memory Devices and the Window Manager

Hi Sven, Thank you so much for your continuous support. The drawing performance increased significantly by adding "WM_SetTransState". May I use the opportunity to ask you one further thing: is this order correct , when I am trying to combine WM_SetTransState with transparent Button_Widged ? I am creating the buttons through a dialog. Making them Transparent worked till now OK, but since I added WM_SetTransState(hItem, WM_CF_CONST_OUTLINE) the transparency behavior changed. in: case WM_INIT_DIALO...

Friday, March 17th 2017, 4:43pm

Author: Ivancho

Memory Devices and the Window Manager

Dear emWin-users, once again I would like to ask you for some help. Let's ignore the issues, caused by lack of allocated memory, hardware problems etc. My question only refers to the way I use Memory Device (to display a .gif on the LCD) with Window Manager (some buttons here). So I have 3 main steps: 1: Let`s call this function _DemoMemDev: static void _DemoMemDev(void) { GUI_MEMDEV_Handle hMem; // // Create the memory device // hMem = GUI_MEMDEV_Create(0,0,800,480); // // Activate it // GUI_ME...

Friday, February 10th 2017, 2:07pm

Author: Ivancho

Drawing a Bitmap from an external sd-card with GUI_BMP_DrawEx() ?

Hi Sven, thank you for you continuous support here.... So today I was able to reproduce a *.bmp file on my screen, but only with a restricted size. For example, a picture of appr. 350x200 pixels I can display well, but a 600x200 I cannot (my external display is 800x480). After break pointing in the APP_GetData() --> NumBytesRead for the 350x200-bitmap is 1096 and since my _acBuffer is [1200] all works fine.... I increase the buffer to _acBuffer[5000] but it still cannot reproduce 600x200 picture...

Wednesday, February 8th 2017, 4:08pm

Author: Ivancho

Drawing a Bitmap from an external sd-card with GUI_BMP_DrawEx() ?

Dear emWin-users, I am trying to draw a Bitmap picture (abc.bmp) from an external sd-card on the LCD with the GUI_BMP_DrawEx()-function. So I have stored a .bmp file on my external sd-card and do the following: here is my code: ///////////////// FATFS FatFs; FRESULT res; FIL fil; static char _acBuffer[400]; int APP_GetData(void * p, const U8 * * ppData, unsigned NumBytesReq, U32 Off) { FILE *phfile; DWORD NumBytesRead; phfile = (FILE *)p; // // Set file pointer to the offset location // fseek(ph...

Wednesday, January 25th 2017, 3:00pm

Author: Ivancho

Background for Buttons of a SPINBOX_WIDGED possible ?

Dear emWin-users, is it possible to set a background picture (e.g *Bitmap from the Bitmap Converter) for the two buttons of a SPINBOX_WIDGET and to change them respectively when pressing on them (like on a normal BUTTON_WIDGED) ? Thank you in advance Ivo

Wednesday, January 11th 2017, 9:30am

Author: Ivancho

The best way to delete a DialogBox and to create a new one after pressing a button ?

Hello emWin-users, I dont want to place a huge code here so I will try to compress it and to concentrate on the important part of it: Can you tell me what is the best way to delete a DialogBox with a WindowAsChild on it (invisible one) and to create a new DialogBox right after that (for example after pressing a button). I did the following, but it sometimes crashes: case ID_BUTTON_NEXT: //WHAT ABOUT THIS : WM_DeleteWindow(hWin1); WM_DeleteWindow(hWin2); GUI_Clear(); NextScreen(); GUI_SetOrg(0, 4...

Thursday, November 3rd 2016, 12:50pm

Author: Ivancho

Get a value (age for example) from a LISTVIEW widged and store it somewhere else ???

Dear emWin-users, I hope you can give me some hints here: Is there a way to get a value (an integer) from a Listview widged? Let say I have created 10 rows in 2 columns, column 1 is Name, column 2 is Age, containing numbers. I just want to use some command on the right place (WM_Init_Dialog or Notify Parent ?? I do not know exactly where) in order to store the number (age) which was clicked and to change it after that with some SPINBOX widged or smth like this. I would appreciate your further he...

Wednesday, November 2nd 2016, 10:34am

Author: Ivancho

Integer instead of char into a WIDGET_Listview

Hello YPO53, it worked. Thank you very much Regards

Friday, October 28th 2016, 8:49am

Author: Ivancho

Integer instead of char into a WIDGET_Listview

Dear emWin-users, I would appreciate some help from you. Can you please tell me if it is possible to put an integer into a Listview_widged (integer which can change during application runs) I use : char c = variable_1 + '0' in order to convert a character into an integer, but it doesn't show it, some warning occurs: static void _cbDialog(WM_MESSAGE * pMsg) { WM_HWIN hItem; int NCode; int Id; int variable = 5 char c = variable +'0'; switch (pMsg->MsgId) { case WM_INIT_DIALOG: // // Initialization...

Monday, October 17th 2016, 11:33am

Author: Ivancho

Deleting a Line from TFT-Screen

Hello dear wmWin-users, hereby I want to ask you for some help: Is there a way to delete a line, which was previously drawn with : " GUI_DrawLine(); " I have the following issue: I have lets say 10 different levels of speed (for example), which I can choose by a SPINBOX from 1 to 10. If I choose 1, a small line is drawn: GUI_SetPenSize(4); GUI_DrawLine(525, 1390, 525, 1395); // 1 I choose 2, the prevous line and the new one , next to the older one, but bigger (similar to volume lines on a tv for...

Saturday, October 1st 2016, 3:32pm

Author: Ivancho

Problems with GUI_SetTextMode(GUI_TM_TRANS), please help....

Dear Sven, I used your code to display a chinging value as you explained, but I have some problems at one point. Your code with displaying a counter (i++) and redrawing it every time when it changes works fine, but since I try to display a value from an external Temperature Sensor it does not work. This measured temperature I store into an Integer and when using a normal sprintf command it works, but I want to implement it into your _cbWin function. I will go through your code and write my comme...

Tuesday, September 27th 2016, 10:54pm

Author: Ivancho

Problems with GUI_SetTextMode(GUI_TM_TRANS), please help....

Dear Sven, thank you very much. This helped a lot... sorry for being late with my answer, I was in vacation! Have a nice day...