Search Results

Search results 1-18 of 18.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Quote from LexaGb: “Hello, yes, I think it is the good way, but in case your LISTBOXes' default callbacks are changed by custom callbacks, also be sure to check these callbacks. Alex. ” Yes, I already did so, I check both callbacks for DROPDOWN - original and my own. There is no redefined callbacks for LISTBOXes in my project.

  • Quote from LexaGb: “Hello, maybe something like this C Source Code (108 lines)In case you want just to focus on dropdown in closed state there you can do easier: if (focusedWindow == DROPDOWN_GetListbox(hDropdown)) focusedWindow = hDropdown; without using fw_is_listbox variable. Alex. ” Hello, Alex. I have many dialog windows in my project each of them may contain DROPDOWN-widget or not. Also I have a popup window (also dialog-window), that can appear at any time if some non-GUI issue occurs, wi…

  • Quote from SEGGER - Schoenen: “Hi, I gave it a try, but on my end it is working. Which emWin version are you using? Regards, Sven ” It works well since 5.4x, if lower (5.38) then it has above mentioned wrong behaviour.

  • Hello. Very usual conditions: There is a FrameWindow with some widgets, one of them is DROPDOWN (in attached sample there is only a single DROPDOWN - for simplify). And there is a dedicated key (in attached sample it is SHIFT-key) for calling another window (for example MessageBox). If this window being closed then the control and focus should return to the widget, from which this window was called. So, if press a key while a DROPDOWN-widget is in opened state (opened by SPACE-key), then after r…

  • Quote from LexaGb: “Hello, try this code. It is for 800x600 screen example. C Source Code (35 lines)Alex. ” LexaGb, you are simply the best. These three lines of code give so elegant solution of this problem, that I have no words. It is the best solution of this issue without using any callbacks and so on. Thank you very much.

  • Quote from MikeFlyersFan: “Sven had told me in another thread I opened to try this (although at the time I was trying to use both hardware layers of the lcd controller in my mcu, but I put that aside for now) Add a callback function to your frame window, see if it works? Source Code (8 lines)” I already tried this way, it gives black background, but not transparent. I tested it on simulator. P.S. There is a way presented by SEGGER, see file ALPHA_TransparentDialog.c (folder Sample\Tutorial), but…

  • MULTIPAGE - Change Tab Color?

    volodymyr - - emWin related

    Post

  • Hello. How to make transparent dialog box (transparent background of client window), created by GUI_CreateDialogBox? I used for it the functions WM_SetTransState and WM_SetHasTrans but they give no effect. C Source Code (18 lines)Should I do something in callback-function of FrameWindow? I succeeded to create a window with the transparent background only via WM_CreateWindowAsChild , but I need dialog window (with key TAB).

  • MULTIPAGE - Change Tab Color?

    volodymyr - - emWin related

    Post

    Quote from MikeFlyersFan: “Hi, Is there a way to change the background color of the MULTIPAGE tab? I'm able to change the tab font without issues, and the background color of the dialog box attached to the tab... but the tab itself always has a white background? (see the attached picture) ” Hello. I already solved this. I wrote callback-function for multipage like this: Source Code (22 lines)

  • Quote from LexaGb: “Hello, check the attached code. There are two checkboxes in a window (320 * 240), and one of them changes its skin frame and gradient colors when got the focus and returns default skin colors when lost the focus. Simply call CreateWindowChckBx() from your main() or whatever you are using. Alex. ” Thanks, Alex, your sample is perfect and solves my problem.

  • Hello. I have dialog window (FRAMEWIN) with a set of widgets on it, there are BUTTON's, EDITBOX'es, also there are some CHECKBOX widgets. For navigate between widgets TAB-key is used. I would like to do following: If one of CHECKBOX-widgets got focus (is selected), I would like to change skin of it - change gradient colors of its box for better visual perception that it has got focus, and return back old skin if it has lost focus. But for this purpose there is no appropriate function, there is o…

  • Hello. I write an application with many dialog windows, some of them have nested dialog windows etc. Every such window has the own callback function to react on some keys. Also this application should have a general menu, that should be called by pressing a dedicated hardware-key (for examble GUI_KEY_BACKSPACE) from everywhere, independent of currently opened window or its sub-window. One way is to add to every callback-function of correspondent window a code of reacting to this GUI_KEY_BACKSPAC…

  • Hello. 1) I have converted TTF-font for visualisation of cyrillic symbols (UTF-codepage). Also I used at program start a routine GUI_UC_SetEncodeUTF8() for correct visualisation of cyrillic symbols. It works well. But if I use "input text" widgets EDIT or MULTIEDIT then after switching MS-Windows to cyrillic keyboard layout they both show extended ASCII-letters instead of cyrillic, despite that font table does contain cyrillic letters. See picture for understand the problem. Starting text at lef…

  • Hello. In the documentation (ch. 19.1.4) is described: Default configuration All widgets also have one or more configuration macros which define various default settings such as fonts and colors used. The available configuration options are listed for each widget in their respective sections later in the chapter. And for each widget there is a table named "Configuration options", where are described default values for various macro. For example (19.7.1): * Type * Macro * Default * Description * …

  • Hello. How to get info if the DROPDOWN-widget is in open state? I need it for handle various behaviour after pressing GUI_KEY_ENTER in closed or open state. Regards, Volodymyr.

  • Hello. Thank you for the answer. I tried to run your code, but it gives on line 11 the following runtime error: Unhandled exception thrown: read access violation. pData was 0x1. However followindg code runs OK: Source Code (22 lines) Thus I have one question - how to get xPos, yPos of current selected item of menu?

  • Hello. In all versions of emWin until 5.46 (including) the functionality of MENU widget was realized in following way: If to the root menu are added some hierarchical levels of submenus (for example, the depth of hierarchy is 5 of even more), then all nested submenus, beginning from third level, are placing on the screen overlapped previous submenu level. This gives a good and useful possibility to make many-level hierarchical tree of menu, where all its submenus are placed on the screen with fu…