Page 9 of 12

Re: PureBasic 6.21 beta 9 is out !

Posted: Thu May 08, 2025 7:28 am
by Joubarbe
It doesn't work, but thanks for trying! I'm going to look into it more seriously today.

Re: PureBasic 6.21 beta 9 is out !

Posted: Thu May 08, 2025 7:45 am
by marcoagpinto
@Fred !

All my menus images in PNG now appear in 16x16 instead of 32x32 with beta 9.

Both in pull down menus and pop-up menus.

Windows 11.

:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:

Re: PureBasic 6.21 beta 9 is out !

Posted: Thu May 08, 2025 8:05 am
by Joubarbe
Joubarbe wrote: Thu May 08, 2025 7:28 am It doesn't work, but thanks for trying! I'm going to look into it more seriously today.
Bug report: viewtopic.php?t=86886

Re: PureBasic 6.21 beta 9 is out !

Posted: Thu May 08, 2025 9:29 am
by Joubarbe
marcoagpinto wrote: Thu May 08, 2025 7:45 am ...
All my menus images in PNG now appear in 16x16 instead of 32x32 with beta 9.
...
Poor Fred, he's never going to see the end of this update!

Re: PureBasic 6.21 beta 9 is out !

Posted: Thu May 08, 2025 4:29 pm
by Fred
We will get there... Still better to have the report before going final !

Re: PureBasic 6.21 beta 9 is out !

Posted: Fri May 09, 2025 10:55 am
by Fred
I just pushed a new version for Windows, please download it to test the DrawText() fix

Re: PureBasic 6.21 beta 9 is out !

Posted: Fri May 09, 2025 6:22 pm
by miso
Thanks. Compiled all my major apps without issues. Drawtext 'feels' better (for my purposes) compared to the previous beta.

Re: PureBasic 6.21 beta 9 is out !

Posted: Sat May 10, 2025 11:15 am
by Joubarbe
It works now, but I still cannot ALT-F4 my game. My events are the same, and it works in 6.20.

I use BindEvent(#PB_Event_CloseWindow, @CloseTerminal(), #WINDOW_MAIN), but it never goes in CloseTerminal().

Re: PureBasic 6.21 beta 9 is out !

Posted: Sat May 10, 2025 12:12 pm
by breeze4me
Joubarbe wrote: Sat May 10, 2025 11:15 am It works now, but I still cannot ALT-F4 my game. My events are the same, and it works in 6.20.

I use BindEvent(#PB_Event_CloseWindow, @CloseTerminal(), #WINDOW_MAIN), but it never goes in CloseTerminal().
In PB 6.21, Alt+F4 does not work properly when a canvas gadget is focused. You need to use the workaround below.

Code: Select all

#WINDOW_MAIN = 0

Global Quit

Procedure CloseTerminal()
  Debug #PB_Compiler_Procedure
  
  Quit = #True
  
EndProcedure

Procedure Canvas()
  Protected et = EventType()
  
  Select et
    Case #PB_EventType_KeyDown
      modk = GetGadgetAttribute(0, #PB_Canvas_Modifiers)
      k = GetGadgetAttribute(0, #PB_Canvas_Key)
      If (modk & #PB_Canvas_Alt) And k = #PB_Shortcut_F4
        
        Debug "on canvas"
        PostEvent(#PB_Event_CloseWindow, #WINDOW_MAIN, 0)
        
      EndIf
      
  EndSelect
  
EndProcedure

If OpenWindow(0, 0, 0, 550, 220, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CanvasGadget(0, 10, 10, 450, 200, #PB_Canvas_Keyboard | #PB_Canvas_DrawFocus)
  SetActiveGadget(0)
  
  BindEvent(#PB_Event_CloseWindow, @CloseTerminal(), #WINDOW_MAIN)
  BindGadgetEvent(0, @Canvas())
  
  Repeat
    Event = WaitWindowEvent(10)
    
  Until Quit = #True
  
  CloseWindow(#WINDOW_MAIN)
EndIf

Re: PureBasic 6.21 beta 9 is out !

Posted: Sat May 10, 2025 12:31 pm
by Joubarbe

Re: PureBasic 6.21 beta 9 is out !

Posted: Wed May 14, 2025 3:49 pm
by SMaag
Wow! My respect to all members of the PB-Team and all useres actively working on the improvement of PB.
That's absolutley amazing. It shows that a small community of very professionals is able to create a really good Software product.

In the early 2000's I used Visual Basic a lot. Last time I had to change old VB Program. I was shocked by using the VB6 IDE after an abstinence of many years. There was a memory in my brain telling me, VB6 IDE was very good. Yes it was!
But compared to the PB IDE, working with VB6 feels much slower. For me, the code overwiew is better in PB.
Especally the VB6 dropdown's (for the Functionlist) can't keep up with the new PB Procedure lister (from 6.20).

Guys, keep up that way!

Re: PureBasic 6.21 beta 10 is out !

Posted: Wed Jun 04, 2025 5:07 pm
by Fred
Beta 10 is out ! The doc is now fully finished for 6.21, thanks a lot to Andre and Mesa who did an amazing job including all your suggestions ! We switched all the doc file to UTF-8, so if you notice something odds about char encoding in the doc, please tell. Also a few more bugs fixes

Bugfixes for this version:This list was created automatically. All updated bug threads from the date of the last final version have been determined.

Re: PureBasic 6.21 beta 10 is out !

Posted: Wed Jun 04, 2025 5:15 pm
by zikitrake
Very thanks to all PB Team!

Re: PureBasic 6.21 beta 10 is out !

Posted: Wed Jun 04, 2025 5:44 pm
by miso
Looking at all the fixes in all the current betas, I think 6.21 Final will be a very mature release. I will test this beta later. Thank you Fred and Team!

Re: PureBasic 6.21 beta 10 is out !

Posted: Wed Jun 04, 2025 7:48 pm
by Quin
Thanks Fred! This will be tested :)