Search found 917 matches

by mestnyi
Tue Dec 26, 2023 9:55 am
Forum: Coding Questions
Topic: Disable scrollbar
Replies: 6
Views: 1015

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: 1846

Re: IconEditor

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

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: 1035

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: 477

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: 477

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: 774

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: 774

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: 477

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: 774

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...
by mestnyi
Wed Dec 06, 2023 5:52 pm
Forum: Coding Questions
Topic: MessageRequester constants
Replies: 4
Views: 428

Re: MessageRequester constants

Specifically, on Windows, #PB_MessageRequester_Warning has a two significant bit value not a single bit value and there is an overlap. exactly why is this so? These values aren't intended to hang around to provide persistent state information. They're intended for transient and disposable dialogs. ...
by mestnyi
Wed Dec 06, 2023 9:59 am
Forum: Coding Questions
Topic: message
Replies: 11
Views: 774

Re: message

ok, what should I call it? Tell me, I’ll call it that
by mestnyi
Tue Dec 05, 2023 11:54 pm
Forum: Coding Questions
Topic: message
Replies: 11
Views: 774

Re: message

Kiffi wrote: Tue Dec 05, 2023 11:28 pm Please be so kind and choose meaningful subjects for your requests. I already had to adapt your last thread.
How can I understand this?
by mestnyi
Tue Dec 05, 2023 11:24 pm
Forum: Coding Questions
Topic: MessageRequester constants
Replies: 4
Views: 428

MessageRequester constants

now it's the other way around, it works fine on Mac and Linux, but on Windows it gets mixed up. ;\\ ; win ; mac & lin ; Debug #PB_MessageRequester_YesNoCancel ; 3 ; 2 ; Debug #PB_MessageRequester_YesNo ; 4 ; 1 ; Debug #PB_MessageRequester_Yes ; 6 ; 6 ; Debug #PB_MessageRequester_Error ; 16 ; 8 ;...
by mestnyi
Tue Dec 05, 2023 11:18 pm
Forum: Coding Questions
Topic: PostEvent no send
Replies: 5
Views: 477

PostEvent no send

now on the contrary, it works fine in Windows, but in Mac and Linux the message is not sent. Procedure Quit( ) ;\\ stop main loop CompilerSelect #PB_Compiler_OS CompilerCase #PB_OS_Linux gtk_main_quit_( ) CompilerCase #PB_OS_Windows PostQuitMessage_( 0 ) CompilerCase #PB_OS_MacOS CocoaMessage( 0, Co...