Search found 1607 matches
- Wed Jan 04, 2023 12:56 pm
- Forum: Mac OSX
- Topic: [PB Cocoa] Methods, Tips & Tricks
- Replies: 228
- Views: 439070
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: 1551
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: 890
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: 3701
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: 484
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: 460
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: 978
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: 1378
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: 2424
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: 1378
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: 1378
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...
- Thu Jul 14, 2022 10:20 am
- Forum: Coding Questions
- Topic: Unwanted line break in EditorGadget
- Replies: 2
- Views: 327
Re: Unwanted line break in EditorGadget
Why is there a line break on MacBook? It's not a PureBasic error but the default setting of the NSTextView which is the underlying control PureBasic is utilizing for the EditorGadget. If you display the ruler in your code with CocoaMessage(0, GadgetID(0), "setRulerVisible:", #YES) SetActi...
- Wed Jul 13, 2022 3:33 pm
- Forum: The PureBasic Form Designer
- Topic: How do I resize components during form resizing?
- Replies: 6
- Views: 4039
Re: How do I resize components during form resizing?
The link posted seems to be dead now. The link is not dead. You have to copy the link, paste it into the address line of your browser and change "http://" to "https://". When directly clicking onto the link my Firefox indeed reports "Not Found" because http links are m...