Search found 318 matches

by Dreamland Fantasy
Thu Mar 28, 2024 2:21 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 107692

Re: PureBasic 6.10 LTS is out !

Awesome! I will be downloading this when I get home later. :D

Kind regards,

Francis
by Dreamland Fantasy
Sat Mar 23, 2024 12:33 am
Forum: Off Topic
Topic: PureBasic icon
Replies: 11
Views: 3658

Re: PureBasic icon

BarryG wrote: Sat Mar 23, 2024 12:20 am Old thread about the PureBasic logo -> https://www.purebasic.fr/english/viewto ... 97#p437997
I was sure that it had been discussed before, but doing a search for "PureBasic" and "icon" brought up too many other posts.

Kind regards,

Francis
by Dreamland Fantasy
Fri Mar 22, 2024 10:20 pm
Forum: Off Topic
Topic: PureBasic icon
Replies: 11
Views: 3658

Re: PureBasic icon

Caronte3D wrote: Fri Mar 22, 2024 10:04 pm It is not a Z, but three parallel lines representing the three platforms and a diagonal line as a union :wink:
Awesome! I will be looking at that icon in a new light now. :D

Kind regards,

Francis
by Dreamland Fantasy
Fri Mar 22, 2024 8:22 pm
Forum: Off Topic
Topic: PureBasic icon
Replies: 11
Views: 3658

PureBasic icon

Hi there,

This is something I've been wondering about for years, why is the PureBasic icon a stylised 'Z'?

Just curious if there is any deep meaning or reasoning behind it.

Kind regards,

Francis
by Dreamland Fantasy
Fri Mar 22, 2024 8:19 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 107692

Re: PureBasic 6.10 beta 9 is out !

Fred wrote: Fri Mar 22, 2024 9:10 am 2024-03-22: beta 9 is out for testing, it will be hopefully the last beta before final ! It brings the following changes and bug fixes:
Thanks so much for this Fred and all involved.

Kind regards,

Francis
by Dreamland Fantasy
Wed Mar 13, 2024 8:07 pm
Forum: Tricks 'n' Tips
Topic: PureBasic JSON: A Quick Tutorial
Replies: 9
Views: 5628

Re: PureBasic JSON: A Quick Tutorial


Unfortunately the way you have to do this is slightly messy, I tend to wrap it up into a macro. You have to chain calls to the JSON functions, like so:

GetJSONString(GetJSONMember(GetJSONMember(GetJSONMember(JSONValue(0), "media"), "image"), "bitmap")

I don't think that's technically ...
by Dreamland Fantasy
Wed Mar 13, 2024 12:11 am
Forum: Tricks 'n' Tips
Topic: PureBasic JSON: A Quick Tutorial
Replies: 9
Views: 5628

Re: PureBasic JSON: A Quick Tutorial

Very nice tutorial TI-994A. :) Very helpful as I'm still trying to get my head around dealing with JSON.

One thing that I'm struggling with though is how to work out how deep in the JSON hierarchy an element is so that the parent items can be worked out.

{
"media": {
"image": {
"bitmap ...
by Dreamland Fantasy
Sat Mar 02, 2024 10:39 am
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 1769

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

Fred wrote: Sat Mar 02, 2024 10:36 am Fixed. I will leave it in Windows forum as it contains useful info.
Thanks Fred! :D

Kind regards,

Francis
by Dreamland Fantasy
Tue Feb 27, 2024 12:16 am
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 1769

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

Justin wrote: Mon Feb 26, 2024 10:03 pm For me it makes more sense like this:
Yes, that certainly makes more sense. Thank you! :D

Kind regards,

Francis
by Dreamland Fantasy
Mon Feb 26, 2024 8:27 pm
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 1769

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window


You can use SetWindowPos_() to change the z order to put the frame on top once the dialog is created.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos


Thanks. I got it working using this:

UseDialogWebViewGadget()

XML_MainWindow$ = "<window id='0' name ...
by Dreamland Fantasy
Mon Feb 26, 2024 12:35 pm
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 1769

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

Ah, I see.

The issue is I'm using it as part of a Dialog structure, so I would need the frame to be defined first before the WebViewGadget.

I'll just need to revert back to using the WebGadget.

Kind regards,

Francis
by Dreamland Fantasy
Sun Feb 25, 2024 11:11 pm
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 1769

WebViewGadget inside frame freezes window

Hi there,

I've only recently downloaded the 6.10 beta and I've been taking it for a spin with a current project. I've noticed that there seems to be a bug when using the WebViewGadget within a frame as it seems to cause the window to become completely unresponsive. I can't even drag the window ...
by Dreamland Fantasy
Mon Feb 19, 2024 1:58 am
Forum: Tricks 'n' Tips
Topic: SDF 2d heart sketch
Replies: 6
Views: 1247

Re: SDF 2d heart sketch

That is so cool! Nice work! :D

Kind regards,

Francis
by Dreamland Fantasy
Mon Feb 19, 2024 1:26 am
Forum: Tricks 'n' Tips
Topic: Format bytes into kB, MB, etc.
Replies: 4
Views: 2392

Re: Format bytes into kB, MB, etc.

Hi there,

I have made an amendment to the above code as a bug was discovered when running it under PureBasic 6.10 beta 6 that didn't occur in previous versions.

The bug occurred at the exponent calculation stage if NbBytes is zero since log(0) is mathematically undefined.

Kind regards,

Francis
by Dreamland Fantasy
Tue Oct 11, 2022 1:46 pm
Forum: Coding Questions
Topic: Frame gadget with two colour title?
Replies: 3
Views: 679

Re: Frame gadget with two colour title?

Hi there,

My implementation of the code:

Enumeration
#AppendFrameTitle_Prefix
#AppendFrameTitle_Suffix
EndEnumeration

Procedure.i AppendFrameTitle(GadgetID.i, Text$, Color.l, Flag.l = #AppendFrameTitle_Prefix)

Protected.l x = GadgetX(GadgetID) + DesktopUnscaledX(9), y = GadgetY(GadgetID ...