Search Results

Search results 1-20 of 21.

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

  • LISTBOX set background colour

    pdmorrow - - emWin related

    Post

    Sorry Sven, that's working fine - pretty obvious really. Thanks, Peter.

  • LISTBOX set background colour

    pdmorrow - - emWin related

    Post

    Thanks Sven, I'll give that a shot.

  • LISTBOX set background colour

    pdmorrow - - emWin related

    Post

    Hi, I'm struggling to change the background colour for a listbox element (part of a dropdown), I'm specifying my own owner draw function to try to do this however it doesn't seem to work as expected. Initially I had tried to set the colour defaults for the LISTBOX widget but that has not worked. Can someone help me change the background colour of the currently selected listbox element in a dropdown? Many Thanks, Peter.

  • Hello, I'm working on trying to get a time/date picker working with STeMWIN, I have a basic screen working however movement of the various wheels is something I've not quite grasped yet. Currently each list wheel has it's own callback: Source Code (23 lines) When I touch on the wheel it moves, however it only moves in 1 direction. I'm wondering how (if?) I control the direction of movement with listwheels? The example code looks like this: Source Code (23 lines)Which sadly I am struggling to und…

  • WM_GF_PAN handling.

    pdmorrow - - emWin related

    Post

    Hi Sven, I managed to resolve this, basically I think the issue boiled down to calling WM_SetCreateFlags(WM_CF_GESTURE); When I set this flag only on the windows which I want to swipe then it worked before. Thanks for your help. Peter.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    I implemented something like this (stored another pressed state in the user data) and it works well Thanks for your help! Peter.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    Hi Sven, Thanks for replying, yeah I thought this might be the issue - I'll try to implement something like this and will get back to you. I wanted to use the user data of the edit widget to store this value, but sadly I'm already using the user data for something else! I'll give this a shot. Thanks, Peter.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    Any other ideas as to what is going on here? Can I provide any more information? Thanks, Peter.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    A little more debugging shows me that my EDIT widgets are getting a release notification (i.e. WM_TOUCH with pState->Pressed == 0) immediately after the dropdown processing happens. There is no pState->Pressed == 1 notification from before. So I can probably work around this by ignoring the "spurious" release event, though at this point I am sure my touch driver is not generating a spurious release.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    Hi Sven, I had some more time to look into this but still cannot resolve the issue unfortunately, I've disabled multi-touch and am now just using single touch to input events to emWin. I've verified I'm getting a single touch and release event (so no spurious touch events are occurring). My edit widgets get their own callback: Source Code (48 lines) So on EDIT release I'm displaying a keyboard screen to take user input. The dropdown's get their own callback as well, but it doesn't do anything sp…

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    OK, that makes sense. I'm having a few other strange errors which could be down to this. I disabled use of GUI_TOUCH_StoreStateEx() and now just use GUI_MTOUCH_StoreEvent(), however now I don't seem to be able to read a multitouch event from the buffer when reacting to WM_TOUCH or WM_GESTURE events: In the code below GUI_MTOUCH_IsEmpty() never returns false unfortunately. Source Code (67 lines)

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    Thanks Sven, Unfortunately we are still running STemWin 5.40. I'm using both GUI_TOUCH_StoreStateEx() and GUI_MTOUCH_StoreEvent() to notify emWin of touch events, we are doing this from an RTOS task which is awoken on touch interrupts occurring. Good point about too many touches, however in order to support pan gestures I need to capture a lot of touches (for swiping/dragging) - I'll investigate to see if I can reduce the frequency of the updates to the emWin GUI task. Thanks, Peter.

  • WM_GF_PAN handling.

    pdmorrow - - emWin related

    Post

    Thanks Sven, I actually had my WM_GF_PAN handling code in the callback for the first window in the dialog. I've tried to adopt your example code into mine and I'm not seeing it work here unfortuntely, my dialog callback is not getting the WM_GF_PAN notification. One thing to note is I've got a custom edit callback which is reacting to WM_TOUCH (handling touch release), I don't think this should be interfering with the PAN handling but maybe it is. I'll do some more experiementations and will rep…

  • This thead might help you? Print Screen

  • Hi, It's best to ask on the ST forums about this since you are using STemWin and cube mx which are ST tools. Peter.

  • DROPDOWNs and EDITs

    pdmorrow - - emWin related

    Post

    Hi Folks, My question is the same as: Problem using dropdown and edit widget I'm wondering what the solution to such a problem might be. I'm thinking of just disabling (WM_DisableWindow()) on all widgets except the dropdown, though again this is a bit fiddly. The other (better) solution would be to just disable widgets which are hidden by the dropdown. What I'd like to know is if anyone has a better way of fixing this! Cheers, Peter.

  • WM_GF_PAN handling.

    pdmorrow - - emWin related

    Post

    Hello! Quick question hopefully! I've implemented basic swipe behaviour in that I can react to WM_GF_PAN messages on a window, when the gesture ends I can display a new window. This is great. However I'm wondering how to handle the case were they are lots of widgets present on the foreground of a window, in my example I have a window with lots of EDIT widgets - of course now my window no longer receives the gesture notifications. Is there a well known strategy to handle this? I'm thinking of jus…

  • Multi-task RTOS usage

    pdmorrow - - emWin related

    Post

    Oh dear, please ignore my question - it's all working as expected Stupid programming error on my part.

  • Multi-task RTOS usage

    pdmorrow - - emWin related

    Post

    Hello, I've putting a system together which has a number of RTOS (FreeRTOS 9.0.1) tasks running, a single task is dedicated to the GUI which calls GUI_Delay() every 20ms. This task also creates all windows at system startup time and switches to different windows based on user touch input. Now I've got another RTOS task which is processing some data from an external source (ADC), I need to update a table with some data in this task, i.e. Task 1 - Creates a pile of widgets (specifically a listview…

  • Skinning LISTVIEW HEADERs

    pdmorrow - - emWin related

    Post

    Thanks Sven, This is what I was looking for Unfortunately we are using stmewin and HEADER_GetItemText() is not yet available in their most recent version. I think it's time we ditched stemwin for emWin. Cheers, Peter.