Search found 29 matches

by Xanos
Fri Aug 31, 2018 9:47 am
Forum: Feature Requests and Wishlists
Topic: HTTP/2 + websocket
Replies: 17
Views: 7448

Re: HTTP/2 + websocket

+1
by Xanos
Fri Aug 31, 2018 9:00 am
Forum: Feature Requests and Wishlists
Topic: Improved HTTP features
Replies: 1
Views: 1216

Improved HTTP features

Hello,
I really like, that PB has decent support for retrieving data over HTTP(S). However, I think that this support could greatly be expanded.

First of all, there still seem to be some issues :
Async Downloads cause IMA: Async HTTP Download and Catching Images
Async also has problems on Mac ...
by Xanos
Thu Jun 01, 2017 3:38 pm
Forum: Coding Questions
Topic: Set ListView height to X items?
Replies: 5
Views: 2658

Re: Set ListView height to X items?

If anybody is interested. The Linux (GTK) version of h = SendMessage_(GadgetID(0), #LB_GETITEMHEIGHT, 0, 0) ist the following:
Procedure getRowHeight(gadget)
Protected height, yOffset
Protected *tree, *tree_column
*tree = GadgetID(gadget)

; https://developer.gnome.org/gtk3/stable/GtkTreeView ...
by Xanos
Thu Jun 01, 2017 8:11 am
Forum: Coding Questions
Topic: Get Unix timestamp (GMT)
Replies: 5
Views: 3326

Re: Get Unix timestamp (GMT)

Thank you both very much! :)

The Import of the time() function is perfect and so easy :)
by Xanos
Wed May 31, 2017 2:20 pm
Forum: Coding Questions
Topic: DeleteMapElement while iterating with ForEach
Replies: 6
Views: 2639

Re: DeleteMapElement while iterating with ForEach

Not using the second argument was not an option (at least not easily done), so pop & push are valid solutions for this problem :)
by Xanos
Wed May 31, 2017 1:59 pm
Forum: Coding Questions
Topic: Get Unix timestamp (GMT)
Replies: 5
Views: 3326

Get Unix timestamp (GMT)

What is the easiest way to get the (GMT/UTC) unix timestamp (seconds from 1970) in Purebasic in a crossplattform application?
The PB Date functions do not support any sort of timezone offset as far as I can see and always give the seconds since 1970 in the local timezone.
However, I need the real ...
by Xanos
Tue May 09, 2017 8:35 am
Forum: Coding Questions
Topic: Save 16 bit grayscale PNG
Replies: 1
Views: 1194

Save 16 bit grayscale PNG

Hello,

the supported formats of the image library are quite limited.
Currently, I plan to work with 16 bit grayscale images and save them as .png file.
Did anybody by any chance already worked with this in Purebasic and can point me in the right direction?
Is this at all possible with the Purebasic ...
by Xanos
Tue Mar 21, 2017 10:17 am
Forum: Coding Questions
Topic: DeleteMapElement while iterating with ForEach
Replies: 6
Views: 2639

Re: DeleteMapElement while iterating with ForEach

So in short, it is not possible to delete MapElements by stating their "Key$" in a ForEach?
Unfortunately, I have to rewrite a bunch of code to get around this in the real project (obviously not the short example code).
by Xanos
Tue Mar 21, 2017 10:08 am
Forum: Coding Questions
Topic: DeleteMapElement while iterating with ForEach
Replies: 6
Views: 2639

DeleteMapElement while iterating with ForEach

What is the best method to delete map elements while being in a ForEach map() loop?
Example code, that is not working:
Global NewMap test()

For i = 0 To 9
r = Random(100)
test(Str(r)) = r
Next


ForEach test()
Debug "check element "+MapKey(test())
If test() > 50
DeleteMapElement(test ...
by Xanos
Fri Mar 03, 2017 11:43 pm
Forum: Linux
Topic: Linker error with Dialog
Replies: 3
Views: 3026

Re: [Done] PB 5.60B3 Linker error with Dialog

V5.60 is out now but it seems the checkinstall is not up to date.
>>Everything seems correctly setup for PureBasic !<< But I still get the linker error ;)
After installing libwebkitgtk-3.0-dev I can use the dialog function again.
by Xanos
Thu Feb 23, 2017 7:54 pm
Forum: Tricks 'n' Tips
Topic: LUA - Script with PureBasic
Replies: 22
Views: 12583

Re: LUA - Script with PureBasic

Thank you very much! This is a very nice and clean module and right now I needed exactly that.
For me it is working fine with Win64. Will test Linux later this week.
Unfortunately, I also cannot test it on Mac.

//Edit (although very late): Linux is working absolutely fine as well :-)
by Xanos
Wed Feb 15, 2017 10:40 am
Forum: Coding Questions
Topic: Pass a Structured PointerList to a Procedure
Replies: 3
Views: 1268

Re: Pass a Structured PointerList to a Procedure

The function should work on any pointerList, not bound to a specific structure. That is why I asked:
How can I pass a PointerList with an arbitrary structure (.i, .s, .custom) to a procedure
by Xanos
Wed Feb 15, 2017 10:31 am
Forum: Coding Questions
Topic: Pass a Structured PointerList to a Procedure
Replies: 3
Views: 1268

Pass a Structured PointerList to a Procedure

Hi all,
I wrote a procedure that sorts StructuredPointerLists() the same as the original SortStructuredList() procedure.
Procedure SortStructuredPointerList(List *pointerlist(), options, offset, type)
However, the compiler only lets me pass *lists() that do not have any structure.
Since I do not ...
by Xanos
Wed Jan 13, 2016 7:13 pm
Forum: Coding Questions
Topic: Get Current #Window
Replies: 8
Views: 2510

Re: Get Current #Window

Thank you all for all the good input :)
by Xanos
Wed Jan 13, 2016 5:16 pm
Forum: Coding Questions
Topic: Get Current #Window
Replies: 8
Views: 2510

Re: Get Current #Window

No, this returns the #Window that currently has the keyboard focus. I want to retrieve the #Window on which a new gadget would be created when calling one of the gadget-creating procedures.

As far as I know there is no way to get this, as the current gadget list also only points to the WindowID ...