Search found 26 matches

by DannyWeijermans
Wed Jan 15, 2025 8:29 pm
Forum: Mac OSX
Topic: Drag EventHandler in OSX
Replies: 2
Views: 4800

Re: Drag EventHandler in OSX

PS, I solved it tracking also the MouseUp status using Cocoa..

Thanks so much, mk-soft!
In my case it's not text,
but a WindowedScreen containing a picture.
And I want to select a region in this picture.
I know how to get the first position when clicked,
but as soon as you start to drag,
I don ...
by DannyWeijermans
Wed Jan 15, 2025 10:43 am
Forum: Mac OSX
Topic: Drag EventHandler in OSX
Replies: 2
Views: 4800

Drag EventHandler in OSX

Hi all!

Question:
Could anyone explain
how an EventHandler works in OSX for 'dragging'
(making a selection horizontally)?

It's clear about the 'DragStartEvent',
but don't know how to check for the 'DragEndEvent'
(it's not a drop, but to create a selection in a WindowedScreen)

PS, maybe it's ...
by DannyWeijermans
Fri Jan 03, 2025 7:34 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Great Shardik!
That's THE trick! ;)
Thanks for all!
Makes sense..
No problem about the speed:
I even like it more ;)
Regards & a big THUMBS UP!!
Danny Weijermans - The Netherlands

PS, great that it's still compatible with the 'regular' StatusBarProgress 'setter' :
StatusBarProgress(0, 1 ...
by DannyWeijermans
Fri Jan 03, 2025 5:39 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Hi Shardik!
The problem doesn't occur in your code.

The 'blinking' instead of moving sideways
occurs even when I only change the ProgressBarValue

(only added the 'ProgressBarValue + 10' line in your code:)

Case #PB_Event_Gadget
If CocoaMessage(0, ProgressBarField, "isIndeterminate") = #YES ...
by DannyWeijermans
Thu Jan 02, 2025 10:51 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

PS, I thought: maybe the StatusBarProgress PureBasic code is interfering then??
by DannyWeijermans
Thu Jan 02, 2025 10:29 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Happy NewYear!
Still something strange in this, Shardik!
After the ProgressBarValue was set to a new number
and after the ProgressBarField was set to Determinate (setIndeterminate : #NO)
then when setting the ProgressBarField to Indeterminate again,
it shows a different animation (not a 'block ...
by DannyWeijermans
Mon Dec 30, 2024 12:40 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Wow again!
Working great here on OSX Sequoia 15.2 using PureBasic 6.20 Beta 2 !
Thanks so much again, Shardik!
I love how it works now..
Regards!
Danny
by DannyWeijermans
Sun Dec 29, 2024 12:57 am
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Hi Shardik!
1 more question about it:
how to set it in Determinate mode again?
I tried it with
CocoaMessage(0, ProgressBarField, "setIndeterminate:", #NO) ; ----- UnSet ProgressBarField to indeterminate
CocoaMessage(0, ProgressBarField, "stopAnimation:", 0)
but the ProgressBarfield then takes a ...
by DannyWeijermans
Sat Dec 28, 2024 10:34 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

W O W !
That's SO awesome, Shardik!!!
Thanks so much (again!!)
Works like a charm,
and good that it's in the wish list:
would be good to have as a 'standard' option ;)

Regards,
and I wish you and all fellow PureBasic coders
a GOOD 2025
with GOOD HEALTH & PEACE !
by DannyWeijermans
Sat Dec 28, 2024 12:15 am
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

true intratec,
but would be really nice ;)
and I guess it should be possible..
by DannyWeijermans
Fri Dec 27, 2024 6:11 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

Re: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Hi!
Thanks for all answers!

Yes, but it's different (it seems) for the ProgressBar in the Status Gadget
when I test it on this.
(StatusBarProgress(\MyStatusBar, #StatusBarProgress, #PB_ProgressBar_Unknown)
it doesn't work..

Any thoughts on this?
Regards!
Danny
by DannyWeijermans
Fri Dec 27, 2024 1:08 pm
Forum: Coding Questions
Topic: #PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress
Replies: 24
Views: 7212

#PB_ProgressBar_Unknown SetGadgetState() in StatusBarProgress

Dear all,
I'd like to use the PB_ProgressBar_Unknown feature
in the StatusBarProgress.
Anyone knows if or how this would be possible?
I'm in OSX..
Thanks for any thoughts!
Merry belated xmas!!
Peace in 2025!
Danny
by DannyWeijermans
Fri Nov 29, 2024 9:19 pm
Forum: Coding Questions
Topic: libmpv
Replies: 18
Views: 3526

Re: libmpv

aha! great!
and I noticed that in your code,
mpv_error_string
should be
mpv_error_string_
(with an underscore at the end)
Okay: I'll dive some deeper in this,
since MPV really kicks ass ;)
Can I ask you more (pm) if I have any more questions about it?
Regards! Danny Weijermans