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.

  • Dear all I created a child window and I called GUI_Clear() in WM_PAINT of the parent window hoping that it would clear the background of the child window. What happens is the parent window gets cleared leaving a hole in the place where the child window is. Why child window preserves what was drawn by the grandparent? Thanks

  • Hi Sven Thanks for the quick reply. To answer your question whether there is a specific reason why I want to draw the pixel without WM_PAINT, it is simply because I'd like to draw a simple x-y graph without the overhead of GRAPH widget and to add 'pinch-and-zoom' capability. Hence I created a window in which I drew x-y axes and now I want to start filling the window with x, y data. Simple as that and yet seems not possible? Cheers

  • Dear all All I want to do is draw a pixel calling GUI_DrawPixel anywhere in the code. It works only in the window WM_PAINT. However every call outside the WM_PAINT isn't drawing any pixels even though I make sure I call WM_InvalidateWindow. Is there some kind a trick I'm misisng? Thanks

  • Please help!

    mjanas10 - - emWin related

    Post

    Any more info on that please? I would like X axis to start from StartValue and end at EndValue. Thanks

  • Dear all How to check which checkbox has been selected when it's embedded as a child of SWIPELIST parent? Thanks

  • Dear all How to force window to invalidate itself such that it jumps to WM_PAINT? I have been trying to invalidate windows such that a different button is displayed depending which window I find myself in. For example, I have a top window and a bottom window. Inside the top window there are child windows. If I select TopChild1 then different buttons should appear at the bottom window. I managed to get that to work only once. That is thanks to WM_GET_ID with which I communicate from the TopChild1…

  • Dear all Having this quick question: how to toggle the background colour of a skinned button? Where shall I change the colour: in the WM_NOTIFICATION_RELEASED of the pertinent window callback or in the button skin callback itself? Could you provide a different example than the WIDGET_ButtonRound, please? Thanks

  • Dear all Thanks very much for the brilliant support. This time I'm wondering if you come across the situation where by selecting an element from a dropdown box, the click impacts the background widgets. I tried disabling and then enabling background window but that is not working either, as shown below. case ID_DROPDOWN: { switch(NCode) { case WM_NOTIFICATION_SEL_CHANGED: { WM_DisableWindow(pMsg->hWin); DROPDOWN_Collapse(pMsg->hWinSrc); WM_EnableWindow(pMsg->hWin); break; } } break; } Any clues?…

  • Dear all How to make the Font size change using the same button skin? Thanks

  • Skinning EDIT widget?

    mjanas10 - - emWin related

    Post

    Dear all Is it possible to skin the EDIT widget? On that topic, how to make one callback for skinning that would apply to all widgets? Thanks

  • Dear all How can I pass a text to a common skinning callback without having to check what widget it has been? I would like to do it without using: - globals - WM_GetId(); - <WIDGET>_GetUserData to get, for example, the index Thanks very much for support so far

  • Dear all Would you be so kind as to help me understand why number of free blocks increases when number of free bytes decreases, please? I'm updating GUI via GUI_Delay. Then I'm checking the memory status as follows: while (true) { GUI_Delay(1); lgGUIFreeBytes = GUI_ALLOC_GetNumFreeBytes(); lgGUIUsedBytes = GUI_ALLOC_GetNumUsedBytes(); lgGUIFreeBlocks = GUI_ALLOC_GetNumFreeBlocks(); lgGUIUsedBlocks = GUI_ALLOC_GetNumUsedBlocks(); } What I've noticed is that by opening a new window, with edit widg…

  • Dear all GUI_MessageBox pops up but does not disappear when I hit OK, any idea? Thanks

  • GRAPH Scale - start offset

    mjanas10 - - emWin related

    Post

    Dear all Regarding GRAPH widget, is it possible to start the x-axis from 200 and stop at 800? Do I need YT or XY graph? Thanks

  • How to get the window ID?

    mjanas10 - - emWin related

    Post

    Dear all A very simple question, how to get the ID of a window rather than its handle? Thanks

  • Dear all Trying to print characters I've created with a Font Converter but they ain't displayed in EDIT widget. They are being displayed in a BUTTON widget though. Any ideas? Thanks

  • Re-initialising DIALOG???

    mjanas10 - - emWin related

    Post

    Dear all Is it possible to reinitialise Dialog such that WM_INIT_DIALOG message is sent again? Basically what I want to do is create a dialog, then hide it and then reopen it with new init params. Thanks

  • Changing the parent on the go?

    mjanas10 - - emWin related

    Post

    Dear all Is it possible to change the parent of a child on the go? For example, I'd define one unique child window for a keyboard and hide it. Then I'd show it for a chosen parent. Thanks

  • File System

    mjanas10 - - emWin related

    Post

    Dear all Is it possible to customise CHOOSEFILE dialog such that more buttons or extra columns could be added? If not what the best way to create a custom file system dialog as shown in the attached picture? Best regards Thanks

  • FONT - more detail please!

    mjanas10 - - emWin related

    Post

    What I'm doing prior to that and which I hadn't shown is set the foucs on the edit widget to make sure it gets the key input. So I am printing but in the edit box. All characters are being printed apart from '!, ", euro sign'.