Tuesday, January 23rd 2018, 8:28am UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 469.

Yesterday, 4:46pm

Author: SEGGER - Schoenen

Updating to version 5.42.9 made my listboxes background transparent

Hi, Yes, this is a bug in this version and is already fixed in newer versions. As a workaround you can set the has-trans flag by calling WM_SetHasTrans(hWidget) where hWidget is the handle of the LISTBOX. The next release of the KEIL MDK package will contain the bugfix for this. Regards Sven

Thursday, January 18th 2018, 4:24pm

Author: SEGGER - Schoenen

TREEVIEW - not selecting

Hi, Have tried to reproduce the issue but everything is working as intended. Here is the part how I pass the usb data forward to emWin: 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 static void _OnMouseChange(USBH_HID_MOUSE_DATA * pMouseData) { static GUI_PID_STATE State; int xSize; int ySize; xSize = LCD_GetXSize(); ySize = LCD_GetYSize(); State.Layer = 0; State.x += pMouseData->xChange; if (State.x > xSize) { State.x = xSize; } else if (State.x < 0) { State.x = ...

Thursday, January 18th 2018, 10:50am

Author: SEGGER - Schoenen

Monitoring Memory Block (GUI_ALLOC_AssignMemory) Usage

Hi, Yes, you might try the following functions: GUI_ALLOC_GetMaxUsedBytes() - Returns the peak of the used bytes GUI_ALLOC_GetNumFreeBytes() - Returns the current number of free bytes GUI_ALLOC_GetNumUsedBytes() - Returns the current number of bytes used Also there are two undocumented functions which return the number of used and free blocks: GUI_ALLOC_GetNumUsedBlocks() GUI_ALLOC_GetNumFreeBlocks() Regards Sven

Wednesday, January 17th 2018, 1:56pm

Author: SEGGER - Schoenen

STemWin-Support for GUIDRV_LIN_OS_1

Hi, I can't say why GUIDRV_LIN_OS_1 is not available. In general it was already available with version 5.32. As far as I know ST offers also a more recent version of emWin, but I'm not sure if it is also available for the CM0 devices. Quoted Could this be changed in the next release? Unfortunately, we are not responsible for building these libraries. I suggest to contact STM directly. Quoted Is there an easy workaround for this? I don't think there is a solution if the driver is not present (alt...

Wednesday, January 17th 2018, 1:48pm

Author: SEGGER - Schoenen

Hardfault, STM32F7, Depending on the freamebuffer placement

Hi, Where ist the GUI memory placed (take a look into GUIConf.c)? Is it in the internal or external RAM? If it is in the external RAM you should make sure that it doesn't overlap with the framebuffer. Regards Sven

Friday, January 12th 2018, 3:03pm

Author: SEGGER - Schoenen

MULTIPAGE SROLLBAR issue

Hi, Unfrotunately, this is not possible with the automatic scrollbar. I think you have to disable the automatic scrollbar and attach your own scrollbar (to get full acces to the scrollbar) and handle scrolling on your own. Regards Sven

Friday, January 12th 2018, 2:25pm

Author: SEGGER - Schoenen

TREEVIEW - not selecting

Hi, which versions of emWin are you using? How do you pass touch to emWin? Make sure the up event (from the touch controller) gets passed to emWin with the coordinates as the last down event. Not sure if this solves the issue, but it is related to other issues in combination with pressing/clicking something. Regards Sven

Friday, January 12th 2018, 2:14pm

Author: SEGGER - Schoenen

How to Make Window Transparent Again?

Hi, You might try the code below. With the case WM_SET_FOCUS the window will be able to accept the focus and invalidates itself. Since the window was created with WM_CF_HASTRANS the background gets manager by the window below (WM_HBKWIN). In WM_PAINT we check if this window has the focus, if it has we clear it with white. If it doesn't has the focus we do simply nothing, the area gets drawn by the bk window. 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 2...

Wednesday, January 10th 2018, 3:37pm

Author: SEGGER - Schoenen

LISTVIEW_GetSel() function always returning 0 after vertical scrollbar has been moved.

Hi, I checked your application, but I couldn't find anything obvious. I modified it a little bit to be able to let in run in the simulation (deleting unknowns), but it was working. I always get the proper selection, no matter if I use the scrollbar. Attached is my modified version. Not sure if this will help, but did you tried to increase the emWin memory (most likely in GUIConf.c)? Regards Sven

Wednesday, January 10th 2018, 2:10pm

Author: SEGGER - Schoenen

LISTVIEW_GetSel() function always returning 0 after vertical scrollbar has been moved.

Hello Pete, I have tried to reproduce this but it is working on my side. I have tested with the latest version of emWin as well as with V5.40. Here is the code I have used for testing: 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 1...

Monday, January 8th 2018, 2:34pm

Author: SEGGER - Schoenen

Question about restarting GUI in multi-task system

Hi, Is the define GUI_OS set to 1 in GUIConf.h? Did you implemented the functions GUI_X_InitOS(), GUI_X_Unlock(), GUI_X_Lock(), GUI_X_GetTaskId() properly? Where exactly does it crash (check how far you get when stepping into the code)? Is the test UI task still running after GUI_Exit()? I think it should also be terminated because it's calling GUI functions. Also, we recommend to call GUI_Exec() from only one task (GUI_Exec() gets called indirectly from GUI_Delay()). Regards Sven

Monday, January 8th 2018, 2:27pm

Author: SEGGER - Schoenen

MULTIPAGE_IsPageEnabled index

Hi, Did you disabled the second page at one point? I'm asking because a page will return true when calling MULTIPAGE_IsPageEnabled(), even though it is currently not shown. Maybe MULTIPAGE_GetSelection() is what you should use. If you don't want to update the TEXT widget if page 1 is not visible you should also place the TEXT_SetText() call into the if condition, like: C/C++ Source code 1 2 3 4 5 6 7 if (MULTIPAGE_GetSelection(hMultipage0) == 1) { HAL_RTC_GetTime(hrtc, &sTime, FORMAT_BIN); HAL_R...

Monday, January 8th 2018, 11:40am

Author: SEGGER - Schoenen

ListView Swipe.

Hi, Attached is an example on how you could scroll the LISTVIEW by touching any where into the LISTVIEW. Although, the scroll bar is hidden we still use its value to scroll up and down. But this way it is not possible to accelerate the LISTVIEW and let it scroll to its end (like a menu on a mobile device). You might also try the SWIPELIST widget, but it is more like a menu and doesn't multiple columns. Regards Sven

Monday, January 8th 2018, 10:23am

Author: SEGGER - Schoenen

Modal Window

Hi, Unfortunately, this is not possible and there is no easy solution. You might try to work with WM_DisableWindow() and disable all windows which should not become any input any longer. But WM_DisableWindow() will cause most of the widgets to be drawn differently so you will have to manage this on your own, too. Regards Sven

Thursday, January 4th 2018, 4:58pm

Author: SEGGER - Schoenen

Button problem

Hi, I have modified my last example (attached). The buttons are created as child windows of the window with the callback _cbMenu(). Simply add a case WM_NOTIFY_PARENT to _cbMenu() and check which child sends the message. On button press the text in the background window gets changed. Regards Sven

Thursday, January 4th 2018, 3:00pm

Author: SEGGER - Schoenen

Button problem

Hi, maybe like this (see attachment). Regards Sven

Thursday, January 4th 2018, 2:42pm

Author: SEGGER - Schoenen

Button problem

Hi, So, you got a menu(1) with a button for each program. If you add a program from another(?) menu the first menu(1) should get an additional button? Regards Sven

Thursday, January 4th 2018, 2:15pm

Author: SEGGER - Schoenen

Button problem

Hi, So you want to create some buttons in a menu and want to react on button press? Attached is simple application which has 'menu' (which is nothing more than a window with some buttons). When pressing a button a TEXT widget displays which button has been pressed. Regards Sven

Thursday, January 4th 2018, 1:38pm

Author: SEGGER - Schoenen

Notification from SWIPELIST

Hi, Do you get the release event with other widgets like a button? If not, how to you pass touch events to emWin? Make sure you pass the up event from the touch controller with the same coordinates as the last pressed event to emWin. Regards Sven

Wednesday, January 3rd 2018, 3:28pm

Author: SEGGER - Schoenen

Notification from SWIPELIST

Hi, Attached is a short example on how to react on the swipelist notifications. The WM_NOTIFICATION_SEL_CHANGED doesn't realy makes sense so I left it out. If you want to react on it simply add another case to the callback function. WM_NOTIFICATION_SEL_CHANGED gets only send if the pointer input (or touch) leaves the selected item. Regards Sven