On Windows, depending on the container's border, the canvas is cropped by 0, -2, -4, or -6 pixels.
Could you tell me what the values are on Linux and macOS?
Thank you.
(Use the code under to do that)
Procedure draw()
StartDrawing(CanvasOutput(1))
Box(0, 0, 300, 200, #White)
LineXY ...
Search found 369 matches
- Sat Dec 06, 2025 10:33 am
- Forum: Coding Questions
- Topic: Canvas size inside a container
- Replies: 4
- Views: 215
- Thu Dec 04, 2025 6:02 pm
- Forum: Coding Questions
- Topic: Scintilla 5 and lexilla
- Replies: 1
- Views: 149
Scintilla 5 and lexilla
I find it strange that no one has been able to create a lexer with the latest version of Scintilla, which uses the "Lexilla" library.
But perhaps someone has managed it?
I think the "ILexer5" structure is missing in pb.
What do you think?
M.
But perhaps someone has managed it?
I think the "ILexer5" structure is missing in pb.
What do you think?
M.
- Wed Dec 03, 2025 4:36 pm
- Forum: Bugs - IDE
- Topic: no total translate
- Replies: 6
- Views: 346
Re: no total translate
The compiler shown is a pb30b3 are you sure that you are using the pb630b4 ?
All the translations are already done in the github.
My french version of pb630b4 is ok.
All the translations are already done in the github.
My french version of pb630b4 is ok.
- Wed Dec 03, 2025 10:40 am
- Forum: Bugs - IDE
- Topic: no total translate
- Replies: 6
- Views: 346
- Fri Nov 28, 2025 11:15 am
- Forum: Coding Questions
- Topic: vectordrawing and font offset, bigdifferences
- Replies: 1
- Views: 277
vectordrawing and font offset, bigdifferences
I have a large difference in text offset calculation between the default font loaded with loadfont() and the default font from getgadgetfont(). Is that normal ?
pb630b4 x64 windows
See under:
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered ...
pb630b4 x64 windows
See under:
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered ...
- Sat Nov 15, 2025 9:24 am
- Forum: Tricks 'n' Tips
- Topic: Menu with margins and line spacing.
- Replies: 1
- Views: 332
Menu with margins and line spacing.
Using a canvas to create a menu with margins and line spacing.
Structure MenuGadget
Array y0.f(0)
Array y.f(0)
index.i
count.i
xm.f
ym.f
pad.f
TextHeight.f
Menu.s
EndStructure
; Draw a single line of text with a vertical padding
Procedure.f DrawVectorLine(X.f, Y.f, Text.s ...
Structure MenuGadget
Array y0.f(0)
Array y.f(0)
index.i
count.i
xm.f
ym.f
pad.f
TextHeight.f
Menu.s
EndStructure
; Draw a single line of text with a vertical padding
Procedure.f DrawVectorLine(X.f, Y.f, Text.s ...
- Wed Nov 12, 2025 9:19 am
- Forum: Coding Questions
- Topic: [Solved] Difficulties with StatusBar
- Replies: 4
- Views: 465
Re: Difficulties with StatusBar
Maybe like that :
LoadFont (1, "", 24)
If OpenWindow(0, 100, 150, 300, 100, "PureBasic - StatusBar Example", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
CreateStatusBar(0, WindowID(0))
SendMessage_(StatusBarID(0), #WM_SETFONT, FontID(1),1)
SendMessage_(StatusBarID(0), #SB_SETMINHEIGHT, 30 ...
LoadFont (1, "", 24)
If OpenWindow(0, 100, 150, 300, 100, "PureBasic - StatusBar Example", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
CreateStatusBar(0, WindowID(0))
SendMessage_(StatusBarID(0), #WM_SETFONT, FontID(1),1)
SendMessage_(StatusBarID(0), #SB_SETMINHEIGHT, 30 ...
- Mon Nov 10, 2025 4:49 pm
- Forum: Windows
- Topic: Zooming on a cross-platform webview
- Replies: 4
- Views: 746
Re: Zooming on a cross-platform webview
Not cross platform, just windows only:
Code from zikitrake https://www.purebasic.fr/english/viewtopic.php?t=86218
;--------------------------------------
; https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/navigation-events
; code from zikitrake https://www.purebasic.fr/english ...
Code from zikitrake https://www.purebasic.fr/english/viewtopic.php?t=86218
;--------------------------------------
; https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/navigation-events
; code from zikitrake https://www.purebasic.fr/english ...
- Wed Nov 05, 2025 11:48 am
- Forum: Coding Questions
- Topic: Sort a ListViewGadget -- How to?
- Replies: 7
- Views: 561
Re: Sort a ListViewGadget -- How to?
With big datas, you can use sqlite:
Enumeration
#MainForm
#MainList
#Filters
#Tri
EndEnumeration
UseSQLiteDatabase()
Global DB = OpenDatabase(#PB_Any, ":memory:", "", "", #PB_Database_SQLite)
Procedure CreateTable()
Protected query.s
query = "CREATE TABLE client ("
query + "name TEXT ...
Enumeration
#MainForm
#MainList
#Filters
#Tri
EndEnumeration
UseSQLiteDatabase()
Global DB = OpenDatabase(#PB_Any, ":memory:", "", "", #PB_Database_SQLite)
Procedure CreateTable()
Protected query.s
query = "CREATE TABLE client ("
query + "name TEXT ...
- Thu Oct 30, 2025 3:56 pm
- Forum: Applications - Feedback and Discussion
- Topic: DialogDesign0R V1.86
- Replies: 257
- Views: 202299
Re: DialogDesign0R V1.86
Since pb621, #PB_Menu_ModernLook et #PB_Menu_SysTrayLook had been deleted.
So, i add line 740 of DD_AddStuff.pbi:
CompilerIf #PB_Compiler_Version > 620
Data.l #PB_StatusBar_Raised, #PB_StatusBar_BorderLess, #PB_StatusBar_Center, #PB_StatusBar_Right
CompilerElse
Data.l #PB_Menu_ModernLook, #PB ...
So, i add line 740 of DD_AddStuff.pbi:
CompilerIf #PB_Compiler_Version > 620
Data.l #PB_StatusBar_Raised, #PB_StatusBar_BorderLess, #PB_StatusBar_Center, #PB_StatusBar_Right
CompilerElse
Data.l #PB_Menu_ModernLook, #PB ...
- Wed Oct 29, 2025 2:14 pm
- Forum: Feature Requests and Wishlists
- Topic: DrawVectorParagraph() with line spacing
- Replies: 0
- Views: 796
DrawVectorParagraph() with line spacing
I wish an option in the DrawVectorParagraph() function to add spacing between lines.
M.
M.
- Wed Oct 29, 2025 11:44 am
- Forum: Coding Questions
- Topic: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
- Replies: 12
- Views: 751
Re: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
And remember how we make a negative number in binary:
https://en.wikipedia.org/wiki/Signed_nu ... sentations
https://en.wikipedia.org/wiki/Signed_nu ... sentations
- Wed Oct 29, 2025 11:36 am
- Forum: Coding Questions
- Topic: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
- Replies: 12
- Views: 751
Re: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
Debug returns an integer
RGBA() returns a quad.
Debug $F0000FF ; 4278190335 = 00000000FF0000FF => Because it IS AN INTEGER
Debug RGBA(255, 0, 0, 255) ; -16776961 = FFFFFFFFFF0000FF=> Because it IS A QUAD
Define rgb.q=RGBA(255, 0, 0, 255)
Debug rgb ; -16776961
;ShowMemoryViewer(@rgb, 8)
Debug ...
RGBA() returns a quad.
Debug $F0000FF ; 4278190335 = 00000000FF0000FF => Because it IS AN INTEGER
Debug RGBA(255, 0, 0, 255) ; -16776961 = FFFFFFFFFF0000FF=> Because it IS A QUAD
Define rgb.q=RGBA(255, 0, 0, 255)
Debug rgb ; -16776961
;ShowMemoryViewer(@rgb, 8)
Debug ...
- Fri Oct 24, 2025 8:35 am
- Forum: Tricks 'n' Tips
- Topic: Animated Vector Graphics Scene Graph
- Replies: 73
- Views: 7778
Re: Animated Vector Graphics Scene Graph
There's still a problem with curve joins on star points and still haven't worked out how to fill it
Code: Select all
Line 3114: AVGStrokePath(*scene,poly,3,#PB_Path_RoundEnd ): Works for me.- Tue Oct 21, 2025 9:35 am
- Forum: Tricks 'n' Tips
- Topic: Animated Vector Graphics Scene Graph
- Replies: 73
- Views: 7778
Re: Animated Vector Graphics Scene Graph
Thank you, it's very usefull.
I hope to see primitives or parametric primitives.
And why not, to be a part of PureBasic as library or functions of vector library, who knows...
M.
I hope to see primitives or parametric primitives.
And why not, to be a part of PureBasic as library or functions of vector library, who knows...
M.