Wednesday, March 21st 2018, 4:05am UTC+1

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 522.

Yesterday, 4:17pm

Author: SEGGER - Schoenen

How to display "Δ" Symbol using emwin

Hi, 1. You need a font which contains the desired character (the default fonts do not contain this character so you have to create one with the Font Converter). 2. Convert the string into a UTF8 string. For the "Δ" character it is "\xce\x94". To generate it on your own create a UTF8 decoded txt file and paste the desired string into it. Then convert the txt file with U2C.exe into a c file. It will contain the UTF8 encoded "c"-string. 3. In your application enable UTF8 encoding by a call of GUI_U...

Yesterday, 4:06pm

Author: SEGGER - Schoenen

Reset graph

Hi, Simply add a value to the graph data or call WM_InvalidateWindow() with the graph handle (of course this way it will only be redrawn). Regards Sven

Yesterday, 4:03pm

Author: SEGGER - Schoenen

Attach data to graph

Hi, Try the code below. Each 25ms I create a random value and add it to the graph data. C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 #include "DIALOG.h" #include <stdlib.h> /********************************************************************* * * Defines * **************...

Yesterday, 3:38pm

Author: SEGGER - Schoenen

Keyboard work with EDIT with physical keypad only

Hi, it is not necessary for the keaboard buttons to have the focus. In the callback function of the keyboard dialog you can react on the release messages of the buttons and call EDIT_AddKey(). Regards Sven

Yesterday, 3:35pm

Author: SEGGER - Schoenen

BmpCVT color conversion

Hi, I was able to reproduce the behavior with your BMP file. This needs further investigation. If I get you right you want to convert an image (a BMP file in this case) into a 16 bit per pixel bitmap to be drawn with emWin. You don't have to use a 16 bit BMP to do so. Simply create a BMP file (e.g. with paint or GIMP) and save it with 24 bpp. Now open the BMP file with the Bitmap Converter and go to: File -> Save As -> choose: "C" bitmap file (*.c) Now you can decide between several color format...

Yesterday, 3:00pm

Author: SEGGER - Schoenen

Virtual keyboard

Hi, Not sure why it is trigger multiply times. But you might try to react on WM_NOTIFICATION_RELEASED instead of the clicked event. Regards Sven

Yesterday, 2:58pm

Author: SEGGER - Schoenen

Image size issue on button

Hi, I have no idea why the images are enlarged. Can you attached the images? From my point of view the callback function looks good. Although, the function calls of BUTTON_SetBkColor() and BUTTON_SetBitmap() are not required, since you draw the button on your own in the callback function. Regards, Sven

Yesterday, 2:52pm

Author: SEGGER - Schoenen

Custom skinning callback function for button

