Search found 1609 matches
- Thu Feb 02, 2023 10:22 am
- Forum: Coding Questions
- Topic: Print Function when using Console
- Replies: 7
- Views: 626
Re: Print Function when using Console
I found out that I need to do this everytime that I start a program as the Compiler Option reverts to Mac OS on startup. You may change the default "MacOS" to "Console" in the Preferences: - In the menu of the IDE click onto "PureBasic > Preferences..." - Click onto &q...
- Wed Jan 11, 2023 11:48 am
- Forum: Coding Questions
- Topic: PB6.0 Raspberry Pi Bullseye x32 StringGadget with #PB_Text_Center Fails
- Replies: 4
- Views: 396
Re: PB6.0 Raspberry Pi Bullseye x32 StringGadget with #PB_Text_Center Fails
You may take a look into this cross-platform example.
- Wed Jan 04, 2023 12:56 pm
- Forum: Mac OSX
- Topic: [PB Cocoa] Methods, Tips & Tricks
- Replies: 228
- Views: 440298
Re: [PB Cocoa] Methods, Tips & Tricks
I have modified my source code to sort ListIconGadget contents by clicking on the column header cell and displaying an ascending or descending icon to also work in PB 6.00 with Asm and C backend and in older PB versions (successfully tested on MacOS 11.7.2 'Big Sur' on an iMac 2019 with Intel x86-64...
- Wed Jan 04, 2023 12:34 pm
- Forum: Mac OSX
- Topic: Bug CocoaMessage AppDelegate
- Replies: 2
- Views: 392
Re: Bug CocoaMessage AppDelegate
Does anyone have an idea to find à solution ? I have modified my example to work in PB 6.00 with Asm and C backend and in older PB versions (successfully tested on MacOS 11.7.2 'Big Sur' on an iMac 2019 with Intel x86-64): EnableExplicit Structure TableEntry Name.S Address.S EndStructure Enumeratio...
- Sun Oct 30, 2022 4:47 pm
- Forum: Coding Questions
- Topic: String functions when utilising memory
- Replies: 32
- Views: 1553
Re: String functions when utilising memory
I must admit, as a programmer who's been working with ASCII characters for decades, PureBasic's default Unicode is taking me a bit of time to get used to. I am using PureBasic since 2003 and have written more than 100 tools and apps for my employer and for my private use. When needing to change an ...
- Sat Oct 29, 2022 3:08 pm
- Forum: General Discussion
- Topic: Pre-buy questions
- Replies: 10
- Views: 891
Re: Pre-buy questions
Question: Does the single user licence allow me to install on my Raspberry pi, a windows machine, and a travel machine.. (as noted I'm the only user, I just have alot of machines (depending on my mood, and what I'm doing. This question is answered in the official FAQs on the PureBasic website https...
- Mon Oct 24, 2022 9:52 am
- Forum: Feature Requests and Wishlists
- Topic: Set Requester Position ...
- Replies: 9
- Views: 3712
Re: Set Requester Position ...
Now I'm on a Mac and could have used such code for macOS in the past. :cry: For MacOS you may use the following code to display a modal requester (NSAlert) at a specified position (successfully tested on MacOS 11.7 'Big Sur' with PB 6.00): EnableExplicit Define MenuBarHeight.CGFloat Define Point.NS...
- Wed Sep 28, 2022 6:57 pm
- Forum: Bugs - Linux
- Topic: GetGadgetItemText() doesn't work with wrapped text in EditorGadget
- Replies: 0
- Views: 718
GetGadgetItemText() doesn't work with wrapped text in EditorGadget
When using GetGadgetItemText() to read a text line in a wrapped text block from an EditorGadget with flag #PB_Editor_WordWrap , in Linux (GTK2 and GTK3) the whole wrapped text block is returned in line 0 (in Windows it works as expected). In Tricks 'n' Tips I have posted this cross-platform workarou...
- Wed Sep 28, 2022 6:14 pm
- Forum: Tricks 'n' Tips
- Topic: Workaround for GetGadgetItemText() with wrapped text in Linux and MacOS
- Replies: 1
- Views: 522
Workaround for GetGadgetItemText() with wrapped text in Linux and MacOS
In the EditorGadget without the flag #PB_Editor_WordWrap you are able to get a single specified line of text from the EditorGadget using GetGadgetItemText() . This works cross-platform: EnableExplicit DataSection Data.S "The quick brown" Data.S "fox jumps over" Data.S "the l...
- Sat Sep 10, 2022 5:34 pm
- Forum: General Discussion
- Topic: Enhancing TreeGadget-capabilities
- Replies: 2
- Views: 377
Re: Enhancing TreeGadget-capabilities
I could only do this for Windows, is this possible for Linux and MacOS? I guess the TreeGadgets there have comparable capabilities. I maintain a list of links for cross-platform API code here . For the ListIconGadget there are currently 12 links listed. If you or someone else finds additional examp...
- Fri Sep 09, 2022 12:13 pm
- Forum: Coding Questions
- Topic: [Solved] PB 6.00 in Ubuntu 22.04 SetWindowColor not working
- Replies: 15
- Views: 989
Re: [Solved]: PB 6.00 in Ubuntu 22.04 SetWindowColor not working
Modules, for all their merits, don't feature very much in my projects except (as here) where they have been imported from elsewhere. I had forgotten UseModule completely. :oops: If you would like to use a short procedure instead of mk-soft's big module and you are only in need to change the backgro...
- Mon Aug 22, 2022 5:46 pm
- Forum: Coding Questions
- Topic: Cross Platform Rich Text Editor
- Replies: 7
- Views: 1387
Re: Cross Platform Rich Text Editor
So, for my immediate needs, I would just need the ability to add or remove the strikethrough style from one or more lines of text. Linux (tested successfully on Linux Mint 19.3 'Tricia' x64 Cinnamon and PB 6.00 x64): https://abload.de/img/linuxmint-editorgadgercij4.png MacOS (tested successfully on...
- Sat Jul 30, 2022 9:00 am
- Forum: Coding Questions
- Topic: What is best... define.s variable or define variable.s
- Replies: 35
- Views: 2436
Re: What is best... define.s variable or define variable.s
You should also keep in mind that MyString.S and MyString$ are different variables:
Code: Select all
Define MyString.S = "Test 1"
Define MyString$ = "Test 2"
Debug MyString ; "Test 1"
Debug MyString$ ; "Test 2"
- Wed Jul 20, 2022 8:07 pm
- Forum: Coding Questions
- Topic: Cross Platform Rich Text Editor
- Replies: 7
- Views: 1387
Re: Cross Platform Rich Text Editor
Wow! Thank you! This looks really cool. I've been reading through your code a bit trying to get familiar with it and to understand it. Thank you for your praise and interest. Until now you have been the first one. Because of the missing general interest I didn't develop the code any further. One th...
- Tue Jul 19, 2022 9:14 pm
- Forum: Coding Questions
- Topic: Cross Platform Rich Text Editor
- Replies: 7
- Views: 1387
Re: Cross Platform Rich Text Editor
It seems that there isn't an easy cross platform way to use rich text / styled text in the EditorGadget? Is this true? If so, what's the best way to use rich / styled text in PB? Indeed there is no easy cross-platform way. But already 5 years ago I have posted this cross-platform code example in th...