Search Results
Search results 961-980 of 1,000. There are more results available, please enhance your search parameters.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hello Johannes, Giving the widget an ID is not essential but might be quite handy. When creating a widget you can give them an ID, e.g. with a predefined button ID: C Source Code (1 line) This will create a button as child of the desktop window. The given ID will allow us to get the button handle from any position in the application. Simply call WM_GetDialogItem(WM_HBKWIN, GUI_ID_BUTTON0) and you will get the handle of the button with this ID attached to the given dialog handle (here it is the d…
-
Hi, what color conversion are you using? Might it be possible that the alpha channel needs to be inverted? Try setting a back ground color for the text with inverted alpha channel. Either 0x00FFFFFF or 0xFFFFFFFF. This is just a guessing. If you set this color 0x00FF0000 and make a GUIClear() is the screen red or blue? If it is black try 0xFFFF0000. I'm asking this because emWin uses per default the color format ABGR, where A = 0x00 means fully opaque. emWin can be configured to the format ARGB …
-
Hi, Yes there is such an API. Please refer to chapter 11.3.5 'TrueType Font (TTF) format' of the emWin user manual (UM03001_emWin5.pdf). There you will find information regarding how to use TTF and a link to the TTF library. Further you schould check chapter 11.7.3 'TTF file related font functions' for the API description. Regards, Sven
-
Hello, Have you tried a more simple application like: C Source Code (19 lines) Regards, Sven
-
Hello, We have already a suitable driver for your display. Take a look here: segger.com/emwin-guidrv-sh-mem.html You need to set up the interface for communicating with the LCD (and set function pointers which will get called by emWin) and initialize the LCD properly. Once this is done emWin will manage the data written to the LCD. Regards, Sven
-
Hello, attaching a graph widget to a LISTBOX is not that easy and might take a lot of work. You can try to create GRAPH widgets as child windows of the LISTBOX and handle the position and visibility of the GRAPH widgets either in the callback of the LISTBOX or in an owner draw function. Easier is to draw a graph on your own with the function GUI_DrawGraph(). Attached is a sample how you can do this. Regards, Sven
-
Hello, Not sure what causes a restart. Maybe you have a watchdog running and it causes the reset. Your configuration looks ok, from my point view. Depending on which HX8352 you are using, either HX8352A or HX8352B, you need a different mode. The HX8352A uses GUIDRV_FLEXCOLOR_F66712 and the HX8352B GUIDRV_FLEXCOLOR_F66715. Regards, Sven
-
Hello Henry, attached is the file (GUI_SPY_X_StartServer.c). Since RTT is already running all you need to do is adding the file to your project, configure it and call GUI_SPY_X_StartServer(). I guess you don't use a TCP connection so you have to set the define USE_TCP to 0. Inside the function GUI_SPY_X_StartServer() we create a task with embOS. Depending on the operating system (if using one) you use you have to adapt this, too. Regards, Sven
-
Hi, No, there is nothing like a GUI_DeleteLine(). You have to overwrite the line with the background color to make it invisible. I would use the window manager for this. With the window manager you need to redraw just the window which should draw the lines. This might be something you are looking for: C Source Code (169 lines) Regards, Sven
-
Hello Ivo, Unfortunately, the items are no numbers they are all strings. But you can receive the text of an item of the LISTVIEW widget with the function LISTVIEW_GetItemText(). Setting the text for an item can be done by LISTVIEW_SetItemText(). You can use sprintf() to save the number into a string and then write it into an item. Regards, Sven
-
Hi Mark, Interesting project. Of course you need to call a GUI_Delay(). A GUI_Delay() does a lot more than just waiting for specific time. It updates all invalid windows, handles touch input, etc. But it doesn't do anything OS related. On an embedded system you would have a GUI_X_embOS.c which defines a set functions. These functions call OS related functions. For example: When calling a GUI_Delay() at some point a GUI_X_Delay() will be called and this function calls an OS_Delay(). In the simula…
-
Hi, To be clear, the sample application from our website is working? Have you changed the text which should be displayed? The problem might be that the characters you want use are not inluded in the sample. The character set is limited to the characters required by the original application. The function GUI_UC_EnableBIDI() doesn't 'know' anything about rendering a font. It simply turns bidirectional language support on or off, depending on the parameter passed (1 - on, 0 - off). Regards, Sven
-
Hi, This depends very much on your application. Take a look into the manual at chapter Chapter 37 'Performance and Resource Usage'. There is an explanation about how much resources the diffrent modules of emWin do require. 2MB should be enough and most applications will work with this. EDIT: There are also functions to get the number of used bytes and the number of free bytes. GUI_ALLOC_GetNumFreeBytes() and GUI_ALLOC_GetNumUsedBytes() Regards, Sven
-
Hi, You can enable automatic use of memory devices by calling WM_SetCreateFlags(WM_CF_MEMDEV). Call this function before GUI_Init() so the desktop window (WM_HBKWIN) can make use of the memory devices, too. Here is a simple sample which does almost what you want. I use a window for the drawing operation and an animation for calculating the y-position for the ellipse. The filling process starts on a button press. C Source Code (180 lines) Regards, Sven