Search Results

Search results 1-17 of 17.

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

  • Hi Florian, thank you for your support. I noticed that GUI_DrawGraph, which draws a polyline, is not the right function for drawing a set of spectral lines starting all at the X axis. I was able to get the desired result drawing each of the 750 vertical lines using GUI_DrawVLine. This happens in a user draw function and takes less than 1 second. Regards Jan

  • Hi Florian, this would be not enough in my case. I want to update my FFT at least once in a second. My display can show 750 frequency lines. That means I have to do 750 times GRAPH_DATA_YT_AddValue, correct? And this seems to be impossible within one second. I was hoping that GRAPH_DATA_YT_Create would allow the transfer of data arrays. What is the 'pData' parameter good for? In the manual it says "Pointer to data to be added to the object. The pointer should point to an array of I16 values". Th…

  • Hello, I am using a GRAPH to display an FFT spectrum. So all Y/T values in the diagram need to be updated at least once in a second. The common method calling GRAPH_DATA_YT_AddValue in a loop for each horizontal pixel is too slow for updating the diagram within one second. Can I call the GRAPH_DATA_YT_Create function in a loop with my array of values as pData parameter to increase speed? Regards Jan

  • Remark to the GRAPH with child widgets: I noticed that before I can close the dialog window with GUI_EndDialog(pMsg->hWin, 0), I have to delete the GRAPH using WM_DeleteWindow(hGraph). If I don't delete the GRAPH before ending the dialog I get a hardware fault from my debugger.

  • Hi Florian, thank you. It works. Jan

  • There is still one problem remaining. I use GRAPH with a horizontal scrollbar (added with GRAPH_SetAutoScrollbar). Touching the scrollbar causes a WM_NOTIFY_PARENT event. Is the scrollbar a child of the GRAPH? What is its ID? I have to distinguish scrollbar events from my buttons since scrollbar notifications should not go the parent window but to the GRAPH default callback. Else scrolling wouldn't work.

  • I think I found the answer myself. I added WM_SetCallback(hGraph, _cbGraph) to WM_INIT_DIALOG of my main window. This redirects messages from all child widgets of GRAPH to the callback routine _cbGraph which again sends them to my main window.

  • Hi Florian, thank you for your answer. I understand that I need a separate callback for the GRAPH. However, I'm not completely familiar with the callback mechanism. I have lots of references to the GRAPH in my main callback, like filling in data, scaling, sliders etc. If I create the diagram after the main window as you suggested all the hGraph references in my main window are still invalid when it is created. Do I need to transfer everything that deals with the diagram into the GRAPH callback? …

  • Thank you, Alex. I made the buttons to child widgets of the diagram, as you suggested, and now they remain visible. But the GRAPH widget does not seem to give notifications (there aren't any mentioned in the manual). I think that's why also the buttons do not send notifications. Is there a way to get notifications from the graph children? Regards Jan

  • Hi, I have a GRAPH with horizontal slider. There are some buttons in the graph area. Each time I move the slider these buttons disappear behind the graph. As a workaround I used WM_BringToTop to make them visible again but this is not very elegant. Is there a way to avoid this? Regards Jan Attached is my GRAPH initialisation Source Code (27 lines)

  • Thank you, Sven. It's no big deal. I replaced the GRAPH auto scrollbar with a SCROLLBAR widget. Regarding the next release: Will it be offered to STM32 customers, too? Best regards Jan

  • Hi, the automatically attached vertical scrollbar works in the opposite direction of the diagram. The bottom scroll position is on the upper end and vice versa. Is there a way to mirror the vertical scrollbar? Regrads Jan

  • GRAPH not completely redrawn

    JanBurg - - emWin related

    Post

    I solved the problem by calling WM_Invalidate(hItem) periodically. I also noticed other issues when not redrawing, like a broken graph when moving the time axis slider.

  • Hi, it's me again. I have some difficulties understanding the Y/t GRAPH widget in all its complexity. What I want to do is logging data over a time interval which is longer than the visible interval on the screen. It would be nice to have a moving diagram with new values shifted in on the left side. The time scale and the vertical grid should move with the data to maintain the connection of Y values and time. All whatI could achieve is a digram with fixed grid and time scale and a horizontal scr…

  • GRAPH not completely redrawn

    JanBurg - - emWin related

    Post

    Hello, when I open a window in front of a GRAPH widget and close it again, some sections of the GRAPH are not redrawn, mainly parts of the graph line itself are erased. I noticed that this only happens if I have borders enabled (values > 0 in GRAPH_SetBorder). I also noticed that it doesn't happen if the diagram data is shifted. Do I have to redraw or refresh the diagram myself? Best regards Jan

  • Delete all items of a TREEVIEW

    JanBurg - - emWin related

    Post

    Hello, I would like to delete all items of a TREEVIEW in order to re-populate it with other items. The user guide says about TREEVIEW_ITEM_Delete(): "In case of deleting a tree the root element of the tree should be passed to the function." What is the root element and how can I get its handle? Best regards Jan

  • ICONVIEW defaults

    JanBurg - - emWin related

    Post

    Hello, the emWin user guide mentions in chapter 19.12.1 some default settings for the ICONVIEW widget, like ICONVIEW_FRAMEY_DEFAULT. However, I couldn't find any of these settings in my STemWin, although they would be useful. The default frame setting is 5 pixels, so I have to set the frame to zero in each ICONVIEW item I am using? Regards Jan