Search Results

Search results 141-160 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, try calling GUI_LANG_SetMaxNumLang() before loading the CSV file. Regards, Sven

  • Hi, not sure what you mean by "has edit text on this code?". The example includes an EDIT widget which gets the the text of the pressed buttons. Before it can receive the input it needs the focus, just click on it. Regards, Sven

  • STM32F746G-Discovery

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Somewhere in your project you have the implementation of LCD_X_Config() (not sure how ST calls the file). Within this function the driver gets set up calling GUI_DEVICE_CreateAndLink(). The first parameter is the driver to be used. Here you can use GUIDRV_LIN_OSX_32. Regards, Sven

  • Plotting graphs

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Do you only call CreateWindow() but never a WM_Delete() or something? Might it be possible that you run out of memory at some point? Are there some other resources which need to get freed (like Memory Device or user allocated buffers)? Regards, Sven

  • STM32F746G-Discovery

    SEGGER - Schoenen - - emWin related

    Post

    Hi, It's the end position in x direction of the rectangle (x0 + 40). Regards, Sven

  • Window

    SEGGER - Schoenen - - emWin related

    Post

    Hi, The problem is that you can not simply draw outside of a WM_PAINT message. You call the calibrate function from WM_NOTIFY_PARENT. Try this: C Source Code (140 lines)Regards, Sven

  • STM32F746G-Discovery

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Quote from Andrzej: “What is the difference between _cbButton and cbButton? ” _cbButtonTrans() is a callback function gets called by emWin if something happens related to the button this callback is set to. This allows you to react different events like touch, or WM_PAINT. _ButtonSkin() is callback dedicated for drawing. This gets called by the default callback function of a button and allows you to draw the single parts of a button like background and text. Quote from Andrzej: “I want to ro…

  • Window

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Below is a very basic example which shows how to create and delete a window on button press (or in this case on button release). C Source Code (117 lines)Regards, Sven

  • STM32F746G-Discovery

    SEGGER - Schoenen - - emWin related

    Post

    Hi, you could overwrite the button callback function or set a custom skinning function. When it comes to drawing the button text you can display the string rotated with the function GUI_DispStringInRectEx(). C Source Code (119 lines) It is not possible to simply rotate the default button. The background wouldn't get rotated. Regards, Sven

  • Hi, You are using a a driver version without cache, GUIDRV_FLEXCOLOR_M16C0B8. Without a cache the GUIDRV_FlexColor driver allocates a buffer to hold one line. Therefore it can only send one line at once. You are using a memory device but it also gets drawn line by line by the driver, just as a bitmap would be. Instead of using a memory device you could use a cached version of the driver, GUIDRV_FLEXCOLOR_M16C1B8. Now instead of using the memory device you can lock and unlock the cache. This way …

  • STM32F746G-Discovery

    SEGGER - Schoenen - - emWin related

    Post

    HI, Of course, _cbCallback and _cbDialog are just names and you can choose them freely. But, the callback set for a dialog receives a WM_INIT_DIALOG message after all its dialog elements are created. This gives you the chance to configure the different elements. A callback function set for a single window gets a WM_CREATE message giving you the chance of reacting to it and creating further child windows or set up some data. You can react to WM_CREATE only if the pointer to the callback function …

  • STM32F429 button click

    SEGGER - Schoenen - - emWin related

    Post

    Hi, You have to read out the touch data from the touch controller and pass the read touch coordinates to emWin. Typically we do this in a dedicated task polling the touch data every 25ms. The interface and communication to the touch controller is user defined and not part of emWin. Attached is a touch configuration we use on a STM32F746 Discovery. You might use it as a reference. Regards, Sven

  • Hi, You could use our tool Bin2C.exe to convert a binary file into a c-array. This array can be compiled along with the other files in your project. For large fonts I recommend to xbf fonts. xbf fonts use some sort of a look up table to find a character in a font. This requires only two files accesses. With sif fonts emWin will search the complete font to find a character. Especially with large fonts it might take a while to find a character if the character is at the end of the font. The Bin2C …

  • Hi, Is GUI_Init() beeing called multiple times? You Do this in your appliaction. I know that in some ST examples GUI_Init() is getting called before MainTask(). Call it just once. Regards, Sven

  • Hi, Do you get out of GUI_Delay()? I could imagine that the timing related functions are not correctly implemented and GUI_Delay() waits forever. Search for GUI_X_Delay() and GUI_X_GetTime(). GUI_X_GetTime() has to return a 1ms tick, either provided by an OS or a HW timer with a period of 1ms. GUI_X_Delay() waits for the given amount of time either by calling an RTOS-delay-function or waiting vor a variable incremented by the 1ms timer. Regards, Sven

  • Hi, the GUIDRV_FlexColor driver for the ILI9488 does not support an 18 bit interface. It supports only 8 and 16 bit interfaces. Regards, Sven

  • Widget within a widget

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Attached is a very basic example. The first dialog gets created and starts a timer. Once the timer expires the dialog deletes itself and create the second screen. Regards, Sven

  • SSD1963 in 8-bit Mode

    SEGGER - Schoenen - - emWin related

    Post

    Hi, It's hard to say what is going wrong. You have to set some function to write data to LCD controller. Do you get into them? Within GUI_Init() emWin fills the LCD with black, this would mean you get to a specific point without hardfault. You are using a non cache version of the driver, did you set read functions? This is required when using a driver without cache. How much memory did you spend emWin? Try to increase the memory passed to GUI_ALLOC_AssignMemory(). Do you have enough stack? Regar…

  • Hi, Attached is a short example. The reason on side is most likely related to the GIF. Try to open the GIF with GIMP (or any other image editor tool) and un-optimize the GIF. Most GIFs are saved optimzed which means they store only the difference to the previous image. Unfortunately, this results in a strange output when only a sub image gets drawn. Regards, Sven

  • Hi, Per default the WINDOW widget and the simple WM-window do not manage IDs. Add the following to your window callback: C Source Code (3 lines)Regards, Sven