Search Results

Search results 1-20 of 34.

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

  • Journaling add-on

    ezio_noventa - - emFile related

    Post

    Hello, can you suggest a set of tests that could be done in order to check the effectiveness of the Journaling add-on of emFile in preserving the files integrity? Thanks, Ezio

  • Hello to everybody! I am finding troubles with GUI_SIF_CreateFont when the sif font size is larger than 64k. Some of the characters look corrupted. Is there any limitations about the font size when using GUI_SIF_CreateFont? And what exactly does GUI_SIF_CreateFont(pFontData, pFont, pFontType)? I mean, what does it do to the pFont pointer? If I compare pFontData content before GUI_SIF_CreateFont call with pFont content after GUI_SIF_CreateFont call they look identical (when GUI_SIF_CreateFont wor…

  • Memory allocation problems?

    ezio_noventa - - emWin related

    Post

    Dear Johanan, the IDE you are using should produce a textual file where some useful information about the memory allocation of your project can be found. For instace IAR generates a Project.map file in the EWARM\ST324xx...\List directory. May be a look at it could provide some suggestions. BR, Ezio

  • And why don't you delete the un-needed widgets instead of hide them? In the application I am working I have a similar kind of framework: there are windows that have to be present or absent depending on some configuration flags but these flags are known only at run time, some of them are to be read from a flash, some other are communicated by another hw module so I don't know 'a priori' what windows/widgets I need and what I do not. So when they are needed I create them, when they are not I delet…

  • Dear Craig, if your need is that of moving the focus from a window to another from my limited experience I can suggest you to explicitly set the (new) focus using the function void WM_SetFocus(WM_HWIN hWin) provided that in the newly focussed window there is a widget that is able to receive the focus. Otherwise the window is not focussable. Best regards, Ezio

  • Dear all, I am using the Font Converter in order to add some custom fonts to my application; I chose to use the antialiased version. As reported in the emWin manual I got a c file where the antialiased characters are described with this kind of variable: GUI_CONST_STORAGE unsigned char acFontSample10_0041[ 40] = { /* code 0041 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xCF, 0xF2, 0x00, 0x03, 0xFF, 0xF6, 0x00, 0x09, 0xFB, 0xFB, 0x00, 0x0E, 0xE2, 0xFE, 0x00, 0x5F, 0x90, 0xCF, 0x40, 0xBF, 0xFF, 0xFF, 0x90, …

  • timer restart

    ezio_noventa - - emWin related

    Post

    Dear all, what happens when a WM_RestartTimer() is called before the timer's expiration? I think the countdown should be stopped and restarted; is it correct? Ezio

  • timer restart

    ezio_noventa - - emWin related

    Post

    Dear all, what happens when a WM_RestartTimer() is called before the timer's expiration? I think the countdown should be stopped and restarted; is it correct? Ezio

  • Stemwin Libraries 5.26

    ezio_noventa - - emWin related

    Post

    - ot: binary generated with high speed optimization Ezio

  • Actually the behaviour is not 'regular'; sometimes I see the issue, sometimes I do not but, in order to provide an example, key=52 is a critical value. Might it be an issue of buffer overflow? I mean, do I have to use some kind of semaphore when using - GUI_StoreKeyMsg(Key, Pressed) ? what happens if I call GUI_StoreKey() before the previous call has been concluded? Do I have to put some kind of instructions like - while(GUI_GetKeyMsg()) before calling - GUI_StoreKeyMsg(Key, Pressed) ? Ezio

  • Dear all, for some (misterious to me) reasons - GUI_StoreKeyMsg(Key, Pressed) does not store the key message in the keyboard buffer for some values of the integer Key. In the documentation I read that Key "May be any extended ASCII character (between 0x20 and 0xFF) or any predefined emWin character code" but this statement is not true according to my experience. I am using that function to forward some ui events to the GUI; I have a list of about 30 events, described with an enum; for some value…

  • antialiased text

    ezio_noventa - - emWin related

    Post

    Dear Adrian, I set the text mode as transparent, but nothing changed, I set also the COLOR_CONVERSION to a mode with transparency, like GUICC_88666I, again nothing changed. May be the malfunctioning is due to the lack of "reading back functionality", as you wrote. Can you kindly clarify what you mean with that? Thanks in advance, Ezio

  • list box scrolling issue

    ezio_noventa - - emWin related

    Post

    Thanks Adrian, after some time I understood your suggestion, I have set the LISTBOX widget size such that no more and no less than seven items can be displayed, in that way the unpleasant last blank cell disappears. Ezio

  • list box scrolling issue

    ezio_noventa - - emWin related

    Post

    Thanks Adrian, but I did not understand your suggestion. The number of items that are completely visible is 7. But the total number can be much higher, can be 100 or even 1000. The problem is that if I start scrolling the lowest position I can see selected is not the last one, the seventh, it is the sixth, so when I reach the real last item of the list I see it as selected in the sixth position and there is an empty white cell in the last, seventh, position. You see the same effect with one of y…

  • list box scrolling issue

    ezio_noventa - - emWin related

    Post

    Dear all, I am designing an address book using the LISBOX widget, to make the entries visible I use a large font so no more than seven entries can be displayed; but the address book entries can be much more than seven so I set a LISTBOX_IncSel() reaction to the pressure of the down arrow button I have on the board and LISTBOX_DecSel() to the pressure of the up arrow button; correspondingly I see the items scrolling on the display, each time a new entry appears at the bottom the first entry disap…

  • antialiased text

    ezio_noventa - - emWin related

    Post

    Dear Adrian, might it be that the issue in my antialiasing attempts is due to a lack of memory? In STemWin GUI_Private.h file I found this declaration GUI_EXTERN int GUI__BufferSize; // Required buffer size in pixels for alpha blending and/or antialiasing Do you think I should to allocate that buffer within GUI_X_Config() ? Thanks, Ezio

  • slide show implementation

    ezio_noventa - - emWin related

    Post

    Dear Adrian, I did some tests using WM_MULTIBUF_Enable and actually the issue is solved. The problem is that I should avoid the allocation of two frame buffers (final design of the board should be without external sdram component) and, it seems to me, multibuffering works if and only if a second frame buffer can be allocated. Am I correct? I see that in the LCD_X_DisplayDriver function there is a LCD_X_SHOWBUFFER case, but, my question, is it used only with multibuffering? Because, may be, I cou…

  • slide show implementation

    ezio_noventa - - emWin related

    Post

    Dear all, we are trying to implement a simple slide show application where four pictures have to be displayed in a cyclic manner. We use a window with an IMAGE widget and we set the picture using IMAGE_SetDTA() function. In the main() function there is the following while(1) loop Msg.MsgId = WM_USER; slide_show_counter=0; Msg.Data.v = slide_show_counter%4; while(WM_IsVisible(hWin)) { WM_SendMessage(hWin,&Msg); slide_show_counter++; Msg.Data.v = slide_show_counter%4; GUI_Delay(2000); } so each 2 …

  • Hello Adrian, I thought that because, after a while, none of the windows callback functions captured the WM_KEY events. As if the GUI_SendKeyMsg stopped sending the event. So I tried with WM_SendMessage but the output was the same. I added a couple of WM_SetFocus() instructions and now the situation looks ok: I thought that when a window is equipped with an input widget, such as a button, were automatically able to get the focus and hence capture the WM_KEY events but that behaviour apparently c…

  • Dear all, is there a rationale behind the 'interruption of work' of GUI_SendKeyMsg and WM_SendMessage functions after a while? I use them in order to propagate events from the main function of my application, where I capture some key press events, to the STemWin graphical application, where I have several windows, each one implementing a specific function; in order to delete/hide or create/make visibile the window I need to see on the display I use the buttons available on the hardware. For some…