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.

  • Hi emWIN Team, Apologies, I solved this issue. It was my mistake. Thanks Sebastien

  • Hello Segger emWIN Team, I ported a perfectly working program from SeggerEval_WIN32_MSVC_MinGW_GUI_V532 to SeggerEval_WIN32_MSVC_MinGW_GUI_V624 and I'm getting errors related to the math.h header file, per attached: Clearly the compiler cannot find the standard math functions "_cos" and "_abs" and many others functions from other ".h" files because I'm also getting the same error for _calloc and _atoi. Within my solution ( for SeggerEval_WIN32_MSVC_MinGW_GUI_V624) in Visual Studio, when I looked…

  • emwin touchscreen

    Electrons4me - - emWin related

    Post

    Hello Swen, I've been using the emWIN SimulationTrial that you guys have created for Windows, for years now, and everything has always worked perfectly! However, I recently attached an external HDMI LCD screen with Capacitive touch to my PC just to have a feel for how my app will look and work using "touch" versus using a mouse. Strangely enough everything works very well when I'm using Windows Applications (powerpoint, Excell, Outlook, Google, ect...), the touch responds exactly as expected. Bu…

  • Hi Sven, In the example you provided up above on the 9th of jan 2020, I simply added in the WM_PAINT: the following DrawVLine() statement: static int Value = 20; ... ... case WM_PAINT: GUI_SetBkColor(GUI_BLACK); GUI_Clear(); GUI_DrawVLine(Value, 70, 135); <-------- break; When I click on the Button I need to have the vertical line move from left to right as the variable "Value" increments. Now I've attached a screen shot of the result. I clicked the Button several times Value went from 20 to 101…

  • Hi Florian, Within the WM_PAINT case statement I do call GUI_Clear() as you will see in the attached code. Notice that when I add the line drawing call, GUI_DrawVLine(Value, 10, 272), in WM_PAIN: the line is not drawn. When I add it to the case WM_NOTIFICATION_RELEASED: I see the line but it's drawn in the background window, not in the Child window as I need. See code attached. Since you now have this code, if you look at the WM_KEY case, where I try to exit using the ESCAPE key press. That does…

  • Hi Florian, Thanks for the tips. I tried that but as I drew, within the WM_PAINT case, the vertical line got drawn in the background window (so behind the child window see attached snapshot). I want to draw inside the childwindow and I want the callback of the child window to refresh the dynamic line drawing changes. Looking at the attached picture, the line should have been drawn inside the child window (red box) and clipped from the mid-screen to the bottom of the screen since that is outside …

  • Hi, I created a child window: WM_CreateWindowAsChild(0, 0, LCD_GetXSize(), LCD_GetYSize(), WM_HBKWIN, WM_CF_SHOW, _cbBk, 0); and I want to draw in this child window using primitive drawing functions (Draw line, Circle, etc...). Q1: How can I do that? Q2: Will the callback function "cbBk" of my child Window also update the drawings as I change them based on external inputs? Thanks E4M

  • Hi Sven, I solved it! No need to spend time on this. (I mean the previous question about having several buttons. The question, about using the ESCAPE key, below, I have not solved yet and need your help). I'm using the emWIN example, per below, to use the ESCAPE key to exit. But when I press the ESCAPE key nothing happens. If I place a break point at the "switch(pMsg->MsgId);" statement, run the program and press ESCAPE, nothing happens and the break point is not even hit (I don't even get a cal…

  • Hi Sven, It works great, thanks! More more question: if I want to have several BUTTONS with their corresponding TIMERs in the same window, that behave as the above, I suppose that when I get a WM_TIMER trigger, I need to a way to find out which TIMER reached it's period? I assume that the "UserId" from the function: WM_HTIMER WM_CreateTimer(WM_HWIN hWin, int UserId, int Period, int Mode), will give me that, right? Because this UserId should tell me which TIMER (and it's corresponding BUTTON) rea…

  • Hi Sven, I'll try that immediately. Thanks, much appreciated! E4M

  • Hello! Can anyone show me how to use the callback of a BUTTON to continuously increment a variable when the BUTTON is continually pressed? Description: 1) I created a button (that works well) 2) It changes bitmap based on WM_NOTIFICATION_CLICKED and WM_NOTIFICATION_RELEASED (that works well) 3) Initially I wanted my variable (Count) to increment upon: WM_NOTIFICATION_RELEASED (that works) case WM_NOTIFICATION_RELEASED: Count++; 4) Now I need to have Count continuously increment as long as BUTTON…

  • Dropdown widget issues

    Electrons4me - - emWin related

    Post

    @EmWin support, I did not get any replies from you so I'm assuming that LexabGb is correct and I have to put all my own drawings and text in the callback. Would you have an example where I could see how you do this so I can replicate? @LexabGb, thanks for sharing, much appreciated. Thanks Electrons4me

  • Dropdown widget issues

    Electrons4me - - emWin related

    Post

    Dropdown widget issues Hello, I'm using a super simple test program with the DROPDOWN Widget. I actually used the example code from Segger's WIDGET_Dropdown.c I'm using the simulator on a WIN10 machine. 1. When I only have the Dropdown widget in my program everything works perfectly. 2. Now I added Buttons to the above program and the buttons works but the Dropdown widget expands only at the first touch on the screen. After the first click on the down arrow it never closes again. All the rest of…

  • Hello Sven, Just wanted to thank you for your help and let you know that I figured out the issue. One of my function calls was passing a string (Draw("house");) and that generated the error. I simply commented out that function and all worked well after. Thanks again Kind regards Seb

  • Hello Sven, I'm sorry to have so many questions on such a simple thing that I'm trying to do with emWin but it's turning out to be overly complicated... So, as you recommended, I reorganized all my drawing functions (primitives, BMP drawing, etc..) in the call back function within the "WM_PAINT" event. I checked in the emWin reference manual what could be included in the WM_PAINT event. This is what the manual says: "When processing the WM_PAINT event, the following functions may not be called: …

  • Hi Sven, I think going with your second suggestion ("... create a dedicated window which gets created/displayed after the dialog has been deleted.) would work best for me since I have a lot of function calls and code already running flawlessly in my MainTask. Could you show me please how to create a dedicated window in MainTask right after the dialog has been deleted? You can use your first example (from Monday) as it resembles my own code architecture/organization. I'm still having difficulties…

  • Hello Sven, This got me further, thanks for the code you posted. However, if I use your example, when I press the "Delete" Button, the code execution returns to MainTask. Now imagine that in MainTask (after calling CreateWindow() and returning from it) I display BMP images and use drawing primitives (GUI_DrawRect(), GUI_DrawLine(), etc...), well the drawings are all broken and some rectangles are drawn incomplete (i.e. only two sides are drawn). If I comment out the line "hDialog = CreateWindow(…

  • Hello, I have created a MainTask that does not use GUIBuilder - That worksperfectly I created an App configuration Dialog Window formy app using GUIBuilder - It's called: CreateIntroPageV1_6() - That works perfectly Now from my MainTask, this is how I call the Dialog createdwith GUIBuilder: void MainTask(void) - - WM_HWIN hDlg; hDlg = CreateIntroPageV1_6(); -------------------- MyDialog window that in CreateIntroPageV1_6() works perfectly. All buttons and callbacks work perfectly The questions I…

  • Hi Sven, Awesome! This is exactly what I needed! (I actually missed it from the Users Manual, it's right there). Best regards SPA

  • Hello, I want to create a simple button using GUIBuilder, let's call this button: "PLAY_BUTTON". I will replace that button with an image at run time. I don't want the name "PLAY_BUTTON" to appear on top of my image on my display when running the app. I just want the image to be displayed. Would there be a simple way to do that vs using skinning? Like a simple API command telling Windows manager not too display the button name on top of the image. Thanks! SPA