Search found 1653 matches

by Shardik
Mon Nov 17, 2025 7:22 pm
Forum: 3D Programming
Topic: opengl version
Replies: 3
Views: 196

Re: opengl version

Up to PB 6.12 it was possible to let Ogre generate a debug log and read the Ogre version from that log. I have already posted a cross-platform example here which gets the Ogre version and displays it.

Unfortunately beginning with PB 6.20 the Ogre debug log always remains empty. I therefore have ...
by Shardik
Sat Nov 15, 2025 7:31 pm
Forum: Tricks 'n' Tips
Topic: Module ToolBarStandardButton for all OS and PB v6.00
Replies: 23
Views: 7400

Re: Module ToolBarStandardButton for all OS and PB v6.00

Error on MacOS 10.15.7 'Catalina':

[ERROR] Object does not respond to method "setToolbarStyle:".


The error occurs in Procedure SetToolBarStyle() because the first supported version of setToolbarStyle: is MacOS 11:


toolbarStyle
The style that determines the appearance and location of the ...
by Shardik
Sat Nov 15, 2025 12:04 pm
Forum: Mac OSX
Topic: Borderless mini icon
Replies: 8
Views: 215

Re: Borderless mini icon

rndrei wrote: The link is broken!
Sorry, I had forgotten to insert the URL into the link. I have repaired the link now.
by Shardik
Sat Nov 15, 2025 11:40 am
Forum: Mac OSX
Topic: Borderless mini icon
Replies: 8
Views: 215

Re: Borderless mini icon

You can even place small buttons into the title bar. 11 years ago I already posted these two examples . And here is another until now unpublished example from 5 years ago which places a circular help button at the right side of the title bar. Both examples were just succussfully tested on MacOS 15.7 ...
by Shardik
Mon Nov 10, 2025 10:39 am
Forum: Mac OSX
Topic: Scintilla scrollbar
Replies: 14
Views: 370

Re: Scintilla scrollbar

I can't reproduce that behaviour on my iMac 2019 with Intel processor on MacOS 15.7.1 'Sequoia' and PB 6.30 Beta 4.
by Shardik
Mon Nov 03, 2025 4:18 pm
Forum: Mac OSX
Topic: Mouse Icon
Replies: 3
Views: 812

Re: Mouse Icon

Piero wrote: I'm not much into cocoa, but THANKS for all your chocolates! :D
You are welcome to enjoy my chocolates! :D
by Shardik
Thu Oct 30, 2025 10:28 pm
Forum: Mac OSX
Topic: Mouse Icon
Replies: 3
Views: 812

Re: Mouse Icon


How can I disable the cursor icon above editorgadget() and put my own icon?

The EditorGadget forces the cursor to always be displayed as an insertion cursor. In order to display a custom cursor, you have to subclass the EditorGadget (internally a NSTextView) and check in a callback for all mouse ...
by Shardik
Sun Oct 26, 2025 2:03 pm
Forum: Mac OSX
Topic: Module TableView Colors (ListViewGadget and ListIconGadget)
Replies: 11
Views: 11546

Re: Module TableView Colors (ListViewGadget and ListIconGadget)


Doesn't work, doesn't display text!? (MacOS 15.7)

In PB 6.0 Fred implemented the new PBIconTextCell which enables the display of both an icon and text in a single cell. Therefore the old modifications for PB 5.73 and older don't work anymore. But the ListIconGadget in PB 6 now supports ...
by Shardik
Sun Oct 26, 2025 11:00 am
Forum: Coding Questions
Topic: Disable standart PopupMenu
Replies: 3
Views: 432

Re: Disable standart PopupMenu


How to disable pupupmenu standard in editorgadget()?

For which OS do you need this? The following example demonstrates how to disable the Popup menu on MacOS (successfully tested on MacOS 15.7.1 'Sequoia' with PB 6.21):

EnableExplicit

CompilerIf #PB_Compiler_Version < 600
Import "-fno-pie ...
by Shardik
Wed Oct 15, 2025 9:13 pm
Forum: Bugs - 3D Engine
Topic: [PB 6.21] InitEngine3D(): DebugLog remains empty
Replies: 0
Views: 901

[PB 6.21] InitEngine3D(): DebugLog remains empty

After InitEngine3D(#PB_Engine3D_DebugLog) the DebugLog is always empty.

Tested with
- Linux Mint 21.3 'Virginia' and PB 6.21 x64 and PB 6.30 Beta 3 x64
- MacOS 15.7.1 'Sequoia' and PB 6.21 x64
- Windows 10 22H2 x64 and PB 6.21 x86


Result = InitEngine3D(#PB_Engine3D_DebugLog)
MessageRequester ...
by Shardik
Mon Oct 13, 2025 10:19 am
Forum: Mac OSX
Topic: Header color in ListIconGadget
Replies: 6
Views: 1663

Re: Header color in ListIconGadget


Is there a way to change the header color in ListIconGadget?

The following example demonstrates how to change the text and background color of a header cell in a ListIconGadget (tested successfully on MacOS 15.7.1 'Sequoia' with PB 6.21 and Intel processor):

EnableExplicit

CompilerIf #PB ...
by Shardik
Wed Oct 08, 2025 9:48 am
Forum: Mac OSX
Topic: Scintilla scrollbar
Replies: 2
Views: 1301

Re: Scintilla scrollbar


How to change the color of the scrollbar in scintilla?

It seems that coloring Scintilla scrollbars is not possible:

- ScintillaNET

You cannot. Scintilla uses the default system scrollbars, so their style is determined directly by the operating system.

The only way to style them is to modify ...
by Shardik
Fri Oct 03, 2025 9:58 am
Forum: Coding Questions
Topic: OptionGadget color
Replies: 2
Views: 424

Re: OptionGadget color

The following example allows you to set the color of text and background of an OptionGadget (successfully tested on MacOS 15.7.1 'Sequoia' with PB 6.21):

EnableExplicit

Procedure SetOptionGadgetColor(GadgetID.I, ColorType.I, Color.I)
Protected Alpha.CGFloat
Protected AttributedTitle.I ...
by Shardik
Sat Sep 20, 2025 10:08 am
Forum: Coding Questions
Topic: EditorGadget auto scroll to last line ...
Replies: 17
Views: 1144

Re: EditorGadget auto scroll to last line ...

Those who need a cross-platform solution may take a look into my 13 years old code example which demonstrates how to add and select line after line in an EditorGadget and always keep the last line visible.
by Shardik
Wed Sep 03, 2025 5:52 pm
Forum: Feature Requests and Wishlists
Topic: BLOG: API Programming: What’s behind the PB GUI objects
Replies: 3
Views: 6379

Re: BLOG: API Programming: What’s behind the PB GUI objects


Wouldn't it be cool if the content were an official and up-to-date part of the IDE or help section?

That's a very nice idea!


Because I'm not sure when reading it whether it's up to date.

You are right that the GUI object table is not up-to-date. For MacOS it's still displaying the Carbon ...