Search Results

Search results 21-38 of 38.

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

  • BMPCvt Bug?

    HaJoCC - - emWin related

    Post

    Oh,yes. Sorry. Brainbug... Best regards, HaJo

  • BMPCvt Bug?

    HaJoCC - - emWin related

    Post

    Hello Adrian ! I try to convert PNG to "best palette with transparency" as RLE8 compressed. Doing this inside the converter works fine. Trying that with the command line generates: static GUI_CONST_STORAGE GUI_LOGPALETTE _Pal59 = { 256, // Number of entries 1, // Has transparency NULL }; NULL should be _Colors59[0]... (which is the value doing it manually - convert and saveas) My commandline: BmpCvtST.exe 59.png -convertintotranspalette -saveas59.c,1,7,1 -exit Any suggestions? Best regards, HaJo

  • Get coordinates of dialog item

    HaJoCC - - emWin related

    Post

    Hello Adrian, yes, of course. The windows manager... It is easy. I did not try WM_GetWindowOrgX and Y with the dialog item handle. That´s it. hItem = WM_GetDialogItem(pMsg->hWin, ID_IMAGE_0); xpos = WM_GetWindowOrgX (hItem); Best regards, HaJo

  • Get coordinates of dialog item

    HaJoCC - - emWin related

    Post

    Hello Adrian, how do I get the x/y coordinates of a dialog item? (Values set in IMAGE_CreateIndirect...) I get the handle by WM_GetDialogItem. Must be simple but I do not find it... Best regards, HaJo

  • O.K. I kicked out the PNG-function due to lack of memory in combination with memdev. Now I am able to use memory device for the complete window. No flicker anymore. Most icons used have less than 256 colors with transparency, so no problem. All other pictures with more colors will be implemented as C-file (compressed) in flash. External files from SD will be DTA (True color with ALPHA). This all works fine. PNG-functions need too much memory. As you said, all these drawing routines will now be t…

  • Hello Adrian, I will now move all paint actions to WM_PAINT. However, the GUIBuilder puts all the Image_Set... into the INIT case. But how do I trigger the WM_PAINT again, without using the SendMessage after the RELEASED-event for changing the pictures? WM_invalidate(..) inside ..RELEASED? Or better use InvalidateRect for that smaller picture area? GUI_PNG_Draw and GIF does not work in the ..INIT case but in WM_PAINT. So that is fine. Should I use the GUI_PNG_Draw instead of Image_SetPNG to chan…

  • Hello Adrian, I checked some samples, but I think, I did not get the invalidation idea. Sample WM_Redraw: Invalidate forces the window to be redrawn (by GUI_Exec or in GUI_Delay), right? But I like the changes to be drawn in one screen update. In my App hwin= GUI_CreateDialogBox... is followed by while(1) GUI_Delay(1000) The event is the touch event. As you said, I should not do any drawings then, otherwise they will be visible as two paint actions with flicker. Where do I have to put the new Se…

  • Hello Adrian, it should also be possible to load GIFs (or PNG) via the Ex-function in juctions from FLASH by modifying the _GetData accordingly... Is that right? It only makes sense for large files to reduce the RAM usage. The GUIBuilder copies the original file data to the c-file. Using memcpy to copy the requested bytes to the buffer should work. Best regards, HaJo

  • Hello Adrian, so I should implement a send message (WM_SendMessageNoPara(hWIn,WM_PAINT) in the WM_NOTIFICATION_RELEASED-case instead of redrawing it here diectly? Is that correct? I have to trigger WM_PAINT to draw the new GIF and text here. What about the memory device issue? Best regards, HaJo

  • Hi everyone, I would like to reduce the flickering effect when changing a background image showing a scale (190x190) and a text in front of that (as overlay). Presently I use IMAGE_SetGIF (or SetPNG) for drawing that area of a dialog window. Directly after that, a text will be updated in the middle (SetText). The drawing effect (update) is visible when using the NOTIFICATION_RELEASED message after touch event. The update of the area and the text are visible as two paint events. (The LCD driver i…

  • Hello Adrian, that is understood. The first tests were carried out without const, waisting RAM required for PNG... Best regards, HaJo

  • Stemwin Libraries 5.26

    HaJoCC - - emWin related

    Post

    O.K. Thank you.

  • Stemwin Libraries 5.26

    HaJoCC - - emWin related

    Post

    Hello Adrian ! ST just released CubeF4 with STemWin 5.26. What is the difference between STemWin526_CM4_GCC.a and STemWin526_CM4_GCC_ot.a? Best regards, HaJo

  • Hello ! Yes, I have the same "problem". 50x50px works fine with 110k for the GUI. 190x190 does not work anymore... Not enough RAM. Section 8.4 says 21k RAM for decompression only AND additional RAM for the picture + overhead 54k !? If this is true I have to check where the rest has gone... Increasing RAM for the GUI decreases RAM for the rest of the program. I found some conflicts here. Program stopps or hangs after or while creating PNG drawing (picture is too large). So it does not work anymor…

  • Hello Adrian, our assumption was right. Problem solved. No memory issue. The read back procedure is required to work properly! Now all PNGs are shown as expected. Best regards, HaJo

  • Hello Adrian ! I will check the settings but that should not be the problem. I started from the segger demo with F429i-Discovery. After GUI_Init the windowdialog.c starts instead of segger demo with only one small PNG from GUI builder 5.22. Do I have to convert the PNG with BMPconvert instead? With alpha? Or use Memdev (auto)? Could it be the read back routine (device driver)? I was able to generate transparent dialogs and the demo also runs whithout problems. Normal PNGs without transparency ar…

  • Hi ! As starting point I presently use a CreateDialog in the main task as a main screen. This dialog creates all other dialogs after touch events on different buttons. Other dialogs are also implemented as new full screens and some are only overlays (as modal child). hWin = GUI_CreateDialogBox(_aDialogCreateMain, GUI_COUNTOF(_aDialogCreateMain), _cbDialogMain, WM_HBKWIN, 0, 0); while (1) { GUI_Delay(100); } There is probably a better way. It is obviously not recommended to create too many dialog…

  • HI ! I try to use the PNG-functions in combination with Stemwin (emwin 5.22) from emwin_png as described in PDF. Compilation works fine with lib files 5.18 and 5.26 (some warnings, no errors). Normal PNGs are shown correctly (IMAGE_SetPNG). Transparent PNGs are shown with black background where transparency should be. GIF with trans work fine. I use the code generated by the GuiBuilder. Inside the builder all pictures are o.k. On ST discovery board (STM32F429i) all PNGs with transparency have th…