Search found 864 matches

by Axolotl
Wed Dec 31, 2025 10:43 am
Forum: General Discussion
Topic: Command Prompt vs. RunProgram Output
Replies: 2
Views: 188

Re: Command Prompt vs. RunProgram Output

Thanks infratec,
you are right. My mistake... Need to find a better/working example.
With the correct call of RunProgram() ; including the #PB_Program_Error at least this 'copy' example is not showing the issue.

Further investigation:
My current test object is the PB-Compiler.
Here, it is ...
by Axolotl
Tue Dec 30, 2025 5:14 pm
Forum: General Discussion
Topic: Command Prompt vs. RunProgram Output
Replies: 2
Views: 188

Command Prompt vs. RunProgram Output

EDIT: This test case example is not valid any more, because of my mistake, sorry. :oops:

I'm running into a problem. (I'm pretty sure this has already been mentioned in connection with the PB compiler calls).
What is my problem:
=> I'm missing the “error output” in RunProgram.

My Test Case ...
by Axolotl
Tue Dec 30, 2025 4:49 pm
Forum: Windows
Topic: Open the “Open with ” Dialog ...
Replies: 5
Views: 3966

Re: Open the “Open with ” Dialog ...

Perhaps you have a small code snippet?

If you just want to open the file with the corresponding program, the best way to do this is as follows:

Code: Select all

RunProgram("C:\Temp\GX_Test_00.bmp") ; <= change this filename to an existing one.
by Axolotl
Fri Dec 19, 2025 4:21 pm
Forum: Bugs - Windows
Topic: Issue with SetGadgetState() and SetGadgetItemState() on Windows
Replies: 16
Views: 924

Re: Issue with SetGadgetState() and SetGadgetItemState() on Windows

I'm not sure if the behavior is as described in the help section.
I tested the first two examples ListViewGadget() and ListIconGadget() with PB 630 b6.
In all of these cases (see below), the commands did not select any entries.

; The examples from above and acc. to help text for SetGadgetState ...
by Axolotl
Fri Dec 12, 2025 11:58 am
Forum: Coding Questions
Topic: Update a seperate Logging window
Replies: 5
Views: 373

Re: Update a seperate Logging window

In addition to the above post.
The error message indicates a “race condition.”
You may be calling the output before creating the window gadgets.
So: Before using the gadgets, simply check for their existence with IsGadget().

BTW: If the main loop is to be kept free of special events, there is also ...
by Axolotl
Wed Dec 10, 2025 4:44 pm
Forum: Coding Questions
Topic: Best workaround for SetMenuItemState?
Replies: 6
Views: 585

Re: Best workaround for SetMenuItemState?

well, I borrowed RASHAD's code and added my idea.
Hint: This may not work on every computer, or may not look good on other computers due to other screen settings.
Assumption: The font used is Segoe UI.


UsePNGImageDecoder()
LoadImage(1,#PB_Compiler_Home + "examples/sources/Data/ToolBar/Open.png ...
by Axolotl
Tue Dec 09, 2025 10:55 am
Forum: Announcement
Topic: PureBasic 6.30 beta 6 is ready !
Replies: 149
Views: 35812

Re: PureBasic 6.30 beta 5 is ready !

Thanks for the update.
by Axolotl
Tue Dec 09, 2025 10:50 am
Forum: Coding Questions
Topic: [SOLVED] Switch mouse cursor from arrow to hand
Replies: 4
Views: 457

Re: Switch mouse cursor from arrow to hand

Please try

Code: Select all

setcursor_(hCursor)
BTW: there are a lot of examples around. Just search for setcursor_
by Axolotl
Sat Dec 06, 2025 5:37 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 2286

Re: Simple PB code editor

So you're looking for an HTML editor with WYSIWYG (at least preview) and access to your web server via FTP?
And there's nothing suitable? Okay, understood.
by Axolotl
Sat Dec 06, 2025 5:29 pm
Forum: Coding Questions
Topic: [SOLVED] Reliable #WM_MOUSEWHEEL value?
Replies: 12
Views: 620

Re: Reliable #WM_MOUSEWHEEL value?

The difference between wParam and EventWParam() lies in the correct call position.
EventWParam() probably only returns valid values after calling WaitWindowEvent() (WindowEvent()) and not within the callback function.

BTW:
I do this acc. to the MSDN help pages ...


Procedure.w GET_WHEEL_DELTA ...
by Axolotl
Sat Dec 06, 2025 12:51 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 2286

Re: Simple PB code editor

Hey KCC,
I don't want to be rude, but just curious:
What exactly are you planning to do?
There are some good posts here in the forum based on Scintilla. Why isn't any of them suitable for your project?
P.S.: I would have included links, but you are already mentioned in all the posts (that I ...
by Axolotl
Sat Dec 06, 2025 12:39 pm
Forum: General Discussion
Topic: Passing selected files to their Default Program?
Replies: 3
Views: 345

Re: Passing selected files to their Default Program?

If you don't want to specify the related app, you can use different ways to detect the associated file extention.
Keep in Mind, that windows is doing this by the file extensions.
Easy Test with the cli tool

assoc [.ext[=[fileType]]]


All the stuff you need is in the registry (database ...
by Axolotl
Mon Dec 01, 2025 11:38 am
Forum: Coding Questions
Topic: Change Compiler Temp Folder / Can I?
Replies: 12
Views: 1175

Re: Change Compiler Temp Folder / Can I?

Yes, thanks for the hints.
Using it with my small RAM-Disk for PB compilation only.
My PBStart.cmd is a little more complex...
Since I use different PB versions via shortcuts, the launching in the script looks like this...


REM ... Checking existance and SET to temp temp folders.....
REM ...
by Axolotl
Mon Dec 01, 2025 11:26 am
Forum: Announcement
Topic: PureBasic 6.30 beta 6 is ready !
Replies: 149
Views: 35812

Re: PureBasic 6.30 beta 4 is ready !

I think with the release of the final version. Second Question: I don't know.
by Axolotl
Mon Dec 01, 2025 11:23 am
Forum: Coding Questions
Topic: Insert / Overtype mode
Replies: 3
Views: 639

Re: Insert / Overtype mode

This mode information is probably not stored/configurable in the keyboard.
I looked for an explanation in the Scintilla documentation, as there is a section on overriding.
To my knowledge, the mode is stored in the text control.

OverType (borrowed from Scintiall Doc)
SCI_SETOVERTYPE(bool ...