Search found 1563 matches

by Shardik
Mon Sep 20, 2021 9:40 am
Forum: Bugs - Linux
Topic: Error with SetGadgetText and non-existing folder in ExplorerListGadget
Replies: 1
Views: 330

Error with SetGadgetText and non-existing folder in ExplorerListGadget

When trying to use SetGadgetText() with a non-existing folder in an ExplorerListGadget, the program terminates with an error and the message [ERROR] Program aborted. (by external library) is displayed. On MacOS and Windows no error message is displayed. This behaviour results in a crash only in the ...
by Shardik
Sat Jul 17, 2021 3:18 pm
Forum: Bugs - Mac OSX
Topic: InitSound() Fails on Big Sur
Replies: 1
Views: 2454

Re: InitSound() Fails on Big Sur

InitSound() always returns 0 when run on Big Sur. I can confirm this for Big Sur. On High Sierra, Mojave and Catalina the initialization of the sound system is working fine, so the following slightly modified example from the help is working: InitSound() UseOGGSoundDecoder() LoadSound(0, #PB_Compil...
by Shardik
Tue Jul 13, 2021 10:38 am
Forum: Bugs - Mac OSX
Topic: Progressbargadget No vertical
Replies: 4
Views: 2386

Re: Progressbargadget No vertical

mk-soft wrote: Tue Jul 13, 2021 10:23 am but I think bottom to top is right
My example displays bottom to top already... :wink:
I assume that you tested my example shortly after posting which used Rotation = 90 and indeed displayed from top to bottom. But soon after I changed it to bottom to top.
by Shardik
Tue Jul 13, 2021 10:29 am
Forum: Announcement
Topic: PureBasic 6.00 Alpha 4 released !
Replies: 196
Views: 42153

Re: PureBasic 6.00 Alpha 3 released !

as far as i know: Handles in PB are *ALWAYS* in Integer. so ".l" is not correct and when it work, it is pure luck. No! According to Microsoft a 32-bit handle works in 32-bit and 64-bit applications: 64-bit versions of Windows use 32-bit handles for interoperability. When sharing a handle ...
by Shardik
Mon Jul 12, 2021 6:25 pm
Forum: Bugs - Mac OSX
Topic: Progressbargadget No vertical
Replies: 4
Views: 2386

Re: Progressbargadget No vertical

I have found a workaround for displaying a vertical ProgressBar also on Mojave and Catalina. I have successfully tested this workaround on these MacOS versions: MacOS 10.6.8 'Snow Leopard' with PB 5.62 x86 MacOS 10.13.6 'High Sierra' with PB 5.73 x86 MacOS 10.14.6 'Mojave' with PB 5.73 x64 MacOS 10....
by Shardik
Sun Jul 11, 2021 10:28 am
Forum: Bugs - Mac OSX
Topic: Progressbargadget No vertical
Replies: 4
Views: 2386

Re: Progressbargadget No vertical

I have tested the above example on the 4 most recent versions of MacOS. The plus sign denotes that the vertical progress bar is displayed, the minus sign that the vertical progress bar is missing. I have done all tests with PB 5.73: [+] MacOS 10.13.6 'High Sierra' with PB 5.73 x86 [-] MacOS 10.14.6 ...
by Shardik
Sat Jun 12, 2021 7:34 pm
Forum: Tricks 'n' Tips
Topic: Cross-Platform: Short Functions Collection
Replies: 3
Views: 1422

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: 759

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: 2790

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: 3431

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: 3431

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: 1415

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: 2953

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: 2953

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: 2953

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...