Search found 1021 matches

by blueb
Mon Apr 15, 2024 1:01 pm
Forum: Coding Questions
Topic: Debug mode execution speed can vary on source whitespace.
Replies: 12
Views: 582

Re: Debug mode execution speed can vary on source whitespace.

Quin wrote: Sun Apr 14, 2024 3:17 pm This code just straight up crashes on my AMD Ryzen 5950x :shock:
Runs fine on my AMD Ryzen 5900x

C compiler 8.98ms
ASM compiler 13.10ms

whitespace made no difference
by blueb
Wed Apr 03, 2024 2:06 pm
Forum: Coding Questions
Topic: Dual Support PB604 and PB610 Identification
Replies: 14
Views: 582

Re: Dual Support PB604 and PB610 Identification

Code: Select all

;Is 32/64Bit
If SizeOf(Integer) = 8
     Debug "64-bit system (x64)"
ElseIf SizeOf(Integer) = 4
     Debug "32-bit system (x86)"
Else 
     Debug "Something wrong here."
EndIf

by blueb
Tue Mar 26, 2024 1:55 pm
Forum: Coding Questions
Topic: ListIcons: color of selected row, can be set?
Replies: 4
Views: 233

Re: ListIcons: color of selected row, can be set?

Maybe Infratec's sample will help... :) ;================================================================== ; ; Author: Infratec ; Date: September 22, 2017 ; ; Question: ; The code below shows the centre item is slightly coloured. ; Is there any way to get it to be the same as when selected by the m...
by blueb
Tue Mar 26, 2024 1:47 pm
Forum: Coding Questions
Topic: IMA error with ExamineIPAddresses(#PB_Network_IPv4)
Replies: 9
Views: 306

Re: IMA error with ExamineIPAddresses(#PB_Network_IPv4)

That's odd.. shouldn't it work with your VPN running? :?:
by blueb
Tue Mar 26, 2024 1:34 pm
Forum: Coding Questions
Topic: IMA error with ExamineIPAddresses(#PB_Network_IPv4)
Replies: 9
Views: 306

Re: IMA error with ExamineIPAddresses(#PB_Network_IPv4)

Just tried it using my VPN at 3 different locations... 10.17.18.78 Peru 10.10.18.236 Ecuador 10.14.18.206 Uruguay everything seems fine. Procedure.s _rpc_get_server_ip() Define.i IP Define.s ip$ = "" If ExamineIPAddresses(#PB_Network_IPv4) Repeat IP = NextIPAddress() ; *** Invalid Memory A...
by blueb
Thu Mar 21, 2024 12:39 pm
Forum: Tricks 'n' Tips
Topic: Color Button using API [Windows]
Replies: 4
Views: 480

Re: Color Button using API [Windows]

Hmmm, am I the only one with a problem. I can't seem to get the font to change. Procedure colorBUTTON(gad,w,h,font.s,fsize,text.s,tcolor) LoadFont(0,font,fsize) CreateImage(gad,w-6,h-8,32,#PB_Image_Transparent) StartVectorDrawing(ImageVectorOutput(gad)) MovePathCursor(10,10) AddPathCircle(10,10,5) V...
by blueb
Wed Mar 13, 2024 11:04 pm
Forum: Coding Questions
Topic: File picker gadgets in native PureBasic?
Replies: 17
Views: 600

Re: File picker gadgets in native PureBasic?

Hmm.. works fine here.
by blueb
Thu Feb 22, 2024 8:25 pm
Forum: Coding Questions
Topic: Item Height in a ComboBoxGadget
Replies: 3
Views: 147

Re: Item Height in a ComboBoxGadget

Thanks Shardik and Rashad.

I thought I'd have to dip into the Windows API... but they work great.

I've added both to my arsenal... funny the topic hasn't come up more often, especially with higher resolution screens (I have a 4k monitor).

Thanks again, very useful stuff.
by blueb
Thu Feb 22, 2024 2:32 pm
Forum: Coding Questions
Topic: Item Height in a ComboBoxGadget
Replies: 3
Views: 147

Item Height in a ComboBoxGadget

Quick question... concerning the list of items inside a ComboBoxGadget(). I can make the ComboBox height any size I need, but I couldn't find a way to alter the default height of the items inside the list. (it's for a touch tablet, and the default is way too small for fingers. haha). Any pointers? I...
by blueb
Tue Feb 06, 2024 1:02 pm
Forum: Coding Questions
Topic: PB 6.10 beta 5 #PB_Any return value type changed?
Replies: 17
Views: 1187

Re: PB 6.10 beta 5 #PB_Any return value type changed?

No, it never returned a long. It returned an integer which by luck was fitting into a long on x64. #PB_Any returns a real memory pointer, that's why it's always been integer (and not long). To have more info about the new linker memory default setting: https://learn.microsoft.com/en-us/cpp/build/re...
by blueb
Wed Jan 10, 2024 1:38 pm
Forum: General Discussion
Topic: Source too big for the free version
Replies: 31
Views: 2952

Re: Source too big for the free version

Micro$oft have a different pricing policy for Asian / third word countries , like india, vietnam, Thailand, Philippine, malaysia, , indonesia, sirilanka, japan,singapore and so on... the average monthly income for the people there maybe less than 100~200€ , a 79€ maybe difficult for them to save up...
by blueb
Mon Jan 01, 2024 3:43 pm
Forum: General Discussion
Topic: PureBasic is a Great Programming Language with Limited Resources
Replies: 18
Views: 2169

Re: PureBasic is a Great Programming Language with Limited Resources

Maya wrote: Sun Dec 31, 2023 9:18 pm
I'm just wondering why?
I really feel so sad, that such great tool has a very limited training resources!

Image
Here's another book for you (with some source code)

https://www.purebasic.fr/english/viewtopic.php?t=58232
by blueb
Mon Jan 01, 2024 2:51 pm
Forum: Off Topic
Topic: Happy New Year 2024 !
Replies: 23
Views: 2878

Re: Happy New Year 2024 !

Happy New Year to all PuerBasic members (and the TEAM)! :D