Search found 2781 matches
- Sun May 29, 2022 9:09 am
- Forum: Coding Questions
- Topic: What's the best doc generator for PB?
- Replies: 2
- Views: 355
What's the best doc generator for PB?
What is the best doc generator for PureBasic to generate documentation from Imports, Interfaces, Procedures, Macros, Enumerations, Modules, Structures, etc.? Needs to be cross-platform to work on macOS. ; pbdoc Interface IX ; ; long description and example ; ; @example ; example code ; @endexample ;...
- Fri May 27, 2022 2:10 am
- Forum: Bugs - IDE
- Topic: Disk Full, project and purebasic.prefs file empty (file size: 0 Bytes)
- Replies: 0
- Views: 501
Disk Full, project and purebasic.prefs file empty (file size: 0 Bytes)
I started the IDE and did some coding. The disk/HDD was full when I quit the PB IDE, the currently active project file (.pbp), current file, and the PB preferences file (.prefs) was of size 0 Bytes then. Means, if there is a disk error, like HDD full, the PB IDE overrides files/projects/settings wit...
- Wed May 25, 2022 6:32 am
- Forum: Coding Questions
- Topic: "Executable Format: Console"
- Replies: 13
- Views: 973
Re: "Executable Formant: Console"
Is FreeBASIC good enough for MS-DOS 6.22?
A terminal/console on Windows, Linux, macOS, Raspberry PI is not the Disk Operation System that's usually called 'DOS', or in this case MS-DOS 6.22.
A terminal/console on Windows, Linux, macOS, Raspberry PI is not the Disk Operation System that's usually called 'DOS', or in this case MS-DOS 6.22.
- Wed May 25, 2022 6:29 am
- Forum: Coding Questions
- Topic: Canvas containter gadgets gets greyed-out automatically
- Replies: 3
- Views: 463
Re: Canvas containter gadgets gets greyed-out automatically
Works fine on macOS. Just had to convert backslash to slash in the path to the image: Define imgFileName.s = #PB_Compiler_Home + "examples/sources/Data/PureBasic.bmp" and change the TextGadget color from white to another color to actually see it on the white canvas: Define txt = TextGadget...
- Sun May 22, 2022 12:36 am
- Forum: Feature Requests and Wishlists
- Topic: IDE: Load Folding and Indentation settings from file like Custom Keywords
- Replies: 0
- Views: 345
IDE: Load Folding and Indentation settings from file like Custom Keywords
In the IDE preferences we can load custom keywords from a file. I would like to add Folding and Indentation settings for my new keywords, but I can't load a file there. We can load a list with custom keywords, but for folding and indentation we have to add all entries one by one. Would it make sense...
- Sat May 21, 2022 8:18 pm
- Forum: Coding Questions
- Topic: How to fit a dialog
- Replies: 1
- Views: 349
Re: How to fit a dialog
How to fit a dialog to the size of an editorgadget or a listview ? Editor and ListView don't have a "size to fit" because the gadgets can be empty or have thousands of lines/items. You can set a minimum size using the width and height properties: XML$ = "<window id='#PB_Any' name='te...
- Wed May 18, 2022 7:10 am
- Forum: Coding Questions
- Topic: Auto-positioning of gadgets
- Replies: 7
- Views: 892
Re: Auto-positioning of gadgets
Small example shows how to add a custom gadget/control to an empty Dialog container: ; ; Use Custom Gadget with Dialog Container ; ; by Danilo, 2022/05/18 ; CompilerIf #PB_Compiler_Unicode #XmlEncoding = #PB_UTF8 CompilerElse #XmlEncoding = #PB_Ascii CompilerEndIf #Dialog = 0 #Xml = 0 XML$ = "<...
- Tue May 17, 2022 9:53 pm
- Forum: Coding Questions
- Topic: Auto-positioning of gadgets
- Replies: 7
- Views: 892
Re: Auto-positioning of gadgets
You probably need to add a ContainerGadget inside the dialog and put custom controls inside the container by code, right after dialog creation.
- Tue May 17, 2022 7:46 pm
- Forum: Coding Questions
- Topic: Auto-positioning of gadgets
- Replies: 7
- Views: 892
Re: Auto-positioning of gadgets
More advanced example: CompilerIf #PB_Compiler_Unicode #XmlEncoding = #PB_UTF8 CompilerElse #XmlEncoding = #PB_Ascii CompilerEndIf #Dialog = 0 #Xml = 0 XML$ = "<window id='#PB_Any' name='test' text='test' minwidth='600' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu |...
- Tue May 17, 2022 7:44 pm
- Forum: Coding Questions
- Topic: Auto-positioning of gadgets
- Replies: 7
- Views: 892
Re: Auto-positioning of gadgets
Using the Dialog library gives you an automatic layout system. Simple example: ; ; http://www.purebasic.fr/english/viewtopic.php?f=13&t=56528 ; CompilerIf #PB_Compiler_Unicode #XmlEncoding = #PB_UTF8 CompilerElse #XmlEncoding = #PB_Ascii CompilerEndIf #Dialog = 0 #Xml = 0 ;#NSRoundedBezelStyle =...
- Mon May 16, 2022 4:42 pm
- Forum: Coding Questions
- Topic: Datasection Data int,string,int,string....
- Replies: 6
- Views: 514
Re: Datasection Data int,string,int,string....
If it is always a pair of int and string, I would create a simple Macro: Macro DataPair(_one_,_two_) Data.i _one_ Data.s _two_ EndMacro DataSection mylabel: DataPair(1,"TextABC") : DataPair(17,"SomeText") EndDataSection Restore mylabel ;Read.i num(1) ;Read.s txt(1) ;Read.i num(2)...
- Mon May 16, 2022 9:43 am
- Forum: Feature Requests and Wishlists
- Topic: SplitterGadget wishes
- Replies: 1
- Views: 532
Re: SplitterGadget wishes
The reason for a smaller bar width and a splitter bar without icon is using it for things like ListEx : https://i.ibb.co/QDMzvvF/ListEx.png On macOS I always get a separator icon, even without specifying #PB_Splitter_Separator (bug?), and having a smaller bar (like 1 or 2 pixels) is also required fo...
- Sun May 15, 2022 3:28 pm
- Forum: Feature Requests and Wishlists
- Topic: SplitterGadget wishes
- Replies: 1
- Views: 532
SplitterGadget wishes
It would be nice to have SetGadgetAttribute(#gadget, #PB_Splitter_BarSize, 2) ; Size (width/height) of the Splitter bar (1,2,3,4 pixels) SetGadgetAttribute(#gadget, #PB_Splitter_DrawBarIcon, #True) ; Draw the bar icon SetGadgetAttribute(#gadget, #PB_Splitter_DrawBarIcon, #False) ; Don't draw the bar...
- Thu May 12, 2022 4:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Additional include directories
- Replies: 13
- Views: 1352
Re: Additional include directories
Okay.Little John wrote: ↑Thu May 12, 2022 4:22 pmNot in my opinion, as I wrote above.Danilo wrote:The solution could be this feature request: Specify additional Include Directories
at command-line or from within the IDE.
- Thu May 12, 2022 4:09 pm
- Forum: Feature Requests and Wishlists
- Topic: Additional include directories
- Replies: 13
- Views: 1352
Re: Additional include directories
The solution could be this feature request: Specify additional Include DirectoriesLittle John wrote: ↑Thu May 12, 2022 4:03 pm I don't know a solution that is better (from my point of view).
at command-line or from within the IDE.