Monday, March 19th 2018, 3:46pm UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 512.

Friday, March 9th 2018, 2:07pm

Author: SEGGER - Schoenen

Virtual Screen API on STM32469I-DISCO

Hi, I'm not sure why it is not working. Does the virtual screen gets initialized properly? in LCD_X_Config() you should have a call like this: C/C++ Source code 1 LCD_SetVSizeEx(0, XSIZE_0, YSIZE_0 * NUM_VSCREENS); Further your framebuffer should be large enough, but I don't think that this is the cause of this issue. Regards Sven

Thursday, March 8th 2018, 3:13pm

Author: SEGGER - Schoenen

SPI and DMA with ILI9341

Hi, Unfortunately, I have no experience with the DMA and the SPI on PIC32MZ. Maybe others in this forum. I suggest to contact Microchip and ask them if they can help with this topic. Regards Sven

Thursday, March 8th 2018, 3:10pm

Author: SEGGER - Schoenen

LISTVIEW - Blinking cells

Hi, did you implemented the following functions properly? GUI_X_GetTime() GUI_X_Delay(int Period) The first function should return a a timer value which gets incremented each millisecond and the second should perform a delay for the given period in milliseconds. Without these functions, you can't use any timer related functions (like WM_CreateTimer()). You can either set up a hardware timer which increments a variable each ms or use the timer related API of an RTOS (like embOS). I have attached ...

Thursday, March 8th 2018, 11:57am

Author: SEGGER - Schoenen

Blinking Buttons

Hi, it is almost the same as with the LISTVIEW in your other post. But keep in mind that the BUTTON uses skinning and can not simple changes its background color. You have to set new skin properties. Please refer to the manual for more information on how you can use these properties (chapter 22.8 'BUTTON_SKIN_FLEX'). Regards Sven

Thursday, March 8th 2018, 11:51am

Author: SEGGER - Schoenen

LISTVIEW - Blinking cells

Hi, There is no need to recreate the LISTVIEW. Just create a timer and change the LISTVIEW color when the timer expires. Here is an example on how you could do it: C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 10...

Thursday, March 8th 2018, 11:38am

Author: SEGGER - Schoenen

Widget ID - retreive handle error with WM_GetDialogItem() -child window

Hi, We recommend to use unique Ids. emWin searches in the given dialog and all its child windows/widgets for the given ID. So if using the same ID in a dialog and child dialog as well, you can't really say which handle will be returned by WM_GetDialogItem(). This might work, but doesn't have to. Regards Sven

Thursday, March 8th 2018, 11:30am

Author: SEGGER - Schoenen

Giving touch functionality to buttons.

Hi, How do you pass the touch input to emWin? In general it is done by calling GUI_TOUCH_StoreStateEx() or GUI_PID_StoreState(). In most cases we create a dedicated task which polls for touch and if present pass the touch coordinates to emWin. Attached is a brief example on this can be done (it is a PIDConf.c used for the STM32F746 Discovery). Regards Sven

Thursday, March 8th 2018, 11:24am

Author: SEGGER - Schoenen

how to know anchor flags of a generic window

Hi, This function is not documented and therefore should not be used. It is just a helper for the FRAMEWIN widget. Regards Sven

Tuesday, March 6th 2018, 4:48pm

Author: SEGGER - Schoenen

text click acknowledgement

Hi, Simply call one of the TEXT create functions, like TEXT_CreateEx() and set the callback function _cbText() from my example. To set the callback function call WM_SetCallback() with the handle of the TEXT widget and the function as parameter. Regards Sven

Thursday, March 1st 2018, 3:01pm

Author: SEGGER - Schoenen

display hang

Hi, I can't say what causes this issue. I gave it a try and let run your code (except vGeneralFunction_FloatToString()) but it is running without any problems. Did you implemented the functions GUI_X_Delay() and GUI_X_GetTime() properly? GUI_X_GetTime() should return a timer variable which gets incremented each millisecond. You can set up either a hardware timer (or SystickTimer on Cortex M) or use the timer API of an operating system. GUI_X_Delay() should wait for the given time in milliseconds...

Thursday, March 1st 2018, 2:42pm

Author: SEGGER - Schoenen

text click acknowledgement

