Search Results
Search results 1-20 of 30.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hi, I think you should check pX->hWin first when you call WM_SetUserData. if (pX->hWin) WM_SetUserData(pX->hWin, &pX, sizeof(WMX*)); In GUIConfig.c set memory size used by emWin: #define GUI_NUMBYTES (1024L * 32) static U32 aMemory[GUI_NUMBYTES / 4]; // // Assign memory to emWin // GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES); Regard, chensie
-
Please posting ILI9488.h
chensie - - emWin related
PostHi, You can download it from community.st.com/thread/36575-nucleo-f746zg-and-ili9488-tft I hope this is useful for you. Regards, Chensie
-
in manual 18.2.1: void Callback(WM_MESSAGE * pMsg) The action performed by the callback routine depends on the type of message it receives. The prototype above is usually followed by a switch statement, which defines different behaviors for different messages using one or more case statements (typically at least WM_PAINT). It is said: AT LEAST WM_PAINT
-
What is Handle exactly ?
chensie - - emWin related
PostHi, emWin uses his own memory management system, when we init emWin, GUI_ALLOC_AssignMemory() init it! A Window or WIDGET handle may be a Memory buffer's handle or Index something (?..., no source) and A Window or WIDGET object pointer is Object structure pointer. We can use WM_H2P ( or GUI_ALLOC_h2p() )function convert it! for example: BUTTON_Handle hWin; BUTTON_Obj * pObj; hWin = BUTTON_Create(...); pObj = (BUTTON_Obj *)WM_H2P(hWin); BUTTON_Obj is defined in BUTTON_Private.h Best Regards, Chen…
-
Window click event
chensie - - emWin related
PostHello, You may catch WM_TOUCH message in your Message callback fuction( cbOnTouch() ). void _cbOnTouch(WM_MESSAGE * pMsg) { /* old handle */ FRAMEWIN_Callback(pMsg) ; /* if You use WINDOW as main window use WINDOW_Callback(pMsg) */ switch (pMsg->MsgId) { case WM_TOUCH: /* Do your own handle */ break; } } hWin = GUI_CreateDialogBox() WM_SetCallback(hWin, _cbOnTouch);
-
Graph widget
chensie - - emWin related
PostHello If you have source of emWin, rewrite your own following function: void GRAPH__AddValue(GRAPH_DATA_OBJ * pDataObj, void * pData, void * pValue, int Size) -OR another WAY- don not use YT data by emWin, manage your own YT-Data and using void GRAPH_SetUserDraw(GRAPH_Handle hObj, void (* pUserDraw)(WM_HWIN hObj, int Stage)) callback to draw your own YT-Data . Best regards.
-
in UM03001_emWin5.pdf 38.5 : In case a precompiled emWin library is used, changing the configuration files will not have any effect until the library is compiled again with the required settings. You can use FRAMEWIN_SetBarColor() to do it. If you use skinned FrameWin, use FRAMEWIN_SetSkinFlexProps() to change!
-
Hello, The Window Manager handles keyboard input automatically. It polls the keyboard buffer and sends according keyboard messages to the currently focussed window.(UM03001_emWin5.pdf 18.2.11) The WINDOW widget (UM03001_emWin5.pdf 19.29.2) , TEXT widget (UM03001_emWin5.pdf 19.27.4) and the IMAGE widget can not gain the input focus and does not react on keyboard input. If you MUST do react on keyboard input, you can try: hWin = GUI_CreateDialogBox(.....); WM__ahWinFocus[0] = hWin;