Search Results

Search results 901-920 of 1,000. There are more results available, please enhance your search parameters.

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

  • Hi, In general all version of Visual Studio are supported (beginning with VS 2010). It might be necessary to adapt some settings. Please take a look into this thread: EmWin Simulation with Visual Studio 2015 Regards, Sven

  • Hi, Not sure why the input doesn't make it to the listbox. Maybe it has lost the focus after switching the layers. Try to set the focus manually (WM_SetFocus())after switching the layers. Regards, Sven

  • MENU AND MULTIEDIT

    SEGGER - Schoenen - - emWin related

    Post

    Hi, This code won't work: MultiEdit_0 = MULTIEDIT_CreateEx (15, 55,200, 200, MultiEdit_0, WM_CF_SHOW, NULL, ID_MultyiEdit_0,10, text_0); MultiEdit_0 can't be used as parent window for itself. The problem might be that you have used the MENU widget as parent for the MULTIEDIT widget. If you want the MULTIEDIT behind the MENU try using the FRAMEWIN as parent window. Regards, Sven

  • Hi, The FRAMEWIN doesn't react on WM_TIMER messages per default. In this case you have to overwrite the callback. Even though it seems strange, this is neccessary. Try this: C Source Code (40 lines) Regards, Sven

  • Hi, Quote: “ My LCD is a RGB888. If I save it in "TRUE color", is it the best format? ” Yes, TRUE color is the proper format. Quote: “ Can I also increase the performance of my solution by using memdev feature ? ” This depends on how you want to use the memory devices. If you use memory devices you would need to draw first into the memory device and then draw the memory device to the LCD. So, if doing it without the memory device you would save one drawing process. But if you have enough memory …

  • MEM_DEV_WriteAt

    SEGGER - Schoenen - - emWin related

    Post

    Hello Ana, In general your code seems to be ok. I did a test with almost the same (see attached) and it worked on my side. Quote: “ My LCD is a TFT16bit and the image generated by BitmapConverter is a 8 bit pallete image. I'm right? ” It depends on in which format you have saved the image with the BitmapConverter. But it souldn't matter in which format it is. When drawing it with GUI_DrawBitmap() it will be converted into the format of the destination device. Please check the memory again. Are a…

  • Hi, With the example from my last post you can get the values for the reference and sample points. These values are getting stored in _aRefX, _aRefY, _aSamX and _aSamY. Simply write them down and use them in your application. Now you can call GUI_TOUCH_EnableCalibration() and GUI_TOUCH_CalcCoefficients() at the beginning of the application. If you want to get one point calibrated call GUI_TOUCH_CalibratePoint() which checks if the coordinates are inside the display area. The parameters passed to…

  • Hello, I'm not sure what exactly you want to draw. Can you give us an example? Maybe a simple drawing with paint. Regards, Sven

  • Hello, How do you pass the touch input to emWin? In the most cases we create a dedicated touch task which looks like this: C Source Code (27 lines) Since you are receiving raw A/D coordinates these values needs to be converted into pixel coordinates before passing them to emWin. Further it is quite important to generate the "up event" (StatePID.Pressed = 0) at the same position as the last down event. Otherwise it a button might get just a "leave' message instead of a release message. Instead of…

  • Hi, I gave it a try (FontCvtST V5.32 and your pattern file) and it works without any issues. The only difference is that I have used the *.ttf version of this font (also I'm not sure how to use the *.bdf file under Windows). EDIT: I have to correct myself. I forgot that the FontCvt is able to load *.bdf files. I checked again and it seems something is not working properly. I will check that. For now you might use the *.ttf version of the font. Regards, Sven

  • Hi, Without knowing your code I can't say why it is not working. Please try the example attached. Does it work? Regards, Sven

  • Hi, Quote: “ #define GUI_NUMBYTES (1024) * 120 ---> what about this ?? ” This defines the amount of RAM emWin gets allocated to work with. Since your memory seems to be located in the SDRAM (there should be more 120k available), please try to increase the memory. Maybe this solves the issue. Regards, Sven

  • VSCREEN_MultiPage

    SEGGER - Schoenen - - emWin related

    Post

    Hi roldi, Unfortunately I good no idea what is going wrong on your side. I check it with an STM32F7 (hadn't a STM32F4 at hand) and it works without any issues. Please try to set a breakpoint at 'case LCD_X_SETORG:' in the function LCD_X_DisplayDriver() in your LCDConf.c and check if you hit the breakpoint. This part of the LCDConf.c is responsible for setting the framebuffer address to display the rght portion of the framebuffer. If you end up there, what are the values for x and y? Do these val…

  • ListBox Item not shown

    SEGGER - Schoenen - - emWin related

    Post

    Hi, To delete an item from the listbox you might want to use LISTBOX_DeleteItem(). C Source Code (1 line) Regards, Sven

  • Use of Multiple buffers

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Quote: “ 1.- Is everything I will draw going to be drawn using the multibuffer feature?” Just if you draw inside a WM_PAINT case. Anything drawn outside will be displayed directly, or not even displayed since it gets overdrawn by the window manager. Anyway, drawing outside WM_PAINT is not recomended when using the window manager. Quote: “2.- Can I select in which back buffer will it be drawn? ” No unfortunately not. This is done automatically by the window manager. Quote: “3.- Will each draw…

  • focus in widow

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Not sure what are your exact goals here but you can set a window position to a position with WM_MoveTo(). You can also use the WM_MOTION API to move window smoothly to a position. Another way might be to use the animation module. In the example attached you see how to use WM_MoveTo(). Regards, Sven

  • Hi, The "problem" is that the TEXT widgets are getting created with transparency by default. This causes the background window to be redrawn, too. The redrawing is necessary because otherwise it would lead to strange effects on the display. As long as you have a plain background you can either clear the transparency flag of the widget or set a solid background color. I have changed your example accordingly (just search for '/****/') and the background doesn't gets redrawn on setting text. Regard…

  • Hi, Regarding the first question: If you react on WM_TOUCH and handle this message, the default callback won't have a chance of doing default things.. Try this: C Source Code (19 lines) Second question: Do you delete the window and create it again? If you create the window again you have to remeber the last position on your own and create it there. If you use WM_HideWindow() and WM_ShowWindow() it should stay at the position where it has become hidden. Regards, Sven

  • Hi Ivo, The code you have posted looks already pretty much like one of our sample and there is nothing obvious what might be faulty. Maybe one thing, the function GUI_BMP_DrawEx() expects a void pointer as second parameter. So instead of GUI_BMP_DrawEx(APP_GetData, fil, 0, 0); Try this one GUI_BMP_DrawEx(APP_GetData, (void *)&fil, 0, 0); If you set a break point in the APP_GetData() function, what is the value of NumBytesRead after reading from the file? Regards, Sven

  • Hi, YPO53 is absolutely right. Here is also an example (attached). Regards, Sven