Search Results

Search results 1-20 of 95.

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

  • How to avoid moving a window by a widget

    LexaGB - - emWin related

    Post

    Hello, Florian, ok, I'll see what I can do. Thanks, Alex.

  • How to avoid moving a window by a widget

    LexaGB - - emWin related

    Post

    Hello to everyone, there are some widgets in emWin that accept a PID and do things accordingly to a PID state. For example, SLIDER widget. When motion option enabled in a parent window then PID state is to be trasmitted to parent window and slider loses its correct "sliding functionality" since parent window moves instead of slider. My question: how to avoid this behaviour? Of course we can handle PID-messages in slider callback and manually enable/disable motion in a parent window. But maybe th…

  • Hello, Florian, Oh, thank you for the code! Really needed to complete my app! Now it works fine Thanks, Alex.

  • Hello to everyone, my problem is following: here is a simple code with 3 simple windows with content inside the windows that can be moved using motion support. 1st window - content can be moved circularly. 2nd window - content can be moved horizontally. 3rd window - content can be moved vertically. If I move content in 2nd and 3rd window all is fine and moves as it should. But if I move content in 1st window with circular motion support and after that I try to move content in other windows then …

  • Simultaneous motion

    LexaGB - - emWin related

    Post

    Hello, Sven, ok, thank you.

  • Simultaneous motion

    LexaGB - - emWin related

    Post

    Hello, I'd like to get a simultaneous motion of two simple windows. Here is a short sample. C Source Code (76 lines)Just two simple "circle windows" with buttons to give them a motion. And a button to stop motion and reset windows to initial position. When clicking one of the "moving buttons" corresponded window starts moving. But if we click another button when one window is moving then another window starts moving and first window immediately stops. Is there a way to avoid stopping and give co…

  • Horizontal scrolling for SWIPELIST?

    LexaGB - - emWin related

    Post

    Hello, is that what you want? C Source Code (109 lines)In this case I would just make a motion for parent window completely manually. Then after handling a motion message by swipelist just send a copy of the motion message to parent window.

  • Lost alpha value

    LexaGB - - emWin related

    Post

    Hello, I'm working with memory devices and trying to switch one memory device into another on the screen using GUI_MEMDEV_WriteAlpha() (non-blocking method). Each device is filled with BMP data (32bit with alpha created with Bitmap Converter then converted with Bin2C). The problem is that when switching animation is starting alpha value is lost (background gradient is not visible). Here is the small example. BMP data in attach. C Source Code (119 lines)Using STemWin v5.44. What am I doing wrong?…

  • How to check if DROPDOWN expanded?

    LexaGB - - emWin related

    Post

    Hello, listbox is created and expanded in the moment you click on dropdown widget so apparently it should be checked when handling WM_NOTIFICATION_CLICKED message. We were going through this earlier in the thread: forum.segger.com/index.php/Thread/7070-Overlapping-Windows/ Alex.

  • Hello, well, actually, I didn't work with ILI9488, maybe there's the problem with reading back pixel data in the right format, so we can think about the things: 1. Check if code in your 8-bit functions (Readdata, WriteData etc...) is quite accurate and consistent with dedicated pixel data format which is set to ILI9488 during initialization (565 or 666). 2. Check if pixel data format complies with the configured color conversion routine. 3. If needed check if the function GUIDRV_FlexColor_SetRea…

  • Hello, one of the boards I work with is also a device with STM32F207 (120MHz, 128 kB SRAM) MCU and 240x320 LCD with ILI9341 controller using 16-bit 8080I bus. No external ram. No cache for display driver. Not much "faster" system than yours. Check the following moments in your code: 1. Increase 8080I bus performance: DCX pin: set it to "1" in your "Readdata" function and toggle it "0" -> "1" in "Writecmd" function. Do not operate with it in "Writedata" function. WRX pin: set it to "1" in "Readda…

  • Overlapping Windows

    LexaGB - - emWin related

    Post

    Hello, I would do something like this: reattach dropdown's child listbox to desktop window when dropdown is expanded so it will allow listbox to paint within whole desktop area not only within parent dialog. I created some code for simple windows. I think this will work also on dialogs. C Source Code (62 lines)Alex.

  • Rotate image

    LexaGB - - emWin related

    Post

    Hello, with regard to ready-made API in emWin you can only rotate content of memory devices. These are memory areas where you can draw or copy any graphics including images. See chapter "Memory Devices" in the manual and description of the GUI_MEMDEV_Create(), GUI_MEMDEV_Rotate() in the memory device API list. There is also an example from SEGGER emWin simulation pack in the file MEMDEV_ZoomAndRotate.c Alex.

  • Degree symbol in GUI Builder

    LexaGB - - emWin related

    Post

    Hello, there is only support of the base ASCII set in text editable parameters of the widgets in GUIBuilder. The only thing you can do is generate the degree symbol as '°' in a text editor with extended symbols support (for example, in Word) and then paste it to the field "Content" of the text widget in GUIBuilder. Alex.

  • GRAPH - vertical rescale - how to?

    LexaGB - - emWin related

    Post

    Hello, suppose there is no way to replace data in the current data handle. I'd do something like this: 1. Clear the graph from current data curve with GRAPH_DetachData(). 2. Delete and create a new data handler with the same handle variable using GRAPH_DATA_YT_Delete()/GRAPH_DATA_YT_Create(). If there is enough memory then don't delete a current data handle and simply create a separate data handler with recalculated data. 3. Attach new data curve to the graph with GRAPH_AttachData(). Alex.

  • Problem with memory device in emwin with ST7735

    LexaGB - - emWin related

    Post

    Hello, if you're using only internal ram for keeping emwin pool and frame buffer I think it is too few for memory devices. Display driver just does data exchange with st7735. Memory size depends on color configuration you're using. For example, if your 2inch display has a resolution 128 * 128 then you need 64kb for a memory device with 32bpp color depth. It is a size of whole internal ram in stm32f103ve. Check return value of memory device creating function you're using. If it returns 0, it is m…

  • BUTTON - wrapped text

    LexaGB - - emWin related

    Post

    Hello, look at this: forum.segger.com/index.php/Thread/5802-button-and-wrap/ Alex.

  • Upd: you can do a little easier: set multilined string when call API function: LISTBOX_AddString(hLstbx, "Two lined\nitem 3"); and then handle only command WIDGET_ITEM_GET_YSIZE in your owner draw function to change the ysize of the item. Alex.

  • Hello, there is no difference how you are doing: whether you create a widget from resource table or create it manually. Resource table just calls the same creating API function with some basic parameters of a widget. So there is no configuration to do items with multilined text immediately when creating a listbox. My sample code just was easier to do creating a listbox directly using API. The main thing was to reveal the owner draw mechanism that would work in all the cases. Alex.

  • Hello, it is possible with using owner draw function where you can display multilined strings at dedicated item. C Source Code (72 lines)Alex.