Search found 916 matches

by mestnyi
Wed Apr 17, 2024 8:53 pm
Forum: Off Topic
Topic: In what version was the canvas added and in what year?
Replies: 2
Views: 150

In what version was the canvas added and in what year?

In what version was the canvas added and in what year?
by mestnyi
Sun Apr 14, 2024 9:26 pm
Forum: Tricks 'n' Tips
Topic: Mac-os transparent canvas gadget
Replies: 2
Views: 239

Re: Mac-os transparent canvas gadget

mac os BIG SUR
by mestnyi
Sun Apr 14, 2024 9:24 pm
Forum: Coding Questions
Topic: Can you check this out? (mac os)
Replies: 26
Views: 4719

Re: Can you check this out? (mac os)

You need to check it on Mac OS :D
by mestnyi
Thu Apr 11, 2024 9:23 pm
Forum: Tricks 'n' Tips
Topic: Mac-os transparent canvas gadget
Replies: 2
Views: 239

Mac-os transparent canvas gadget

Procedure TransparentCanvas( canvas ) If StartDrawing(CanvasOutput(canvas)) FillMemory( DrawingBuffer(), DrawingBufferPitch() * OutputHeight()) StopDrawing() EndIf EndProcedure If OpenWindow(0, 0, 0, 220, 220, "Canvas container example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ...
by mestnyi
Thu Apr 11, 2024 9:02 pm
Forum: Coding Questions
Topic: Can you check this out? (mac os)
Replies: 26
Views: 4719

Re: Can you check this out? (mac os)

can you check what the "LeftClickEvent()" procedure returns? ; https://www.purebasic.fr/english/viewtopic.php?t=60782 Procedure LeftClickEvent() Debug "click" Debug Str(EventMenu()) ; why return 111? Debug Str(EventGadget()) ; why return 111? Debug Str(EventWindow()) EndProcedure...
by mestnyi
Tue Dec 26, 2023 9:55 am
Forum: Coding Questions
Topic: Disable scrollbar
Replies: 6
Views: 1022

Re: Disable scrollbar

OpenWindow(0, 0, 0, 400, 400, "Test Scrollbar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ScrollBarGadget(0, 10, 380, 380, 20, 0, 32, 8) SetGadgetAttribute(0, #PB_ScrollBar_Maximum, 0) SetGadgetAttribute(0, #PB_ScrollBar_PageLength, 1) If GetGadgetAttribute(0, #PB_ScrollBar_Maxim...
by mestnyi
Mon Dec 25, 2023 3:31 pm
Forum: Applications - Feedback and Discussion
Topic: IconEditor
Replies: 7
Views: 1886

Re: IconEditor

works great
by mestnyi
Mon Dec 25, 2023 4:52 am
Forum: Coding Questions
Topic: delete map element
Replies: 10
Views: 1050

Re: delete map element

This approach is unacceptable, I think, do you know why? because "deletemapelement()" is inside "procedure free()" If you delete it like this, it always works well. :( ForEach enumRoot( ) Debug enumRoot( )\class FreeGadget( enumRoot( )\canvas\gadget ) ; CloseWindow( enumRoot( )\c...
by mestnyi
Sun Dec 24, 2023 3:12 pm
Forum: Coding Questions
Topic: delete map element
Replies: 10
Views: 1050

Re: delete map element

Why does it work here, but not in the real example? https://github.com/mestnyi33/widget/blob/macos/examples/container's/root/waitclose.pb when a map is created with this sequence window_2_root window_1_root window_0_root or window_0_root window_2_root window_1_root :( ; EnableExplicit Structure canv...
by mestnyi
Thu Dec 07, 2023 12:05 am
Forum: Coding Questions
Topic: PostEvent no send
Replies: 5
Views: 495

Re: PostEvent no send

how does it interrupt MessageRequester?
by mestnyi
Wed Dec 06, 2023 10:09 pm
Forum: Coding Questions
Topic: PostEvent no send
Replies: 5
Views: 495

Re: PostEvent no send

How come you don’t understand me?
mk-soft wrote: Wed Dec 06, 2023 8:18 pm Two run levels cannot run simultaneously under Linux or macOS.
How does MessageRequester do this?

Don't try to give me options, or better yet, help me with examples of binding gadget window events using API
by mestnyi
Wed Dec 06, 2023 8:13 pm
Forum: Coding Questions
Topic: message
Replies: 11
Views: 795

Re: message

anything but what I need, that's your intention? :) if you can help make my example work, you are welcome. I don't need anything else. That's the point. What you've presented isn't going to work. Why? this works in Windows, now I need the same in Mac OS and Linux, Linux I think I’ll figure it out m...
by mestnyi
Wed Dec 06, 2023 8:01 pm
Forum: Coding Questions
Topic: message
Replies: 11
Views: 795

Re: message

anything but what I need, that's your intention? :)
if you can help make my example work, you are welcome. I don't need anything else.
by mestnyi
Wed Dec 06, 2023 6:16 pm
Forum: Coding Questions
Topic: PostEvent no send
Replies: 5
Views: 495

Re: PostEvent no send

Code: Select all

 ; macos bug no post event
   PostEvent( #PB_Event_Gadget, 0,0, #PB_EventType_FirstCustomValue )
   
Do you think this is how it should be? that is, it should not send a message in my example?
by mestnyi
Wed Dec 06, 2023 5:57 pm
Forum: Coding Questions
Topic: message
Replies: 11
Views: 795

Re: message

because WaitWindowEvent() cannot be used inside a BindEvent and I need this "Opens a blocking requester to display some information. The program execution is totally stopped until the user close the requester." and in general I don’t like the built-in MessageRequester because it always ope...