Search found 1021 matches

by mestnyi
Sat Nov 15, 2025 9:59 am
Forum: Off Topic
Topic: Free, Opensource…
Replies: 19
Views: 1819

Re: Free, Opensource…

What are you talking about, kid?)))
by mestnyi
Sun Nov 09, 2025 5:34 pm
Forum: Coding Questions
Topic: Hex Color values reverse the Red and Blue
Replies: 6
Views: 447

Re: Hex Color values reverse the Red and Blue


Inside your program, no one will see how you wrote the color code. You already know about this problem and always set the color correctly. If you read the color from an ini file, simply flip it when reading:

ColorValidate()
Procedure RGBtoBGR(c)
; ProcedureReturn RGB(Blue(c), Green(c), Red(c ...
by mestnyi
Sun Nov 09, 2025 9:18 am
Forum: Coding Questions
Topic: Turn off Canvas Events during a MessageRequester() is open
Replies: 7
Views: 547

Re: Turn off Canvas Events during a MessageRequester() is open

In fact, this is the correct solution. Use the DisableWindow( ) function. As for the events, they should have worked until I enabled DisableWindow( )
by mestnyi
Thu Nov 06, 2025 9:13 pm
Forum: Coding Questions
Topic: Add transparency to color
Replies: 11
Views: 1648

Re: Add transparency to color

So this was supposed to work?
Global BackColor.l = RGBA(255, 0, 255, 150)
; Make an image with a pink background (we want the pink color to be transparent)
CreateImage(0, 256, 256, 32, BackColor)

; Put a red circle on it
StartDrawing(ImageOutput(0))
FrontColor(RGB(255, 0, 0))
BackColor(BackColor ...
by mestnyi
Wed Nov 05, 2025 8:39 pm
Forum: Linux
Topic: mouse wheel
Replies: 3
Views: 843

Re: mouse wheel

Hi mk-soft , thank you for sending it. Turned out the problem was that the container didn't work without the flag.
EnableExplicit

ImportC ""
gdk_event_get_scroll_deltas(*Event, *delta_x, *delta_y)
EndImport

Structure GdkEventScrollEx Extends GdkEventScroll
deltaX.d
deltaY.d
is_stop.l ...
by mestnyi
Tue Nov 04, 2025 10:59 pm
Forum: Linux
Topic: mouse wheel
Replies: 3
Views: 843

mouse wheel

Can you help me? Why is this not working? That is, delta(x&y) equals zero.

EnableExplicit

ImportC ""
gdk_event_get_scroll_deltas(*Event, *delta_x, *delta_y)
EndImport

Procedure signal_event( *self, *event.gdkeventscroll, user_data )
Protected deltaX.d, deltaY.d

If *event\type = #GDK_SCROLL ...
by mestnyi
Wed Oct 29, 2025 11:21 am
Forum: Coding Questions
Topic: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
Replies: 12
Views: 763

Re: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?

The problem I think is in the return type. [.i .l]
He also tormented me a lot. :D
Oops I'm late it turns out
by mestnyi
Tue Oct 14, 2025 5:44 am
Forum: Coding Questions
Topic: canvas lost focus
Replies: 5
Views: 783

Re: canvas lost focus

BarryG wrote: Thu Oct 02, 2025 12:07 pm What if he's changing the focus to another gadget by clicking with the mouse?
My problem is visible immediately after compiling the code.
by mestnyi
Tue Oct 14, 2025 5:42 am
Forum: Coding Questions
Topic: canvas lost focus
Replies: 5
Views: 783

Re: canvas lost focus

infratec wrote: Thu Oct 02, 2025 11:46 am Don't you need

Code: Select all

#PB_Canvas_Keyboard
for keyboard stuff?
Maybe it should, but that's not the point.
The point is that in Mac OS, an infinite loop starts, whereas in Windows, there is no such thing.
by mestnyi
Tue Oct 14, 2025 5:36 am
Forum: Coding Questions
Topic: child window
Replies: 1
Views: 315

child window

in mac OS
When closing the main window, why doesn't the child window close like in Windows? This is why there's no visible window and a warning that says "at least one window must be open."

If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget ...
by mestnyi
Thu Oct 02, 2025 8:48 am
Forum: Coding Questions
Topic: canvas lost focus
Replies: 5
Views: 783

canvas lost focus

in mac os is this bug?

Procedure lostfocus( )
Debug "lostfocus"
SetActiveGadget( - 1 )
EndProcedure

OpenWindow(1, 0, 0, 320, 400, "bug", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(1, 10, 10, 300, 300, #PB_Canvas_DrawFocus )
BindGadgetEvent(1, @lostfocus( ), #PB_EventType ...
by mestnyi
Thu Mar 27, 2025 7:26 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3378

Re: [done] RunProgram whis text

I would like to do the same for Linux and macos. How do I do this?
by mestnyi
Thu Mar 06, 2025 1:31 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2625

Re: What's going on here?

Kiffi wrote: Thu Mar 06, 2025 1:16 pm Have a look at what it looks like in my Notepad++:

Image

(ZWNBSP means "ZERO WIDTH NO-BREAK SPACE")
Wow, now what, how do I deal with this?
by mestnyi
Thu Mar 06, 2025 1:01 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2625

Re: What's going on here?

Kiffi wrote: Thu Mar 06, 2025 12:40 pm not here.

In both cases: Window 1 1
I looked
It's the browser that fixes it.
Can you download and watch the "1.pb" file from here?
https://github.com/mestnyi33/widget