Search Results

Search results 1-20 of 62.

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

  • MULTIPAGE tab scroll bar size

    volodymyr - - emWin related

    Post

    Hello. Maybe there is a solution to increase size of these two arrows, but I solved it in other way, without these arrows at all. 1. I used two-level MULTIPAGE hierarchy - each tab has own sub-tabs collection. 2. I used "accordeon"-view for all tabs (this was my own implementation). The hight of tabs can be increased as wished.

  • GUIBuilder unreliable

    volodymyr - - emWin related

    Post

    Quote from SEGGER - Florian: “But please note that since the release of AppWizard, the GUIBuilder is an obsolete tool. ” Hello Florian. I have tested AppWizard and did not find any possibility to work with standard "old"-fashioned widgets like MULTIPAGE, DROPDOWN, LISTVIEW etc. Also I tried to use new widget SWITCH. I've put an element with SWITCH_CreateIndirect to the "dialog create"-array , but it is invisible after creating dialog window. Source Code (9 lines) Best regards, Volodymyr.

  • Hello. I use GRAPH for showing some value. What is right way to rescale a curve that represents this value? I would like to use Min and Max values (EDIT-widgets) to set a vertical range of this value to show it on a graph only inside this range. If the deviation of value gets smaller I would like to see this deviation and decrease range. If the deviation increases again then I manually change Min-Max and would like to rescale already existing graph-curve of value. How to do it? I know there are …

  • BUTTON - wrapped text

    volodymyr - - emWin related

    Post

    Thank you Alex. Your advices are perfect as always.

  • creating virtual qwerty keypad

    volodymyr - - emWin related

    Post

    Quote from sridhar6994: “why in keypad I cant able to change the default position of the cursor ” What do you mean "change the default position of the cursor"? What kind of cursor? Cursor of keypad? It should not have any cursor. It contains only buttons. If you mean the cursor of editable widget (EDIT or MULTIEDIT) so you should think in such manner, that you don't have a screen keypad, but only hardware keyboard. What you will do in this way, exactly you should do if you have screen keypad - i…

  • Focus on Radio button

    volodymyr - - emWin related

    Post

    Hi. There is a bug in emWin - if the size of text is greater than size of round radio-button, then the rectangle around the first element of this radio-button will not drawn. To avoid this situation increase the size of radio (it is possible only if you use SkinFlex props and it will be applied for all radiobuttons, thus place this code somewhere in your "init" code): RADIO_SKINFLEX_PROPS radioProps; U8 rbSize = 36; RADIO_GetSkinFlexProps(&radioProps, RADIO_SKINFLEX_PI_PRESSED); radioProps.Butto…

  • BUTTON - wrapped text

    volodymyr - - emWin related

    Post

    Hello. How to make wrapped text of BUTTON-widget? Or I should make separate widget TEXT for it?

  • Hi. Here is a sample of such keypad: forum.segger.com/index.php/Thr…new-function-from-v-5-50/

  • creating virtual qwerty keypad

    volodymyr - - emWin related

    Post

    Quote from sridhar6994: “HI Volodymyr, Thanks for your fast response. I will check what you said and post my results. Thanks R Sridhar ” You can get my sample code of virt. keyboard from this thread: forum.segger.com/index.php/Thr…-new-function-from-v-5-50

  • SPINBOX - strange behaviour

    volodymyr - - emWin related

    Post

    Quote from SEGGER - Florian: “It should be "Id == GUI_ID_BUTTON0" instead of "Id = GUI_ID_BUTTON0" ” Thanks, Florian.

  • Hello. I found the issue with the function WM_SetUntouchable. Conditions: 1. There is a window bottomWin, it contains the button, that creates new window newWin, which fully overlaps bottomWin. 2. newWin contains a button that creates two new small derWin_1 and derWin_2. After creating of them the newWin should be untouchable until windows derWin_1 and derWin_2 will be closed. The windows derWin_1 and derWin_2 both should can receive PID-events: - one of them is the window (derWin_1) with some e…

  • creating virtual qwerty keypad

    volodymyr - - emWin related

    Post

    Hello. Yes, you can create virtual keypad. It can be a window with set of buttons on it, and every button by clicking on it should send correspondent key using function GUI_StoreKeyMsg() or GUI_SendKeyMsg(). I suppose there is no ready-to-use virtual keypad, you have to write this. My own experience: 1. It is better if every button on the virtual keypad will be unfocusable, use for this purpose the function BUTTON_SetFocussable(hButton, 0). 2. In emWin 5.50 there is a new function WM_SetUntoucha…

  • SPINBOX - strange behaviour

    volodymyr - - emWin related

    Post

    Hello. I would like to understand if there is the strange behaviour of SPINBOX or I do something wrong. In attachment - source code (on base of demo-code of SPINBOX-widget). I have added a BUTTON (id GUI_ID_BUTTON0) for disable/enable SPINBOX-widget (id GUI_ID_SPINBOX2) by its cklicking. But If you run this sample you will see, that the state disable/enable of this SPINBOX-widget is changed by cklicking on every widget, even from itself. The code of enable/disable by pressing BUTTON starts from …

  • Quote from SEGGER - Florian: “the routine WM_IsEnabled() returns 1 if a window is enabled and 0 if it is not. ” Yes, thanks, I did not find it.

  • Hello. How to get the status whether the window is enabled or disabled? In emWin there is the function WM_SetEnableState(WM_HWIN hWin, int State) , but I think there lacks the opposite function like WM_IsEnabledState(), that should return this current "enabled/disabled" state of window. Or I did not find it?

  • Quote from SEGGER - Florian: “just add a button to your dialog with the non-focusable widgets and hide it using WM_HideWindow() ” Hi Florian. Thank you, it really helped.

  • Hello again. There is a next issue with a non-focusable page (page, that does not contain focusable widgets) of MULTIPAGE. It concerns using the keyboard. A simple example demonstrates this issue. Using the keyboard (keys "PgUp", "PgDown"): 1. Go to the Page 1 (using key "PgUp"). 2. Open the Dropdown list using key "Space". 3. Press key "PgDown" to select next page. Press it again. As you see, there is no keyboard reaction because the MULTIPAGE has lost focus... Question: How to avoid this issue…

  • Quote from SEGGER - Florian: “yes, this is doable. ” Hi Florian. Your way is not usable for me because I create multiple nested MULTIPAGEs (several MULTIPAGEs inside each of tab of top MULTIPAGE, see pictures), so I do not use the WINDOW handle of each nested MULTIPAGE, I am working only with and inside MULTIPAGE's callbacks. By the way, this above mentioned issue with MULTIPAGE concerns not only to the color. If there is a page with no focusable element and if this page is selected, but the key…

  • Quote from SEGGER - Florian: “About your question, when a new page is selected, a WM_NOTIFICATION_VALUE_CHANGED will be sent and the selection will be changed via MULTIPAGE_SelectPage(). ” Hi Florian. Is there a way to get a message about new selected page from assigned callback-function of MULTIPAGE-widget, not from callback of its parent window? Or how can I fix this issue with color of focused object, what is the best way?

  • Hello. I found the issue of MULTIPAGE-widget. If some page does not contain any focusable element (for example only TEXT or disabled all widgets) there is a coloring issue: if to return from this page to other page which contains the focusable element(s) then this focusable widget will not have a "focusable" color. A simple example demonstrates this issue. If you select page 1, then select page 2 and then select page 1 again you will see that no one button is colored as focused. This issue is pr…