PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 8 9 [10]
 91 
 on: January 24, 2021, 04:40:18 PM 
Started by jermy - Last post by jermy
Hi Paul,

I noticed that the image manager crashes WinFbe when you select File...
maybe my WinFBE installation is damaged ?.

 92 
 on: January 24, 2021, 01:29:59 PM 
Started by VANYA - Last post by Paul Squires
Thanks for the
Paul!

There are 2 problems:

1) Not a mistake, rather a request. The Image Manager window is small in width for the Russian interface (the last button is not visible). Is it possible to make this window expandable?
2) It seems to me to be a mistake. I will attach a short video to make it clearer (both problems are shown in it)

Thanks for the reports. I have added these issues to be fixed for next update.

 93 
 on: January 24, 2021, 01:27:40 PM 
Started by VANYA - Last post by Paul Squires
I realized that while drawing (including images) needs to be completely hand-written in code. Hopefully Paul finds the time and willingness to place the CGraphCtx control among other controls in WinFBE. Thanks again for the answers!
Thanks, your request has been added to my to do list.

 94 
 on: January 24, 2021, 01:26:47 PM 
Started by Paul Squires - Last post by Paul Squires
Thanks VANYA, russian file added for next update release.

 95 
 on: January 23, 2021, 09:35:51 AM 
Started by VANYA - Last post by VANYA
Paul!

There are 2 problems:

1) Not a mistake, rather a request. The Image Manager window is small in width for the Russian interface (the last button is not visible). Is it possible to make this window expandable?
2) It seems to me to be a mistake. I will attach a short video to make it clearer (both problems are shown in it)

 96 
 on: January 23, 2021, 09:23:59 AM 
Started by Paul Squires - Last post by VANYA
Updated russian localization file

 97 
 on: January 23, 2021, 01:55:24 AM 
Started by VANYA - Last post by VANYA

In the Examples/CGdiPlus folder there are several hundred examples that use GDI+ with the graphic control.

So, I already have done my job.

Yes, good work.

I realized that while drawing (including images) needs to be completely hand-written in code. Hopefully Paul finds the time and willingness to place the CGraphCtx control among other controls in WinFBE. Thanks again for the answers!

 98 
 on: January 22, 2021, 05:27:14 PM 
Started by VANYA - Last post by Josť Roca
> This means that in the visual editor WinFBE users are deprived of an easy way to create a work surface and draw something on it. I understand correctly?

WinFBX has a graphic control that allows to draw using GDI, GDI+ and even OPENGL.

See: https://github.com/JoseRoca/WinFBX/blob/master/docs/Graphics/CGraphCtx%20Class.md

In the Examples/CGdiPlus folder there are several hundred examples that use GDI+ with the graphic control.

So, I already have done my job.

 99 
 on: January 22, 2021, 04:05:39 PM 
Started by VANYA - Last post by VANYA
Thanks for the answers!

What you can do is to save the memory bitmap to file with one of the SaveBitmapAsxxx methods and then load it to the image control.

This is extremely ineffective when animating a drawing dynamically.
 
This means that in the visual editor WinFBE users are deprived of an easy way to create a work surface and draw something on it. I understand correctly?
If this is the case, then this is certainly upsetting, because I was very happy with how easy it is in WinFBE to interact between the created controls.
Everything is done so well that almost all the work is done by WinFBE, all that remains is to add a few lines of event handling code.

Of course, it won't be difficult to create your own drawing surface right in the code (for example, the same Static control).
And draw on it without any problems using GDI or GDI+ (e.g. by timer), as well as send Bitmap GDI there directly using SendMessage (STM_SETIMAGE).
I confess I thought that in WinFBE | WinFBX this is how  is implemented, but it looks like some other method is applied there.

For example:

Code: [Select]
dim shared as HWND winStatic

Function frmMain_Load( ByRef sender As wfxForm, ByRef e As EventArgs ) As LRESULT 
    winStatic = CreateWindowEx(WS_EX_CLIENTEDGE, "static", 0, WS_CHILD Or WS_VISIBLE Or SS_ICON, 10,10,150,150, sender.hWindow , Cast(HMENU,1), 0, 0)
    Using GDIPLUS
    Dim ULONG_PTR_01 AS ULONG_PTR
    DIM GDIPLUSSTARTUPINPUT_01 AS GDIPLUSSTARTUPINPUT
    GDIPLUSSTARTUPINPUT_01.GdiplusVersion = 1
    IF (GDIPLUSSTARTUP(@ULONG_PTR_01, @GDIPLUSSTARTUPINPUT_01, NULL) <> 0) THEN
      PRINT "FAIL"
    EndIf
    Function = 0
End Function

''
''
Function frmMain_Timer1_Elapsed( ByRef sender As wfxTimer, ByRef e As EventArgs ) As LRESULT
    Dim As PVOID GPIMAGE_01 , GpGraphics , GpGraphics2
    Dim pen As GpPen Ptr
    GdipCreateFromHWND( winStatic ,@GpGraphics2)
    GdipCreateBitmapFromScan0(150,150, 0, PixelFormat32bppARGB, NULL, @GPIMAGE_01)
    GdipGetImageGraphicsContext(GPIMAGE_01,@GpGraphics)
    GdipCreatePen1(&hFF0000FF,3,Unitpixel,@pen)
    GdipDrawLine(GpGraphics,pen , 5, 5, 140, 140)
    GdipDrawImage(GpGraphics2,GPIMAGE_01,0,0)   
    GdipDeletePen(pen)
    GdipDeleteGraphics(GpGraphics)
    GdipDeleteGraphics(GpGraphics2)
    GdipDisposeImage(GPIMAGE_01) 
    Function = 0
End Function

Also, GDI and GDI + images can be easily converted to each other using GdipCreateHBITMAPFromBitmap , GdipCreateBitmapFromHBITMAP.

Josť, Paul , I hope in the future you will supplement the editor with some element for dynamic drawing, and dynamic loading of images directly from memory.


 100 
 on: January 22, 2021, 02:11:03 PM 
Started by VANYA - Last post by Paul Squires
Thanks Jose, appreciate the answer. :-)

Pages: 1 ... 8 9 [10]