PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by wombats »

Wow, thank you! Merry Christmas.
GoodNPlenty
Enthusiast
Enthusiast
Posts: 112
Joined: Wed May 13, 2009 8:38 am
Location: Arizona, USA

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by GoodNPlenty »

Thank You Fred and team for a wonderful Christmas surprise. Merry Christmas to all! :D
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Fred »

STARGÅTE wrote: Fri Dec 22, 2023 7:49 pm Many thanks Fred. I'm very happy about the new functions. CustomSortList() :shock: .
However, did I something wrong or are there no documentations for the new function in the beta version?
The doc will be available later when the new commandset is frozen.
User avatar
STARGÅTE
Addict
Addict
Posts: 2226
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by STARGÅTE »

Fred wrote: Fri Dec 22, 2023 8:30 pm
STARGÅTE wrote: Fri Dec 22, 2023 7:49 pm Many thanks Fred. I'm very happy about the new functions. CustomSortList() :shock: .
However, did I something wrong or are there no documentations for the new function in the beta version?
The doc will be available later when the new commandset is frozen.
Ok. But then it is difficult to test the new beta.
What should be the return value for the compare procedure in CustomSortList()? Only True/False or -1/0/1 ?
For what is the Flag in CompareStructure/CompareArray/... ?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Lebostein »

Fred wrote: Fri Dec 22, 2023 6:14 pm Added: #PB_EventType_ColumnClick for ListIconGadget()
Added: ListIconGaget() column alignment support
I've been waiting 10 years for this! This really is a great Christmas surprise. Many thanks Fred! Merry Christmas! :D :D :D :D :D
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by pamen »

Excellent!
most of the new functionality is what I was struggling with for the last 6 months and writing (it seems) unnecessary native code.
Thank you Fred!
S.T.V.B.E.E.V.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by User_Russian »

Thank you very much. You added a lot of useful function.
Fred wrote: Fri Dec 22, 2023 6:14 pmHere is a small WebView example to get you started.
It’s strange, but it says that the gadget is uninitialized. Win 10 x64. PB x64.

Image
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by plouf »

So now that XP dropped whats the minimum version OFFICIALLY required ? Win7/8/10 ?
Christos
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by User_Russian »

plouf wrote: Fri Dec 22, 2023 9:42 pm So now that XP dropped whats the minimum version OFFICIALLY required ? Win7/8/10 ?
Fred wrote: Fri Dec 22, 2023 6:14 pm

Code: Select all

Removed: Windows XP support. Minimum supported version is now Windows Vista.
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by the.weavster »

User_Russian wrote: Fri Dec 22, 2023 9:41 pm It’s strange, but it says that the gadget is uninitialized. Win 10 x64. PB x64.
Ah... I wonder if that's why I'm getting an Invalid Memory Access error on line 47, because it's an attempt to bind an event to an uninitialized gadget :?:
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by Little John »

Many thanks, Fred and Freak :!: And Merry Christmas to all :!:
STARGÅTE wrote: Ok. But then it is difficult to test the new beta.
Absolutely.
STARGÅTE wrote: What should be the return value for the compare procedure in CustomSortList()? Only True/False or -1/0/1 ?
I played a little bit, and the following seems to work :-) (note that PB 6.10 has 3 new #PB_Sort_* constants):

Code: Select all

; PB 6.10 beta 1

EnableExplicit

Macro NewElement (_list_, _element_)
   AddElement(_list_) : _list_ = _element_
EndMacro

Macro ShowList (_list_)
   ForEach _list_
      Debug _list_
   Next  
EndMacro

Procedure.i Compare (*x1.String, *x2.String)
   If *x1\s < *x2\s
      ProcedureReturn #PB_Sort_Lesser
   ElseIf *x1\s > *x2\s
      ProcedureReturn #PB_Sort_Greater
   Else
      ProcedureReturn #PB_Sort_Equal
   EndIf   
EndProcedure


NewList a$()

NewElement(a$(), "ghi")
NewElement(a$(), "xyz")
NewElement(a$(), "ghi")
NewElement(a$(), "abc")

ShowList(a$())
Debug "------"
CustomSortList(a$(), @Compare(), #PB_Sort_Ascending)
ShowList(a$())
Debug "------"
CustomSortList(a$(), @Compare(), #PB_Sort_Descending)
ShowList(a$())
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by plouf »

User_Russian wrote: Fri Dec 22, 2023 9:46 pm
plouf wrote: Fri Dec 22, 2023 9:42 pm So now that XP dropped whats the minimum version OFFICIALLY required ? Win7/8/10 ?
Fred wrote: Fri Dec 22, 2023 6:14 pm

Code: Select all

Removed: Windows XP support. Minimum supported version is now Windows Vista.
intresting, since as i understand webviewgadget is edge's WebView2 , which requires windows 7 afaik and thats an older version
Christos
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by User_Russian »

Fred wrote: Fri Dec 22, 2023 6:14 pmAdded: Parent window support to all requesters
What does this mean? Unclear.

Fred wrote: Fri Dec 22, 2023 6:14 pmAdded: 'Encoding' optional parameter to OpenPreference()
How to use it?
ini file (ascii encoding).

Code: Select all

Ключ = значение
Key = value
pb file

Code: Select all

Debug OpenPreferences("Test.txt", 0, #PB_Ascii)
Debug ReadPreferenceString("Ключ", "")
Debug ReadPreferenceString("Key", "")
Result of executing this code

Code: Select all

280

value
But the result must be

Code: Select all

280
значение
value
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by netmaestro »

Yippee!! Thanks team!
BERESHEIT
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by wombats »

User_Russian wrote: Fri Dec 22, 2023 10:49 pm
Fred wrote: Fri Dec 22, 2023 6:14 pmAdded: Parent window support to all requesters
What does this mean? Unclear.
ColorRequester, InputRequester, FontRequester, OpenFileRequester, PathRequester (Did I miss any?) now have a ParentID parameter so you can set which window you want to be the requester's parent.
Post Reply