Search found 674 matches
- Sat Sep 06, 2025 2:06 pm
- Forum: Coding Questions
- Topic: PB_EventType_MouseMove triggered by LMB
- Replies: 5
- Views: 522
PB_EventType_MouseMove triggered by LMB
Procedure OnMouseMove()
Debug "Mouse moved"
EndProcedure
OpenWindow(0, 0, 0, 500, 500, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CanvasGadget(0, 0, 0, 500, 500)
BindGadgetEvent(0, @OnMouseMove(), #PB_EventType_MouseMove)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow ...
- Thu Sep 04, 2025 4:35 pm
- Forum: Applications - Feedback and Discussion
- Topic: DialogDesign0R V1.86
- Replies: 255
- Views: 190172
- Wed Sep 03, 2025 9:53 am
- Forum: Applications - Feedback and Discussion
- Topic: DialogDesign0R V1.86
- Replies: 255
- Views: 190172
Re: DialogDesign0R V1.86
Bug report: when removing an event procedure, it simply doesn't remove it, because it doesn't accept an empty space as a valid procedure name. You can add a space, then the parser will see that it's not a valid call, but it would be more intuitive to just remove the procedure name from the event list.
- Mon Sep 01, 2025 9:46 am
- Forum: Applications - Feedback and Discussion
- Topic: DialogDesign0R V1.86
- Replies: 255
- Views: 190172
Re: DialogDesign0R V1.86
The new icon introduced in 1.86 should be white instead of transparent. 

- Sun Aug 31, 2025 1:10 pm
- Forum: Tricks 'n' Tips
- Topic: Add StatusBar, ToolBar, Menus to Dialogs
- Replies: 15
- Views: 15262
Re: Add StatusBar, ToolBar, Menus to Dialogs
I have a "dialog window not found":
<?xml version="1.0" encoding="UTF-8"?>
<dialogs><!--Created by Dialog Design0R V1.86 => get it from: https://hex0rs.coderbu.de/en/sdm_downloads/dialogdesign0r/-->
<window flags="#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget ...
<?xml version="1.0" encoding="UTF-8"?>
<dialogs><!--Created by Dialog Design0R V1.86 => get it from: https://hex0rs.coderbu.de/en/sdm_downloads/dialogdesign0r/-->
<window flags="#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget ...
- Sun Aug 31, 2025 12:22 pm
- Forum: Tricks 'n' Tips
- Topic: Add StatusBar, ToolBar, Menus to Dialogs
- Replies: 15
- Views: 15262
Re: Add StatusBar, ToolBar, Menus to Dialogs
It doesn't work either. Crashes at:
"At least one window should be opened..."
Code: Select all
Repeat : WaitWindowEvent() : ForEver
- Sun Aug 31, 2025 9:07 am
- Forum: Tricks 'n' Tips
- Topic: Add StatusBar, ToolBar, Menus to Dialogs
- Replies: 15
- Views: 15262
Re: Add StatusBar, ToolBar, Menus to Dialogs
You can ask Fred for that.
But I'm pretty sure fred would have done it from the start, so you can put it in the designer, it's very useful and I think it will be a long time before that happens.
M.
5 years later, I think it would be safe to integrate this to DD. :D
I can't make this work by ...
- Mon Aug 25, 2025 11:27 am
- Forum: Coding Questions
- Topic: Is it possible to have a backup font?
- Replies: 6
- Views: 617
Re: Is it possible to have a backup font?
Invalid characters do not return "", but a generic square. What I will end up doing is to take the glygh number (with 'glyph') and check that instead.
- Sun Aug 24, 2025 11:39 am
- Forum: Coding Questions
- Topic: Is it possible to have a backup font?
- Replies: 6
- Views: 617
Re: Is it possible to have a backup font?
https://www.purebasic.fr/english/viewtopic.php?t=81756
Thank you for your reply, but it's a different problem. Your problem is "if the system doesn't find my font", my problem is "if the system doesn't find the glyph". In my scenario, both fonts are registered and really exist in the system ...
- Sun Aug 24, 2025 11:04 am
- Forum: Coding Questions
- Topic: Is it possible to have a backup font?
- Replies: 6
- Views: 617
Is it possible to have a backup font?
So I have a font A that I really like for standard characters. But then I need some extra unusual glyphs that I have with font B. Is it possible like in CSS to specify / register two fonts, then when the system cannot find a specific glyph in font A, it searches font B?
Pretty sure the answer is no ...
Pretty sure the answer is no ...
- Thu Jul 31, 2025 12:03 pm
- Forum: Bugs - Windows
- Topic: [Done] Prototype order of declaration matters (and it shouldn't)
- Replies: 1
- Views: 1230
[Done] Prototype order of declaration matters (and it shouldn't)
Even though PB is a single pass compiler, we can assign any type to a pointer, including one that is not yet declared. However, it doesn't work for prototypes.
Structure _Struc
*callback.__Callback
*b._StrucB
EndStructure
Structure _StrucB
EndStructure
Prototype __Callback(value)
Define a ...
Structure _Struc
*callback.__Callback
*b._StrucB
EndStructure
Structure _StrucB
EndStructure
Prototype __Callback(value)
Define a ...
- Wed Jul 30, 2025 3:48 pm
- Forum: Tricks 'n' Tips
- Topic: Custom types
- Replies: 6
- Views: 495
Custom types
So you might not know that, but you can name your enumerations:
Enumeration CUSTOM_TYPE
#CUSTOM_TYPE_1
#CUSTOM_TYPE_2
EndEnumeration
But unlike some other languages, you cannot use that as a custom type, ie. you cannot force values to be either #CUSTOM_TYPE_1 or #CUSTOM_TYPE_2. However, you ...
Enumeration CUSTOM_TYPE
#CUSTOM_TYPE_1
#CUSTOM_TYPE_2
EndEnumeration
But unlike some other languages, you cannot use that as a custom type, ie. you cannot force values to be either #CUSTOM_TYPE_1 or #CUSTOM_TYPE_2. However, you ...
- Wed Jul 23, 2025 8:44 am
- Forum: Coding Questions
- Topic: Debugger quitting unexpectedly with C backend?
- Replies: 4
- Views: 444
Re: Debugger quitting unexpectedly with C backend?
For information, I do not use threads.
- Mon Jul 21, 2025 10:47 am
- Forum: Coding Questions
- Topic: Debugger quitting unexpectedly with C backend?
- Replies: 4
- Views: 444
Debugger quitting unexpectedly with C backend?
So it took me a while to switch to C backend because the debugger seems to quit unexpectedly most of the time when the program crashes. For instance:
DeclareModule bar
Declare ShowFoo()
EndDeclareModule
Module bar
Global NewList *foo()
Procedure ShowFoo()
FirstElement(*foo())
Debug *foo ...
DeclareModule bar
Declare ShowFoo()
EndDeclareModule
Module bar
Global NewList *foo()
Procedure ShowFoo()
FirstElement(*foo())
Debug *foo ...
- Sat Jul 19, 2025 2:29 pm
- Forum: Game Programming
- Topic: Hexagonal grid based games.
- Replies: 9
- Views: 7510
Re: Hexagonal grid based games.
Yep, love hexagons, love wargames. Is your hex library test code open source by any chance?