Search found 1609 matches

by Shardik
Wed Apr 12, 2023 10:12 am
Forum: Coding Questions
Topic: "waiting" type progress bar...
Replies: 18
Views: 984

Re: "waiting" type progress bar...

In PB 5.40 the new Flag #PB_ProgressBar_Unknown has been added to the ProgressBarGadget . And so it has become very easy to display a "waiting type" progress bar cross-platform: OpenWindow(0, 270, 100, 270, 70, "Wait animation") ProgressBarGadget(0, 10, 20, 250, 30, 0, 10) SetGad...
by Shardik
Sat Mar 18, 2023 11:48 pm
Forum: Coding Questions
Topic: SSID name
Replies: 4
Views: 363

Re: SSID name

I have tested the following example successfully on these operating systems: Linux Mint 19.3 'Tricia' x64 with Cinnamon and PB 6.00 x64 MacOS 11.7.4 'Big Sur' with PB 6.01 x64 MacOS 13.2.1 'Ventura' with PB 6.00 x64 Raspbian 11 'Bullseye' ARM 32-Bit with PB 6.00 Windows 10 Home x64 22H2 with PB 6.00...
by Shardik
Fri Mar 10, 2023 9:10 pm
Forum: Coding Questions
Topic: TreeGadget Drag and Drop
Replies: 2
Views: 164

Re: TreeGadget Drag and Drop

If you have a setup like in this image, you can't move Item2 directly to Directory0. Yes, you can. You can't drop Item2 from Directory5 directly onto Directory0 but you can drag Item2 onto Item1 (in Directory0) and Item2 will be inserted under Item1 (in Directory0). Only the first Item may be direc...
by Shardik
Wed Mar 01, 2023 10:25 pm
Forum: Coding Questions
Topic: Calculate Y coordinate of TreeGadget item
Replies: 3
Views: 333

Re: Calculate Y coordinate of TreeGadget item

I had already posted this cross-platform example on how to detect a clicked cell in a ListIconGadget. This method also works on MacOS in a TreeGadget. I have modified your example for MacOS to detect the clicked item, display its name and the cursor's y-position of the cursor above the item: EnableE...
by Shardik
Sat Feb 25, 2023 11:57 am
Forum: Coding Questions
Topic: Listicongadget column identity
Replies: 23
Views: 1464

Re: Listicongadget column identity

Thanks Shardik for testing I expected that so I am using always Maybe to be in the safe side :) I had seen your Maybe and I'm very grateful that you are cautious about the use in other operatings systems when not having tested it. I have already stated several times that I am very impressed about y...
by Shardik
Fri Feb 24, 2023 10:52 pm
Forum: Coding Questions
Topic: Listicongadget column identity
Replies: 23
Views: 1464

Re: Listicongadget column identity

But guys no one report if it works with Linux & Mac :D These are my test results with RASHAD's code and PB 6.00: Linux Mint 19.3 'Tricia' x64 : Column detection is very unreliable: Text on Line 0 in Column 1: Column 0 Text on Line 0 in Column 2: Column 18 Text on Line 0 in Column 3: Column 18 T...
by Shardik
Thu Feb 23, 2023 6:22 pm
Forum: Coding Questions
Topic: Listicongadget column identity
Replies: 23
Views: 1464

Re: Listicongadget column identity

Unfortunately you don't tell us your operating system. Therefore you may take a look into this cross-platform example which reports the clicked cell (row and column) in a ListIconGadget. It utilizes the procedure GetSelectedColumn().

By the way, you had created that linked thread from 2015. :wink:
by Shardik
Wed Feb 22, 2023 6:56 pm
Forum: Mac OSX
Topic: Event click on ListIconGadget-Header
Replies: 13
Views: 1634

Re: Event click on ListIconGadget-Header

@Lebostein, I have taken your last code example with 2 ListIconGadgets and modified it to correctly detect the clicked header cell and clicked row in both ListIconGadgets in PB 6.00: EnableExplicit #WindowID = 0 Define AppDelegate.I = CocoaMessage(0, CocoaMessage(0, 0, "NSApplication sharedAppl...
by Shardik
Tue Feb 21, 2023 5:07 pm
Forum: Mac OSX
Topic: Event click on ListIconGadget-Header
Replies: 13
Views: 1634

Re: Event click on ListIconGadget-Header

EnableExplicit #WindowID = 0 Define AppDelegate.I = CocoaMessage(0, CocoaMessage(0, 0, "NSApplication sharedApplication"), "delegate") Define DelegateClass.I = CocoaMessage(0, AppDelegate, "class") ProcedureC WillDisplayCell(Object.I, Selector.I, TableView.I, Cell.I, *...
by Shardik
Mon Feb 20, 2023 7:30 pm
Forum: Mac OSX
Topic: cocoa function
Replies: 11
Views: 878

Re: cocoa function

I have tested mk-soft's last code example on my iMac 2019 with MacOS 11.7.4' Big Sur' with PB 5.73 and PB 6.00 (Asm and C backend). In all tests the cursor is an open hand cursor when inside the window and changes to an arrow when over the titlebar or statusbar and when leaving the window. After ret...
by Shardik
Thu Feb 16, 2023 9:23 am
Forum: Mac OSX
Topic: [PB Cocoa] Methods, Tips & Tricks
Replies: 228
Views: 439987

Re: [PB Cocoa] Methods, Tips & Tricks

Well, that's weird. I copied your example without changing any character. I did it again, and have the same behaviour. If i select "Center" radio buttons, the columns are right justified And if i select "Right" radio buttons, the columns are centered. I'm on a Macbook Pro M1, ma...
by Shardik
Wed Feb 15, 2023 9:13 pm
Forum: Mac OSX
Topic: [PB Cocoa] Methods, Tips & Tricks
Replies: 228
Views: 439987

Re: [PB Cocoa] Methods, Tips & Tricks

When I click the "Center", the columns are right-justified And when i click "Right", the columns are centered Sorry, but I can't confirm your findings. I have just also tested my example on MacOS 13.2 and 13.2.1 'Ventura' and it works like a charm in PB 6.00 with Asm and C backe...
by Shardik
Tue Feb 14, 2023 12:47 pm
Forum: Mac OSX
Topic: Set alignment of ListIconGadget columns in PB 6
Replies: 16
Views: 1724

Re: Set alignment of ListIconGadget columns in PB 6

I have posted a new example that demonstrates how to justify text in the columns of a ListIconGadget. It works in PB 5.73 and earlier and in PB 6.00 and newer. It still uses the procedure SetListIconColumnJustification() but needs a callback in PB 6.00 and newer as deseven has already stated. The c...
by Shardik
Tue Feb 14, 2023 12:33 pm
Forum: Mac OSX
Topic: [PB Cocoa] Methods, Tips & Tricks
Replies: 228
Views: 439987

Re: [PB Cocoa] Methods, Tips & Tricks

I have modified my example to justify text in the columns of the ListIconGadget to work both in PB 5.73 and earlier and in PB 6.00 and newer. This has become necessary because Fred has changed internals of the cells in ListIconGadgets. In PB 6.0 Fred implemented the new PBIconTextCell which enables ...
by Shardik
Tue Feb 14, 2023 11:16 am
Forum: Coding Questions
Topic: Cross-platform column justification of ListIconGadget
Replies: 27
Views: 11428

Re: Cross-platform column justification of ListIconGadget

@Shardik: Can I include your code from above into the next version of my LIGEnhancements-module (with a proper comment about its origin, of course)? The module itself only works for Windows right now, but who knows the future... Yes, you may include the code into your LIGEnhancemant module. But on ...