Mmmh... Microsoft thinks it's perfectly fine : ERROR_SUCCESS is one of their staple error messages.SparrowhawkMMU wrote:+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!
PureBasic 5.70 LTS is out !
Re: PureBasic 5.70 LTS beta 2 is out !
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PureBasic 5.70 LTS beta 2 is out !
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.Poshu wrote:Mmmh... Microsoft thinks it's perfectly fine : ERROR_SUCCESS is one of their staple error messages.SparrowhawkMMU wrote:+1 It's a status code, not necessarily an error code. It would be odd to check for Error Code = 200 OK!
Re: PureBasic 5.70 LTS beta 2 is out !
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 !
Yes, starting to begin to shutdown the computer is appropriate for Windows because with all the updates it might take a while.
-
- Enthusiast
- Posts: 133
- Joined: Sun Apr 01, 2018 11:26 am
Re: PureBasic 5.70 LTS beta 2 is out ! Bug trackbar gadget
Found a bug in qt mode:
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.
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
Re: PureBasic 5.70 LTS beta 2 is out ! Bug trackbar gadget
I copied that to a bug forum:Martin Verlaan wrote:Found a bug in qt mode:
viewtopic.php?f=23&t=71700
- SparrowhawkMMU
- User
- Posts: 44
- Joined: Fri Jan 17, 2014 8:55 pm
- Location: UK
Re: PureBasic 5.70 LTS beta 2 is out !
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 indeedFred 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 ?
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 !
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 !
Thank you Fred — and other members of the development team — for this new update.
Much appreciated.
Much appreciated.
Last edited by Blue on Tue Nov 20, 2018 9:44 am, edited 1 time in total.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
"Oh! I see..." replied the blind man.
-
- Enthusiast
- Posts: 133
- Joined: Sun Apr 01, 2018 11:26 am
Re: PureBasic 5.70 LTS beta 3 is out !
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
http://forums.purebasic.com/english/vie ... 23&t=71700
Last edited by Martin Verlaan on Tue Nov 20, 2018 9:42 am, edited 1 time in total.
Re: PureBasic 5.70 LTS beta 3 is out !
in a number of beta versions will be validating environment for QT-subsystem in checkinstall.sh ?
Dawn will come inevitably.
Re: PureBasic 5.70 LTS beta 3 is out !
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 !
In help, forgot third parameter (Flag) for HTTPInfo() ?
Without #PB_UTF8 accents not ok
See my sample viewtopic.php?f=13&t=71760
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.
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": "é è à"}
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.