Search found 1015 matches

by mestnyi
Wed Oct 29, 2025 11:21 am
Forum: Coding Questions
Topic: $FF0000FF <> RGBA(255, 0, 0, 255) .... why?
Replies: 12
Views: 172

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

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

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

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

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

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

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

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
by mestnyi
Thu Mar 06, 2025 12:48 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3141

Re: RunProgram whis text

ChrisR wrote: Wed Mar 05, 2025 7:41 pm Well done :)
Looks old now, it's probably better done in the example here
the only thing without this line is text, hieroglyphs.

Code: Select all

WriteStringFormat(hTempFile, #PB_UTF8)
         
by mestnyi
Thu Mar 06, 2025 12:40 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3141

Re: RunProgram whis text





with your example, a wheel is spinning over the cursor all the time. Why can it be?

Because your code contains an error, it is trying to tell you about it, but since the program is hidden you cannot see this. I assume that the debugging mode could derive an error, but since there is ...
by mestnyi
Thu Mar 06, 2025 12:37 pm
Forum: Off Topic
Topic: What's going on here?
Replies: 9
Views: 2479

What's going on here?

Code: Select all

func$ = "Window" ; debug Window 1 0

; comment\uncomment
; func$ = "Window" ; debug Window 0 1

Debug ""+func$ +" "+ Bool(func$ = "Window") +" "+ Bool(func$ = "Window")
What's going on here? Why do the same words look different?
by mestnyi
Wed Mar 05, 2025 7:31 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3141

Re: RunProgram whis text

ChrisR wrote: Wed Mar 05, 2025 7:24 pm I thought it was for my code, I tried and couldn't understand.
I hadn't seen that AZJIO had published a code snippet and I don't have the wheel!
Yours is working, I've already found it on githube SweetyVD :D
by mestnyi
Wed Mar 05, 2025 6:57 pm
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3141

Re: RunProgram whis text

AZJIO wrote: Wed Mar 05, 2025 10:14 am
with your example, a wheel is spinning over the cursor all the time. Why can it be?
by mestnyi
Wed Mar 05, 2025 8:42 am
Forum: Coding Questions
Topic: [done] RunProgram whis text
Replies: 24
Views: 3141

Re: RunProgram whis text


I saw that my application was quoted.
For the preview, the generated code is written to a temporary file, compiled and then executed, as Axolotl wrote.
With a BIG thanks for the speed of the ASM compiler, to have the preview in less than 2 seconds.

Seeing the help, I didn't even try to do it any ...