Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Fri Dec 22, 2023 8:14 pm
Wow, thank you! Merry Christmas.
http://www.purebasic.com
https://www.purebasic.fr/english/
The doc will be available later when the new commandset is frozen.STARGÅTE wrote: Fri Dec 22, 2023 7:49 pm Many thanks Fred. I'm very happy about the new functions. CustomSortList().
However, did I something wrong or are there no documentations for the new function in the beta version?
Ok. But then it is difficult to test the new beta.Fred wrote: Fri Dec 22, 2023 8:30 pmThe doc will be available later when the new commandset is frozen.STARGÅTE wrote: Fri Dec 22, 2023 7:49 pm Many thanks Fred. I'm very happy about the new functions. CustomSortList().
However, did I something wrong or are there no documentations for the new function in the beta version?
I've been waiting 10 years for this! This really is a great Christmas surprise. Many thanks Fred! Merry Christmas!Fred wrote: Fri Dec 22, 2023 6:14 pm Added: #PB_EventType_ColumnClick for ListIconGadget()
Added: ListIconGaget() column alignment support
It’s strange, but it says that the gadget is uninitialized. Win 10 x64. PB x64.
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 pmCode: Select all
Removed: Windows XP support. Minimum supported version is now Windows Vista.
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 gadgetUser_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.
Absolutely.STARGÅTE wrote: Ok. But then it is difficult to test the new beta.
I played a little bit, and the following seems to workSTARGÅTE wrote: What should be the return value for the compare procedure in CustomSortList()? Only True/False or -1/0/1 ?
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$())
intresting, since as i understand webviewgadget is edge's WebView2 , which requires windows 7 afaik and thats an older versionUser_Russian wrote: Fri Dec 22, 2023 9:46 pmplouf 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 pmCode: Select all
Removed: Windows XP support. Minimum supported version is now Windows Vista.
What does this mean? Unclear.
How to use it?
Code: Select all
Ключ = значение
Key = value
Code: Select all
Debug OpenPreferences("Test.txt", 0, #PB_Ascii)
Debug ReadPreferenceString("Ключ", "")
Debug ReadPreferenceString("Key", "")
Code: Select all
280
value
Code: Select all
280
значение
value
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.