Page 2 of 23

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

Posted: Fri Dec 22, 2023 8:14 pm
by wombats
Wow, thank you! Merry Christmas.

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

Posted: Fri Dec 22, 2023 8:30 pm
by GoodNPlenty
Thank You Fred and team for a wonderful Christmas surprise. Merry Christmas to all! :D

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

Posted: Fri Dec 22, 2023 8:30 pm
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.

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

Posted: Fri Dec 22, 2023 8:59 pm
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/... ?

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

Posted: Fri Dec 22, 2023 9:28 pm
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

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

Posted: Fri Dec 22, 2023 9:37 pm
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!

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

Posted: Fri Dec 22, 2023 9:41 pm
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

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

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

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

Posted: Fri Dec 22, 2023 9:46 pm
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.

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

Posted: Fri Dec 22, 2023 9:58 pm
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 :?:

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

Posted: Fri Dec 22, 2023 10:13 pm
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$())

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

Posted: Fri Dec 22, 2023 10:17 pm
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

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

Posted: Fri Dec 22, 2023 10:49 pm
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

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

Posted: Fri Dec 22, 2023 11:12 pm
by netmaestro
Yippee!! Thanks team!

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

Posted: Fri Dec 22, 2023 11:50 pm
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.