Search found 1144 matches
- 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: 201
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...
- Thu Feb 22, 2024 8:40 am
- Forum: Coding Questions
- Topic: Vertically center string gadget
- Replies: 5
- Views: 167
Re: Vertically center string gadget
here in this post from Shardik are some links : https://www.purebasic.fr/english/viewto ... 51#p537851
- Thu Feb 08, 2024 8:03 am
- Forum: Feature Requests and Wishlists
- Topic: GetListPositionStackSize(MyList())
- Replies: 4
- Views: 304
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
- Tue Feb 06, 2024 7:48 am
- Forum: The PureBasic Editor
- Topic: Tool - Can triggers be combined ?
- Replies: 6
- Views: 449
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...
- Mon Feb 05, 2024 8:20 am
- Forum: The PureBasic Editor
- Topic: Tool - Can triggers be combined ?
- Replies: 6
- Views: 449
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...
- Thu Jan 25, 2024 7:22 am
- Forum: General Discussion
- Topic: Windows defender's false positives - again
- Replies: 7
- Views: 719
- Wed Jan 10, 2024 7:50 am
- Forum: Feature Requests and Wishlists
- Topic: PureBasic Librarian
- Replies: 20
- Views: 1939
Re: PureBasic Librarian
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
- Tue Dec 19, 2023 7:42 am
- Forum: Bugs - Windows
- Topic: [Done] 6.04 path bug on WinXP
- Replies: 5
- Views: 662
Re: 6.04 path bug on WinXP
Since 6.0 WindowsXP is no longer supported...
- Mon Dec 18, 2023 8:00 am
- Forum: General Discussion
- Topic: Test: Chat GPT created BigInt Library for PB
- Replies: 5
- Views: 755
- Mon Nov 13, 2023 10:18 am
- Forum: Mac OSX
- Topic: Whisky and MacOS Sonoma
- Replies: 10
- Views: 3274
- Sat Oct 21, 2023 6:32 am
- Forum: Windows
- Topic: [Solved] shadow window
- Replies: 5
- Views: 714
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...
- Fri Sep 22, 2023 11:07 pm
- Forum: Linux
- Topic: ImageResize()
- Replies: 5
- Views: 1954
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....
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....
- Sun Aug 27, 2023 8:20 am
- Forum: Announcement
- Topic: New YouTube Channel - Beginner's Programming
- Replies: 7
- Views: 1518
Re: New YouTube Channel - Beginner's Programming
Abo and like on YT activated
Nice produced video...
Nice produced video...
- Sun Aug 27, 2023 8:03 am
- Forum: Coding Questions
- Topic: Detecting a window move event
- Replies: 9
- Views: 701
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 ...
- Mon Aug 07, 2023 3:30 am
- Forum: Feature Requests and Wishlists
- Topic: Physically installed RAM
- Replies: 7
- Views: 829
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"