Search found 1899 matches
- Thu Sep 11, 2025 5:32 pm
- Forum: Tricks 'n' Tips
- Topic: EditorFactory - Module for object management in a Canvas
- Replies: 221
- Views: 98701
Re: EditorFactory - Module for object management in a Canvas
I will upload an experimental version for you in a few hours and send you a PN.
- Mon Sep 08, 2025 10:09 pm
- Forum: Coding Questions
- Topic: StartDrawing(ScreenOutput()) the specified output is NULL
- Replies: 2
- Views: 181
Re: StartDrawing(ScreenOutput()) the specified output is NULL
Without code, just speculation is possible:
ScreenOutput() must be called inside StartDrawing(). You can't call ScreenOutput() alone nor use the retured value.
Have you enabled the Purifier of the Pure Basic debugger? The Purifier checks for invalid memory access which could happen at a ...
ScreenOutput() must be called inside StartDrawing(). You can't call ScreenOutput() alone nor use the retured value.
Have you enabled the Purifier of the Pure Basic debugger? The Purifier checks for invalid memory access which could happen at a ...
- Mon Sep 08, 2025 9:03 pm
- Forum: Tricks 'n' Tips
- Topic: EditorFactory - Module for object management in a Canvas
- Replies: 221
- Views: 98701
Re: EditorFactory - Module for object management in a Canvas
How can we save the result of drawing by EditorFactory on canvas as svg?
I quickly checked the option to save the canvas output as a SVG.
Indeed, it is relatively easy to add this feature.
However, the saved SVG image is simplified and not complete:
- In my test, text (with fonts) was not ...
- Fri Sep 05, 2025 8:25 pm
- Forum: Tricks 'n' Tips
- Topic: EditorFactory - Module for object management in a Canvas
- Replies: 221
- Views: 98701
Re: EditorFactory - Module for object management in a Canvas
Hello again,
How to enable z-order feature in this module? I want an object to be placed above other objects when I click on it.
Please take a look in Example04_Object-order.pb from the download.
SetObjectLayer() can be used to change the z-order and with CanvasObjectsEvent() you can detect a ...
- Wed Sep 03, 2025 9:03 pm
- Forum: Tricks 'n' Tips
- Topic: EditorFactory - Module for object management in a Canvas
- Replies: 221
- Views: 98701
Re: EditorFactory - Module for object management in a Canvas
@STARGÅTE : Thanks for your help.
Another question : How do I create a snap to grid mode to move objects?
With the module function SetObjectMovementStep() and SetObjectResizeStep() you can define a grid snapping for movements and resizing. You can define it by default (for new objects), for all ...
- Wed Sep 03, 2025 10:09 am
- Forum: Bugs - Windows
- Topic: [Done] Stringgadget bug
- Replies: 7
- Views: 547
Re: Stringgadget bug
What are all these Constants?
Only PB constants are officially supported!
https://www.purebasic.com/documentation ... adget.html
For multi line output, you can try to use the EditorGadget()
Only PB constants are officially supported!
https://www.purebasic.com/documentation ... adget.html
For multi line output, you can try to use the EditorGadget()
- Wed Sep 03, 2025 8:15 am
- Forum: Tricks 'n' Tips
- Topic: EditorFactory - Module for object management in a Canvas
- Replies: 221
- Views: 98701
Re: EditorFactory - Module for object management in a Canvas
Hello
How can we save the result of drawing by EditorFactory on canvas as svg?
There is no module function for this.
However, PureBasic has the command SvgVectorOutput(), which you can use in the StartVectorDrawing() function, instead of the CanvasVectorOutput().
In principle, there is only one ...
- Wed Aug 13, 2025 10:27 am
- Forum: Bugs - IDE
- Topic: numeric string constants change type
- Replies: 10
- Views: 921
Re: numeric string constants change type
Confirmed. All numeric like strings are converted to integer or float.
- Sat Aug 02, 2025 8:51 am
- Forum: Coding Questions
- Topic: Is this a ReplaceString Bug?
- Replies: 9
- Views: 507
Re: Is this a ReplaceString Bug?
A regular expression can help here:
The expression ",(?=,)|,$" search for a "," which is followed by a other "," (?=,) or the end of the string ($):
Define String.s = "'test',,345,'No',,,"
Define Regex.i = CreateRegularExpression(#PB_Any, ",(?=,)|,$")
Define NewString.s ...
The expression ",(?=,)|,$" search for a "," which is followed by a other "," (?=,) or the end of the string ($):
Define String.s = "'test',,345,'No',,,"
Define Regex.i = CreateRegularExpression(#PB_Any, ",(?=,)|,$")
Define NewString.s ...
- Sun Jul 27, 2025 3:34 pm
- Forum: Coding Questions
- Topic: Issue with converting tiny classifier routine into a macro
- Replies: 17
- Views: 1184
Re: Issue with converting tiny classifier routine into a macro
It's always that size, to I assumed it would make no difference whether I pass a pointer or a string this short.
No, unfortunately not.
Even, if the string is just a single character, by passing this small string to a procedure various internal functions have to be called like allocating a ...
- Sun Jul 27, 2025 3:09 pm
- Forum: Coding Questions
- Topic: Issue with converting tiny classifier routine into a macro
- Replies: 17
- Views: 1184
Re: Issue with converting tiny classifier routine into a macro
The overhead is not the procedure call, it is the usage of a strings and the boolean operations.
When you want to check a character for a certain character set, you should use a data section, for very fast true/false check.
In addition, you should avoid passing a string itself, but only use the ...
When you want to check a character for a certain character set, you should use a data section, for very fast true/false check.
In addition, you should avoid passing a string itself, but only use the ...
- Tue Jul 15, 2025 6:17 pm
- Forum: Coding Questions
- Topic: DrawAlphaImage - drawing in wrong order
- Replies: 7
- Views: 399
Re: DrawAlphaImage - drawing in wrong order
I can't confirm this report.
In this code, the drawing order is exactly the oder of the call of DrawAlphaImage()
Enumeration
#Window
#Gadget
#Image1
#Image2
#Image3
#Image4
EndEnumeration
Define Image.i
For Image = #Image1 To #Image4
If CreateImage(Image, 128, 128, 32, #PB_Image ...
In this code, the drawing order is exactly the oder of the call of DrawAlphaImage()
Enumeration
#Window
#Gadget
#Image1
#Image2
#Image3
#Image4
EndEnumeration
Define Image.i
For Image = #Image1 To #Image4
If CreateImage(Image, 128, 128, 32, #PB_Image ...
- Tue Jul 08, 2025 2:23 pm
- Forum: Coding Questions
- Topic: [Finish]Mouse pointer not moving
- Replies: 3
- Views: 258
Re: Mouse pointer not moving
ExamineMouse()
In fullscreen mode the command FlipBuffers() need to be called inside your event loop to handle all events properly.
- Tue Jul 08, 2025 1:05 pm
- Forum: Applications - Feedback and Discussion
- Topic: Lizard - Script language for symbolic calculations, arbitrary large and precise numbers, parallel computing and more
- Replies: 36
- Views: 38842
Re: Lizard - Script language for symbolic calculations, arbitrary large and precise numbers, parallel computing and more
Hi STARGÅTE,
First let me thank you so much, this is great. I am using your script language and it is amazing fast and very useful.
But I have some questions.I hope you or other users can help me out.
Questions:
1. Where is the documentation of Evaluate()? I did not find it.
2. How can I force ...
- Mon Jul 07, 2025 7:37 am
- Forum: Coding Questions
- Topic: [PB 6.21] Wrong precision on the integer part of floats
- Replies: 2
- Views: 322
Re: [PB 6.21] Wrong precision on the integer part of floats
No Bug.
Floats have only 24 significant bits, which means you can store integer numbers just until ~ 16 mio.
Your integer number needs more than 26 bits, so the last binary digits are lost during your calculation and the number (even the integer part) becomes inaccurate.
You can use Double, they ...
Floats have only 24 significant bits, which means you can store integer numbers just until ~ 16 mio.
Your integer number needs more than 26 bits, so the last binary digits are lost during your calculation and the number (even the integer part) becomes inaccurate.
You can use Double, they ...