Page 14 of 17
Re: PureBasic 5.70 LTS beta 2 is out !
Posted: Mon Oct 22, 2018 11:33 am
by Poshu
SparrowhawkMMU wrote:+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!
Mmmh... Microsoft thinks it's perfectly fine :
ERROR_SUCCESS is one of their staple error messages.
Re: PureBasic 5.70 LTS beta 2 is out !
Posted: Mon Oct 22, 2018 12:40 pm
by Little John
Poshu wrote:SparrowhawkMMU wrote:+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!
Mmmh... Microsoft thinks it's perfectly fine :
ERROR_SUCCESS is one of their staple error messages.
For many years, Microsoft also thought that it would be fine that Windows users had to click at a button named "Start" in order to
end a session.

Re: PureBasic 5.70 LTS beta 2 is out !
Posted: Mon Oct 22, 2018 12:55 pm
by Dude
Nah, the "Start" button has always meant "start an action", and one such action is to shut down the PC. Sorry.

Re: PureBasic 5.70 LTS beta 2 is out !
Posted: Mon Oct 22, 2018 3:32 pm
by #NULL
Yes, starting to begin to shutdown the computer is appropriate for Windows because with all the updates it might take a while.

Re: PureBasic 5.70 LTS beta 2 is out ! Bug trackbar gadget
Posted: Fri Nov 09, 2018 5:03 pm
by Martin Verlaan
Found a bug in qt mode:
Code: Select all
OpenWindow(0, 0, 0, 320, 200, "TrackBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TrackBarGadget(0, 10, 40, 250, 20, 0, 0)
SetGadgetAttribute(0, #PB_TrackBar_Minimum, 5)
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum)
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum)
Debug "--------------"
SetGadgetAttribute(0, #PB_TrackBar_Maximum, 10)
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum)
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum)
Debug "--------------"
SetGadgetAttribute(0, #PB_TrackBar_Minimum, 1)
Debug "TrackBar_Min = " + GetGadgetAttribute(0, #PB_TrackBar_Minimum)
Debug "TrackBar_Max = " + GetGadgetAttribute(0, #PB_TrackBar_Maximum)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
After setting #PB_TrackBar_Maximum, #PB_TrackBar_Minimum gets the value of #PB_TrackBar_Maximum and vice versa!. Hopefully this can be fixed very soon.
Re: PureBasic 5.70 LTS beta 2 is out ! Bug trackbar gadget
Posted: Fri Nov 09, 2018 8:09 pm
by #NULL
Martin Verlaan wrote:Found a bug in qt mode:
I copied that to a bug forum:
viewtopic.php?f=23&t=71700
Re: PureBasic 5.70 LTS beta 2 is out !
Posted: Tue Nov 13, 2018 6:07 pm
by SparrowhawkMMU
Fred wrote:I will change the constant from Error to Status. What do you mean by not supported on OS X ? I tried it here and it worked, could you tell me how you tested it ?
Hi Fred, sorry for the confusion - I was basing this on a comment earlier in the thread, not from having tested it myself. i still have not been able to commit any time to actually do that, as the project I am on is about to go live next Monday and in the best tradition of large scale corporate software deliveries the world over, we are cutting it very fine indeed
As soon as all that calms down and I manage to get some time for non-work coding, I will try out the new PB features on the Mac.
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Mon Nov 19, 2018 11:10 pm
by Fred
beta 3 is out ! The doc for the new commands is now finished feel free to check it, and the usual bugs fixes.
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 2:05 am
by Blue
Thank you Fred — and other members of the development team — for this new update.
Much appreciated.
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 9:02 am
by RSBasic
Thank you!

Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 9:29 am
by Martin Verlaan
Thanks for this update! Although I was really hoping that the QT TrackbarGadget Min/Max bug was fixed in this new release, but it still exists.
http://forums.purebasic.com/english/vie ... 23&t=71700
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 9:34 am
by useful
in a number of beta versions will be validating environment for QT-subsystem in checkinstall.sh ?

Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 10:23 am
by Fred
The idea was to put the doc online earlier to get reviewed and translated, we will fix more bug soon.
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 10:55 am
by RSBasic
Good idea
Re: PureBasic 5.70 LTS beta 3 is out !
Posted: Tue Nov 20, 2018 11:44 am
by Marc56us
In help, forgot third parameter (Flag) for HTTPInfo() ?
Without #PB_UTF8 accents not ok
See my sample
viewtopic.php?f=13&t=71760
Code: Select all
Debug "HTTPInfo = " + HTTPInfo(HR, #PB_HTTP_Response)
HTTPInfo = {"Caractères accentués": "é è à "}
Code: Select all
Debug "HTTPInfo = " + HTTPInfo(HR, #PB_HTTP_Response, #PB_UTF8)
HTTPInfo = {"Caractères accentués": "é è à"}

So in the absence of #PB_UTF8, it is not UTF-8 by default (unlike other PB commands) but it may be wanted because of the HTTP standard ?

Perhaps we should put it as a remark in the help.
Result = HTTPInfo(HttpRequest, Type)
Result = HTTPInfo(HttpRequest, Type[, Flag]) ?
IDE StatusBar show the good syntax:
HTTPInfo(HttpRequest, Type [,Flag]) - Get info from HTTP request.
