Search found 1557 matches

by Shardik
Sat Jun 12, 2021 7:34 pm
Forum: Tricks 'n' Tips
Topic: Cross-Platform: Short Functions Collection
Replies: 3
Views: 298

Re: Cross-Platform: Short Functions Collection

I have added these examples to my list of now 64 links to cross-platform API examples.
by Shardik
Sat Jun 12, 2021 8:34 am
Forum: Coding Questions
Topic: how to clear all StringGadgets except Read Only gadget.
Replies: 7
Views: 284

Re: how to clear all StringGadgets except Read Only gadget.

I have modified BarryG's nice example to work cross-platform: #first=1 #second=2 #third=3 #fourth=4 #last=5 #button=6 OpenWindow(0,200,200,300,175,"test",#PB_Window_SystemMenu) StringGadget(#first,10,10,280,20,"one") StringGadget(#second,10,35,280,20,"two") StringGadget...
by Shardik
Tue May 18, 2021 9:14 am
Forum: Linux
Topic: Getting started with GTK3 or GTK4 directly
Replies: 3
Views: 271

Re: Getting started with GTK3 or GTK4 directly

The first starting point would be to read the GTK reference GTK+ Overview > Getting Started with GTK+ > Building applications There you will find C examples with increasing complexity. Beginning with GTK3 all examples use GtkApplication. To reduce complexity and in order to run my examples on GTK2 a...
by Shardik
Mon Apr 26, 2021 9:45 pm
Forum: Bugs - Mac OSX
Topic: Import external variable
Replies: 8
Views: 1593

Re: Import external variable

That doesn't match with one of your OS tests of "MacOS 10.15.7 'Catalina': 1894.6" ? You are right. It only matches roughly. You may take a look into NSApplication.h where lots of different AppKit version constants are defined (I am currently on Mojave): typedef double NSAppKitVersion NS_...
by Shardik
Mon Apr 26, 2021 8:17 pm
Forum: Bugs - Mac OSX
Topic: Import external variable
Replies: 8
Views: 1593

Re: Import external variable

I don't know that's right result The result is correct. The first rounded digit after the decimal point of the double value correlates with the MacOS minor version. You should output the double value of the NSAppKit version with MessageRequester("NSAppKit version", StrD(*NSAppKitVersionNu...
by Shardik
Sat Apr 24, 2021 2:29 pm
Forum: Feature Requests and Wishlists
Topic: PB portable
Replies: 9
Views: 617

Re: PB portable

Marc56us wrote: Sat Apr 24, 2021 1:42 pm [*]Latest non-unicode only: 5.42 LTS
This is incorrect. The last PB version supporting both ASCII and Unicode compilation was PB 5.46 LTS. Beginning with PB 5.50 ASCII compilation was removed.
by Shardik
Thu Apr 22, 2021 6:14 pm
Forum: Mac OSX
Topic: Any way to add separators to ListIconGadget/NSTableView?
Replies: 9
Views: 684

Re: Any way to add separators to ListIconGadget/NSTableView?

Does not work under macOS High Sierra!? I have tested it on MacOS 11.2.3 'Big Sur' (dark theme) with PB 5.73. I stated that I tested the example with the dark theme on Big Sur. To work with a light theme, you have to change the 3 occurrences of whiteColor to blackColor and you will obtain the follo...
by Shardik
Wed Apr 21, 2021 9:10 pm
Forum: Mac OSX
Topic: Any way to add separators to ListIconGadget/NSTableView?
Replies: 9
Views: 684

Re: Any way to add separators to ListIconGadget/NSTableView?

Well, i sort of achieved the look i wanted, that will do for now. Sorry, too late! But perhaps you may still take a look into my following example which tries to reproduce the screenshot from your first posting. I have tested it on MacOS 11.2.3 'Big Sur' (dark theme) with PB 5.73. https://abload.de...
by Shardik
Mon Apr 19, 2021 7:01 pm
Forum: Mac OSX
Topic: Any way to add separators to ListIconGadget/NSTableView?
Replies: 9
Views: 684

Re: Any way to add separators to ListIconGadget/NSTableView?

Anyone got any ideas how to add groups/separators to NSTableView? A simple example: EnableExplicit ProcedureC IsGroupRow(Object.I, Selector.I, TableView.I, Row.I) Protected IsGroupRow.I Select Row Case 0, 3 IsGroupRow = #True Default IsGroupRow = #False EndSelect ProcedureReturn IsGroupRow EndProce...
by Shardik
Thu Apr 01, 2021 7:32 am
Forum: Coding Questions
Topic: Location of Template db on OSX
Replies: 3
Views: 431

Re: Location of Template db on OSX

There's even a much easier way to see the hidden files: Open the Finder, click on the left side onto your OS folder (for example 'Macintosh HD') and press <Shift> + <Command> + <.> to display hidden files. Then open this folder structure: Macintosh HD > Users > YourName > .purebasic
by Shardik
Thu Mar 25, 2021 2:51 pm
Forum: Linux
Topic: Has anyone found a workaround for #PB_Web_Busy on Linux?
Replies: 2
Views: 326

Re: Has anyone found a workaround for #PB_Web_Busy on Linux?

If you want to use #PB_Web_Busy to detect when a download has ended by polling for #False, I don't advise this method because I have already made the experience that on some websites #PB_Web_Busy changes sometimes to #False and shortly afterwards back to #True because some components still need load...
by Shardik
Thu Mar 25, 2021 12:26 pm
Forum: Bugs - Mac OSX
Topic: Possible problem with MIDI on Mac + BigSur
Replies: 2
Views: 661

Re: Possible problem with MIDI on Mac + BigSur

Change

Code: Select all

ImportC "/System/Library/Frameworks/CoreMIDI.framework/CoreMIDI"
to

Code: Select all

ImportC "-framework CoreMIDI"
by Shardik
Thu Mar 25, 2021 10:47 am
Forum: Coding Questions
Topic: Filesize, OpenFile not case sensitive is Not a bug.
Replies: 5
Views: 388

Re: Filesize, OpenFile not case sensitive is Not a bug.

Well, on Linux it is always case sensitive and I like it. I also don't know any application which has problems with that. On MacOS the default is case-insensitivity. If you format a Mac partition with case-sensitivity you may run into trouble with third party software: However, some Mac software—no...
by Shardik
Thu Mar 25, 2021 9:34 am
Forum: Coding Questions
Topic: Filesize, OpenFile not case sensitive is Not a bug.
Replies: 5
Views: 388

Re: Filesize, OpenFile not case sensitive is Not a bug.

Case sensitivity on MacOS volumes depends on the partition format of that volume. You can simply query the MacOS partition format with this console command (which you may even run from a PureBasic program with RunProgram()): diskutil info "/Volumes/NameOfYourVolume" | grep "User Visib...
by Shardik
Sat Mar 20, 2021 9:01 am
Forum: General Discussion
Topic: Learn2Program PB outdated?
Replies: 23
Views: 1752

Re: Learn2Program PB outdated?

I had bought the paperback book "Programming 2D Scrolling Games" just after its release and all examples worked without problems with the then current PureBasic version and hardware. I have just tested the posted example on my iMac from 2019 and it indeed displays the error message on my m...