Search Results

Search results 1-20 of 23.

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

  • Hi, I was doing some experimentation with the custom skinning callback function for button. In my code, I write like the following:- case WM_INIT_DIALOG: hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_B0); BUTTON_SetSkin(hItem, _CustomSkin); And inside the custom skinning function, I write: int _CustomSkin(const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo) { int Id; switch (pDrawItemInfo->Cmd) { case WIDGET_ITEM_DRAW_BACKGROUND: Id = WM_GetId(pDrawItemInfo->hWin); switch (Id) { case ID_BUTTON_B0: swit…

  • Button skinflex

    Lullaby - - emWin related

    Post

    int _ButtonCustomSkin(const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo) { int Id; switch (pDrawItemInfo->Cmd) { case WIDGET_ITEM_DRAW_BACKGROUND: Id = WM_GetId(pDrawItemInfo->hWin); switch (Id) { case ID_BUTTON_B0: /* Set button color here using GUI_SetColor() */ break; } default: BUTTON_DrawSkinFlex(pDrawItemInfo); break; } return 0; } Try this code snippet..

  • Button skin flex issue

    Lullaby - - emWin related

    Post

    In the code snippet, the default: case should be for the outer switch. That was a mistake. Please check now.

  • SkinFlex Buttons

    Lullaby - - emWin related

    Post

    Hi, As far as I understood, setting skinflex properties for a button is a global property. Even though, we pass the specific button handle to WM_Invalidate(hB0);, it will change the global skinning properties of the buttons. If you are in same window having different buttons, you can use the BUTTON_SetSkin() function passing the handle of the item and pointer to custom draw function. BUTTON_SetSkin(hB0, _ButtonCustomSkin); int _ButtonCustomSkin(const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo) { swit…

  • Button skin flex issue

    Lullaby - - emWin related

    Post

    Hi, Saw this new query in the forum. forum.segger.com/index.php?page=Thread&threadID=5015 Yeah. This is the kind of issue we also face. Only thing is our application has several UI screens, in which some of them are virtual screens and we do have different buttons possessing different skin properties.. Please do help us to sort out this button issue during day night mode implementation. We are still waiting for your reply. Thank you, Lullaby

  • Hi all, Please refer our earlier post Query on automatic color inversion We have implemented a design for day/night mode feature in our application. The main bottleneck is struggling with button skinning properties. In our application, different types of buttons exists - Some set of coloured buttons - eg: showing red colour for high priority, yellow for medium/low priority - behaviour should be the same for day/night mode. Some set of buttons exists in popup windows - whose skin is different fro…

  • Dear all, Are there any inputs for my query? Or if there is no direct support from Graph widget, is there any indirect way to do this? Please share your thoughts on this. We are blocked now. Thank you, Lullaby

  • Dear all, Are there any inputs for my query? Thank you, Lullaby

  • Hi, We have a XY graph widget. Is there any way to make only the horizontal grid lines visible? We have seen the API:- GRAPH_SetGridVis(). But this would make both horizontal and vertical grid invisible. We only require vertical grid to be invisible and horizontal grid to be visible. Looking forward to hear from you, Thank you, Lullaby Dayal

  • Hi, We are having a XY graph in which our grids are visible now. We are now blocked in one of our design requirements. Is there any way to make the rightmost grid (Starting point) to be invisible? Eagerly waiting for your inputs, Thank you, Lullaby Dayal

  • Hi all, We have a problem in which we need to keep track of the emWin UIs actively displayed in screen from an external thread. All the handles of widgets/child windows created inside a window are available only inside corresponding window.c file (eg:- static declarations). Only available input to this UI tracking thread is index of each virtual windows (There would be a mapping between each windows and index returned by GUI_GetOrg()) and information regarding each widget in a window and their c…

  • Regarding emSecure

    Lullaby - - General

    Post

    Hi all, We are analyzing how to use password hashing and storing of hashed password in an encrypted file. I found emSecure to be package for digital signatures, but can be used for encryption as well. Can emSecure be used for password hashing and encryption? Our platform is STM32F4 based. Thank you, Lullaby Dayal

  • emwin to be used with emload

    Lullaby - - emWin related

    Post

    Hi all, We are analysing the possibility of showing a minimal emwin based UI from our boot loader. Our platform is STM32F429 based with CMSIS Keil RTX running. We are using the Graphics component available with Keil middleware MDK and is running some UK screens from our application successfully. Now we are planning to use emload loader in order to support some sort of firmware upgrade. During the process, we require a UK screen to be displayed in our LCD screen to show the progress of our upgrad…

  • Gradient effect in Window

    Lullaby - - emWin related

    Post

    Dear all Can we implement gradient effect in a window? I have checked the skinning feature section in emwin user manual, but skinning of window is missing there, but a framewin is present. My requirement is to implement gradient as well as skinning effect for a window. If at any case, this is not supported directly, can you suggest any mechanism by which we can implement this feature indirectly. Please share your valuable thoughts on this. Thank you, Lullaby

  • Hi Sven, I understood the point. Still I am looking for the possibility of using virtual screen plus some other method to implement the same. When I was going through the emwin user manual, accidentally noticed a feature called "Transparency". "A window that has transparency contains areas that are not redrawn with the rest of the window. These areas operate as though the window behind "shows through" them. In this case, it is important that the window behind is redrawn before the window with tr…

  • Dear all, We would like to know if emWin supports design of resolution tolerant UI screens. Currently we are using 7" LCD, supporting resolution 800*480. We are curious to know the things to be taken care while designing such a UI that can be easily portable across multiple resolutions (with very minimal effort) as well as even LCD dimensions are changed (say, 10"). Some obvious points may be:- 1. Use relative positioning (instead of hard-coded position values) for all widgets. 2. Use macros for…

  • Dear all, I am trying to experiment a feature - My application is having a home screen and a couple of configuration screens. Home screen has a portion displaying some parameter values at the top and option to switch to various configuration screens (on button press. These buttons are placed as a row at the bottom of the home screen.) In all of my configuration screen, I need the top and bottom portion of the home screen to be retained as such. The center portion of the configuration screen defi…

  • Automatic color inversion

    Lullaby - - emWin related

    Post

    Hi Sven, Understood the point. Tried out the sample program as such. Suppose if my application has multiple screens and my button for day/night mode transition is present in home screen only, can any of these methods be used to color invert all of the screens with a simple button press? From a layman point of view, for the second case, we may need the handle of all the widgets (present in every screen) at the home screen button callback and set the skinning properties manually for each and every…

  • Button query - Solved

    Lullaby - - emWin related

    Post

    Hi Sven, Thank you very much for your response. The example code which you shared is working fine on my PC simulator :) . Thank you. Lullaby

  • Button querie

    Lullaby - - emWin related

    Post

    Hi Sven, Thank you very much for your response. I shall try out the same code and shall let you know the results soon. Thank you, Lullaby