Hi, You should simply call WM_InvalidateWindow() with the handle of the button if the toggle variable gets changed. WM_InvalidateWindow() marks the button as invalid and it gets redrawn the next time GUI_Exec() or GUI_Delay() gets called (but don't call one these functions right after invalidating the button to it only at a central position in your application). Regards Sven

Yesterday, 2:48pm

Author: SEGGER - Schoenen

the best way to show an hourglass animation

Hi, there are several ways of implementing an hourglass in emWin. If it should stick to the cursor you could use the function GUI_CURSOR_SelectAnim(). You could use the default animated cursor (which is an hourglass) or create your own. Please refer to the API description of GUI_CURSOR_SelectAnim() in the manual. If the hourglass should be drawn somewhere on the screen you could also draw a GIF-animation using the GIF related API. A third method might be to use a sprite and draw it on the screen...

Yesterday, 2:42pm

Author: SEGGER - Schoenen

functions (not) callable by WM_PRE_PAINT

Hi, the messages WM_PRE_PAINT and WM_POST_PAINT are getting send to a window before and after a paint event. So, if you call a function like WM_CreateWindow() while reacting on one of these messages each time a window gets created. And the paint events can occur quite often. Regards, Sven

Friday, March 9th 2018, 2:07pm

Author: SEGGER - Schoenen

Virtual Screen API on STM32469I-DISCO

Hi, I'm not sure why it is not working. Does the virtual screen gets initialized properly? in LCD_X_Config() you should have a call like this: C/C++ Source code 1 LCD_SetVSizeEx(0, XSIZE_0, YSIZE_0 * NUM_VSCREENS); Further your framebuffer should be large enough, but I don't think that this is the cause of this issue. Regards Sven

Thursday, March 8th 2018, 3:13pm

Author: SEGGER - Schoenen

SPI and DMA with ILI9341

Hi, Unfortunately, I have no experience with the DMA and the SPI on PIC32MZ. Maybe others in this forum. I suggest to contact Microchip and ask them if they can help with this topic. Regards Sven

Thursday, March 8th 2018, 3:10pm

Author: SEGGER - Schoenen

LISTVIEW - Blinking cells

Hi, did you implemented the following functions properly? GUI_X_GetTime() GUI_X_Delay(int Period) The first function should return a a timer value which gets incremented each millisecond and the second should perform a delay for the given period in milliseconds. Without these functions, you can't use any timer related functions (like WM_CreateTimer()). You can either set up a hardware timer which increments a variable each ms or use the timer related API of an RTOS (like embOS). I have attached ...

Thursday, March 8th 2018, 11:57am

Author: SEGGER - Schoenen

Blinking Buttons

Hi, it is almost the same as with the LISTVIEW in your other post. But keep in mind that the BUTTON uses skinning and can not simple changes its background color. You have to set new skin properties. Please refer to the manual for more information on how you can use these properties (chapter 22.8 'BUTTON_SKIN_FLEX'). Regards Sven

Thursday, March 8th 2018, 11:51am

Author: SEGGER - Schoenen

LISTVIEW - Blinking cells

Hi, There is no need to recreate the LISTVIEW. Just create a timer and change the LISTVIEW color when the timer expires. Here is an example on how you could do it: C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 10...

Thursday, March 8th 2018, 11:38am

Author: SEGGER - Schoenen

Widget ID - retreive handle error with WM_GetDialogItem() -child window

Hi, We recommend to use unique Ids. emWin searches in the given dialog and all its child windows/widgets for the given ID. So if using the same ID in a dialog and child dialog as well, you can't really say which handle will be returned by WM_GetDialogItem(). This might work, but doesn't have to. Regards Sven

Thursday, March 8th 2018, 11:30am

Author: SEGGER - Schoenen

Giving touch functionality to buttons.

Hi, How do you pass the touch input to emWin? In general it is done by calling GUI_TOUCH_StoreStateEx() or GUI_PID_StoreState(). In most cases we create a dedicated task which polls for touch and if present pass the touch coordinates to emWin. Attached is a brief example on this can be done (it is a PIDConf.c used for the STM32F746 Discovery). Regards Sven

Thursday, March 8th 2018, 11:24am

Author: SEGGER - Schoenen

how to know anchor flags of a generic window

Hi, This function is not documented and therefore should not be used. It is just a helper for the FRAMEWIN widget. Regards Sven

Tuesday, March 6th 2018, 4:48pm

Author: SEGGER - Schoenen

text click acknowledgement

Hi, Simply call one of the TEXT create functions, like TEXT_CreateEx() and set the callback function _cbText() from my example. To set the callback function call WM_SetCallback() with the handle of the TEXT widget and the function as parameter. Regards Sven

Thursday, March 1st 2018, 3:01pm

Author: SEGGER - Schoenen

display hang

Hi, I can't say what causes this issue. I gave it a try and let run your code (except vGeneralFunction_FloatToString()) but it is running without any problems. Did you implemented the functions GUI_X_Delay() and GUI_X_GetTime() properly? GUI_X_GetTime() should return a timer variable which gets incremented each millisecond. You can set up either a hardware timer (or SystickTimer on Cortex M) or use the timer API of an operating system. GUI_X_Delay() should wait for the given time in milliseconds...