I think that would be the second step. First infratec wants to copy an image into the clipboard. Then he wants to copy the image from the clipboard into a finder directory.
Search found 1624 matches
- Mon Apr 24, 2023 8:38 pm
- Forum: Mac OSX
- Topic: Need to copy a file/image to clipboard
- Replies: 10
- Views: 873
Re: Need to copy a file/image to clipboard
- Mon Apr 24, 2023 8:34 pm
- Forum: Mac OSX
- Topic: Need to copy a file/image to clipboard
- Replies: 10
- Views: 873
Re: Need to copy a file/image to clipboard
Drag 'n drop of an image is also working on MacOS without any API (successfully tested on MacOS 11.7.6 'Big Sur' with PB 6.01): EnableExplicit #TestImage = #PB_Compiler_Home + "examples/sources/Data/PureBasicLogo.bmp" If LoadImage(0, #TestImage) = 0 MessageRequester("Error", &quo...
- Mon Apr 24, 2023 7:58 pm
- Forum: Mac OSX
- Topic: Need to copy a file/image to clipboard
- Replies: 10
- Views: 873
- Mon Apr 24, 2023 6:48 pm
- Forum: Mac OSX
- Topic: Need to copy a file/image to clipboard
- Replies: 10
- Views: 873
Re: Need to copy a file/image to clipboard
Goal: Copy a file (an image) into the clipboard, so that it is possible to insert it into the finder directory. To copy an image into the clipboard and read it back from the clipboard is possible even on MacOS without any API (successfully tested on MacOS 11.7.6 'Big Sur' with PB 6.01): EnableExpli...
- Wed Apr 12, 2023 10:12 am
- Forum: Coding Questions
- Topic: "waiting" type progress bar...
- Replies: 18
- Views: 972
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...
- Sat Mar 18, 2023 11:48 pm
- Forum: Coding Questions
- Topic: SSID name
- Replies: 4
- Views: 359
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...
- Fri Mar 10, 2023 9:10 pm
- Forum: Coding Questions
- Topic: TreeGadget Drag and Drop
- Replies: 2
- Views: 161
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...
- Wed Mar 01, 2023 10:25 pm
- Forum: Coding Questions
- Topic: Calculate Y coordinate of TreeGadget item
- Replies: 3
- Views: 330
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...
- Sat Feb 25, 2023 11:57 am
- Forum: Coding Questions
- Topic: Listicongadget column identity
- Replies: 23
- Views: 1450
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...
- Fri Feb 24, 2023 10:52 pm
- Forum: Coding Questions
- Topic: Listicongadget column identity
- Replies: 23
- Views: 1450
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...
- Thu Feb 23, 2023 6:22 pm
- Forum: Coding Questions
- Topic: Listicongadget column identity
- Replies: 23
- Views: 1450
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.
By the way, you had created that linked thread from 2015.
- Wed Feb 22, 2023 6:56 pm
- Forum: Mac OSX
- Topic: Event click on ListIconGadget-Header
- Replies: 13
- Views: 1620
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...
- Tue Feb 21, 2023 5:07 pm
- Forum: Mac OSX
- Topic: Event click on ListIconGadget-Header
- Replies: 13
- Views: 1620
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, *...
- Mon Feb 20, 2023 7:30 pm
- Forum: Mac OSX
- Topic: cocoa function
- Replies: 11
- Views: 868
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...
- Thu Feb 16, 2023 9:23 am
- Forum: Mac OSX
- Topic: [PB Cocoa] Methods, Tips & Tricks
- Replies: 228
- Views: 438380
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...