Hi, Please note that the TEXT widget does not react on touch normally. Alos, this means that it will send no message to its parent window regarding touch input. But you can add reacting on touch manually. Add the code from 'case WM_TOUCH' to your TEXT widget callback 'ForceTextCallback'. C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 6...

Wednesday, February 28th 2018, 11:09am

Author: SEGGER - Schoenen

nearest widget touch?

Hi, I could catch the touch input from the parent and route it to the widget which is the nearest. Take a look into the example I have attached. I catch the touch input in the callback of the desktop window and check if it close enough to a widget. If it is I pass the touch message to the widget. But be aware of the fact that this might not work reliable because different widgets react differently on touch input. For the BUTTON it works quite well but it is not possible to place the cursor of an...

Wednesday, February 28th 2018, 10:37am

Author: SEGGER - Schoenen

Keyboard in emwin with a background image

Hi, Yes, we have changed our website and the link is no longer available. I have attached the example. Regards Sven

Monday, February 26th 2018, 9:58am

Author: SEGGER - Schoenen

Message for a window in which the destination is another window

Hi, The field hWin gets populated with the parameter hWin passed along with WM_SendMessage(). Basically it is just required to fill in an ID in the field MsgId. The other fields are just optional. Regards Sven

Monday, February 26th 2018, 9:20am

Author: SEGGER - Schoenen

WM_GetInsideRect results when WM_CF_HASTRANS is used

Hi, With the transparency flag set a window gets draw as part of the window behind. In this case it gets drawn as part of the WM_HBKWIN. This means that when inside the callback function (Callback2) the WM_HBKWIN is selected. The function WM_GetInsideRect() does not perform any checks regarding the selected window and if a window is transparent or not. So, this function simply returns the rectangle of the currently selected window (WM_HBKWIN). You can do the following, either use WM_GetInsideRec...

Monday, February 26th 2018, 9:00am

Author: SEGGER - Schoenen

Draw a circle in gui window

Hi, you have to add a 'case WM_PAINT' to the callback function of the dialog. This will allow you to draw into the WINDOW area. Please be aware that you have to take care about the whole window area then. If you set a back ground color for the window with WINDOW_SetBkColor() it has no effect any longer. Try to add this to your callback function: C/C++ Source code 1 2 3 4 5 6 7 8 case WM_PAINT: GUI_SetBkColor(GUI_WHITE); GUI_Clear(); GUI_SetColor(GUI_RED); GUI_DrawCircle(120, 120, 60); GUI_SetCol...

Wednesday, February 21st 2018, 4:58pm

Author: SEGGER - Schoenen

Restart timer when a Window become visible

Hi, You can react on WM_DELETE of the setting menu and create a timer attached to the main window. Like this: C/C++ Source code 1 2 3 4 case WM_DELETE: hParent = WM_GetParent(pMsg->hWin); WM_CreateTimer(hParent, ID_TIMER, 5000, 0); break; If the main window is not the parent you can also save its handle in a global variable. You can also try to react on WM_NOTIFY_VIS_CHANGED in the callback of the main window. Regards Sven

Tuesday, February 20th 2018, 11:19am

Author: SEGGER - Schoenen

LISTVIEW_Transparent background

Hi, I agree with you that the widget should become transparent if the transparency flag is set and GUI_TRANSPARENT is its bk color. We will change the drawing behavior of the LISTVIEW in a future release. For now you can set a custom owner draw function for the widget and react on WIDGET_ITEM_DRAW_BACKGROUND. Simply do nothing if the item to be drawn is not the selected one. IF the item is the selected call the default owner draw function to clear the area with orange. Here is an example on how ...

Tuesday, February 20th 2018, 8:56am

Author: SEGGER - Schoenen

vnc emwin problem

Hi, I can't reproduce the issue. What do mean with calibration? Regards Sven

Tuesday, February 20th 2018, 8:55am

Author: SEGGER - Schoenen

[Multi touch] GUI_MTOUCH_StoreEvent() causing Hard Fault

Hi, I have attached some configurations for different multi touch controller. You can use them as a reference. WM_GESTURE_Enable(1) and GUI_MTOUCH_Enable(1) can be called right after GUI_Init(). Depending on your application it can be necessary to switch the gesture support on and of. Regards Sven