Search found 1144 matches

by Bisonte
Thu Mar 07, 2024 9:32 pm
Forum: Feature Requests and Wishlists
Topic: Map read-only or no-create-on-search states
Replies: 5
Views: 184

Re: Map read-only or no-create-on-search states

Its a question of the correct order .... NewMap xTest.s() If FindMapElement(xTest(),"foo") If xTest() = "bar" Debug "bar found" Else Debug "foo found!" EndIf EndIf In your code above, "Debug MapSize(xTest())" will show 1.... a new element was created...
by Bisonte
Thu Feb 22, 2024 8:40 am
Forum: Coding Questions
Topic: Vertically center string gadget
Replies: 5
Views: 156

Re: Vertically center string gadget

here in this post from Shardik are some links : https://www.purebasic.fr/english/viewto ... 51#p537851
by Bisonte
Thu Feb 08, 2024 8:03 am
Forum: Feature Requests and Wishlists
Topic: GetListPositionStackSize(MyList())
Replies: 4
Views: 302

Re: GetListPositionStackSize(MyList())

Interesting ! I always thought it was only possible with one element at a time.... But it seems not. NewList a() For i = 1 To 10 AddElement(a()) : a() = i Next i ForEach a() If a() > 2 And a() < 6 PushListPosition(a()) EndIf Next For i = 1 To 3 PopListPosition(a()) Debug a() Next i
by Bisonte
Tue Feb 06, 2024 7:48 am
Forum: The PureBasic Editor
Topic: Tool - Can triggers be combined ?
Replies: 6
Views: 426

Re: Tool - Can triggers be combined ?

I mean... You create a "server application". The program is started and waits... and only the parameters are evaluated when it is called again. eg. : tool.exe -newsource, tool.exe -fileactive etc. Helpful would be : https://www.purebasic.fr/english/viewtopic.php?f=40&t=58302 Sorry, but...
by Bisonte
Mon Feb 05, 2024 8:20 am
Forum: The PureBasic Editor
Topic: Tool - Can triggers be combined ?
Replies: 6
Views: 426

Re: Tool - Can triggers be combined ?

i do exactly this so that text blocks are inserted for me by allowing only one instance (by the programm) and analysing the start parameters. The first call starts the program, if it is not already started, and all further calls only give "commands" to the program. When the IDE is terminat...
by Bisonte
Thu Jan 25, 2024 7:22 am
Forum: General Discussion
Topic: Windows defender's false positives - again
Replies: 7
Views: 699

Re: Windows defender's false positives - again

Cyllceaux wrote: Tue Jan 23, 2024 5:57 pm ... this AV don't Block... ... and write a mimimi-mail to our admins...
:mrgreen: Made my day :mrgreen:
by Bisonte
Wed Jan 10, 2024 7:50 am
Forum: Feature Requests and Wishlists
Topic: PureBasic Librarian
Replies: 20
Views: 1885

Re: PureBasic Librarian

moricode wrote: Wed Jan 10, 2024 4:45 am ... How do you code this userlibrary ? see the list of library in the folder
In the past, we could use Tailbite for this.
Some "gurus" wrote them in ASM or C...

I would also like to have the possibility to create user libraries again... Simple and native... This is one of my dreams ;)
by Bisonte
Tue Dec 19, 2023 7:42 am
Forum: Bugs - Windows
Topic: [Done] 6.04 path bug on WinXP
Replies: 5
Views: 638

Re: 6.04 path bug on WinXP

Since 6.0 WindowsXP is no longer supported...
by Bisonte
Mon Dec 18, 2023 8:00 am
Forum: General Discussion
Topic: Test: Chat GPT created BigInt Library for PB
Replies: 5
Views: 736

Re: Test: Chat GPT created BigInt Library for PB

infratec wrote: Sat Dec 16, 2023 6:41 pm Why ask ChatGPT :?: :?: :?:

Ask in Coding Questions :!:

You will get correct working code. :mrgreen: :mrgreen: :mrgreen:
Right...

Our CI (crowd intelligence) is better than every AI :mrgreen: :mrgreen: :mrgreen:
by Bisonte
Mon Nov 13, 2023 10:18 am
Forum: Mac OSX
Topic: Whisky and MacOS Sonoma
Replies: 10
Views: 3091

Re: Whisky and MacOS Sonoma

jamirokwai wrote: Mon Nov 13, 2023 7:29 am .... Gaming on the Mac .....
AAAAAhhhhh : https://www.youtube.com/watch?v=IYv3-HfRNcA :mrgreen: :mrgreen:
by Bisonte
Sat Oct 21, 2023 6:32 am
Forum: Windows
Topic: [Solved] shadow window
Replies: 5
Views: 699

Re: has shadow window

OpenWindow(0, 0, 0, 640, 480, "Test", #PB_Window_ScreenCentered|#PB_Window_BorderLess|#PB_Window_Invisible) SetClassLongPtr_(WindowID(0), #GCL_STYLE, #CS_DROPSHADOW) HideWindow(0, #False) While WaitWindowEvent() <> #PB_Event_CloseWindow : Wend Important is #PB_Window_Invisible and HideWin...
by Bisonte
Fri Sep 22, 2023 11:07 pm
Forum: Linux
Topic: ImageResize()
Replies: 5
Views: 1950

Re: ImageResize()

You are using a canvas to show the image ?

Draw the Image directly on it....

If there is a bug in ResizeImage... you can try : DrawImage(ImageID, x, y, w, h) to resize it on the Canvas direct....
by Bisonte
Sun Aug 27, 2023 8:20 am
Forum: Announcement
Topic: New YouTube Channel - Beginner's Programming
Replies: 7
Views: 1488

Re: New YouTube Channel - Beginner's Programming

Abo and like on YT activated ;)
Nice produced video... :!:
by Bisonte
Sun Aug 27, 2023 8:03 am
Forum: Coding Questions
Topic: Detecting a window move event
Replies: 9
Views: 699

Re: Detecting a window move event

There are two possibilities : Procedure MainWindow_Events(event) Select event Case #PB_Event_CloseWindow ProcedureReturn #False Case #PB_Event_MoveWindow ...Your Code... Case #PB_Event_SizeWindow ... Your Code .... Case #PB_Event_Menu Select EventMenu() .... or better : use BindEvent() and a single ...
by Bisonte
Mon Aug 07, 2023 3:30 am
Forum: Feature Requests and Wishlists
Topic: Physically installed RAM
Replies: 7
Views: 821

Re: Physically installed RAM

In C, no decimal place is calculated, but in your PB formula it is..... If you do the same in PB as in C, the result is the same:

Code: Select all

size = MemoryStatus(#PB_System_TotalPhysical)
Debug "TOTAL: " + FormatNumber(size / (1024*1024*1024), 0) + " GB"