Search found 1457 matches

by ChrisR
Mon Jan 26, 2026 1:57 pm
Forum: Coding Questions
Topic: Disable ListIcon, but keep it interactable
Replies: 10
Views: 257

Re: Disable ListIcon, but keep it interactable

I like the first one with the BorderLess window width - GetSystemMetrics_(#SM_CXHTHUMB) and SetLayeredWindowAttributes_(WinID,0, 1 ,#LWA_ALPHA)
Works but scrolling with the mouse wheel is missing.

otherwise, the same as Michael but with Gadget Item Data

Global disflag

Procedure Test()
Protected ...
by ChrisR
Mon Jan 26, 2026 12:59 pm
Forum: Coding Questions
Topic: Disable ListIcon, but keep it interactable
Replies: 10
Views: 257

Re: Disable ListIcon, but keep it interactable

Michael Vogel wrote: Mon Jan 26, 2026 12:31 pm It is, but not very elegant...
It works well and seems more elegant than having to go through SetWindowCallback()
You can just add SetGadgetState(0,-1) after SetGadgetText(2,"Disabled") otherwise, we can reselect the previous selection without calling test() callback
by ChrisR
Mon Jan 26, 2026 12:30 pm
Forum: Bugs - C backend
Topic: [6.30 X64 C-Backend] OnErrorCall()
Replies: 8
Views: 402

Re: [6.30 X64 C-Backend] OnErrorCall()


It seems to work well here on Win11 x64, without the debugger and with both x86/x64 ASM and C compilers (optimized or not).

CompilerIf #PB_Compiler_Debugger = #False
OnErrorCall(@ErrorHandler())
CompilerEndIf

Hmm, strange!, it seems to depend on the error, I get it here .
But using GPI's ...
by ChrisR
Mon Jan 26, 2026 11:51 am
Forum: Bugs - C backend
Topic: [6.30 X64 C-Backend] OnErrorCall()
Replies: 8
Views: 402

Re: [6.30 X64 C-Backend] OnErrorCall()

It seems to work well here on Win11 x64, without the debugger and with both x86/x64 ASM and C compilers (optimized or not).

Code: Select all

CompilerIf #PB_Compiler_Debugger = #False
  OnErrorCall(@ErrorHandler())
CompilerEndIf
by ChrisR
Mon Jan 26, 2026 11:42 am
Forum: Bugs - IDE
Topic: PureBasic 6.40 alpha 1 Open Save File
Replies: 2
Views: 219

Re: PureBasic 6.40 alpha 1 Open Save File

I don't know if it can helps, but my application compiled with 6.40a1 also crashes on Open(Save)FileRequester, with OnErrorCall, I have:
Error Message: Unknown error code
Source Code File\Line = ProcedureReturn Result (#PB_ProcessPureBasicEvents) in my WinCallback

However, I tried to reproduce it ...
by ChrisR
Fri Jan 23, 2026 10:47 pm
Forum: Bugs - IDE
Topic: PureBasic 6.40 alpha 1 Open Save File
Replies: 2
Views: 219

PureBasic 6.40 alpha 1 Open Save File

The IDE include in PB 6.40 alpha 1 (windows x64) crashes on Open or Save File
by ChrisR
Fri Jan 23, 2026 8:45 pm
Forum: Announcement
Topic: PureBasic 6.40 alpha 1 is ready, surprise inside !
Replies: 44
Views: 2301

Re: PureBasic 6.40 alpha 1 is ready, surprise inside !

It's a real surprise, it was expected.
Thanks a lot for your courage to take over the strings management after 30 years of loyal service.
With C Optimizer my times are PB 6.30 = 92 ms, PB 6.40 alpa 1 = 6 ms, waouh
I tested it with ExString to see if it was nearing the end of its life but not yet ...
by ChrisR
Thu Jan 22, 2026 3:02 pm
Forum: Coding Questions
Topic: Reading or writing inside a LIST() without move his current position [Resolved]
Replies: 9
Views: 333

Re: Reading or writing inside a LIST() without move his current position

To work on a selected element while staying in the current index element, I often use this macro, borrowed from a Stargate code

Structure StObject
ObjectID.i
Name.s
EndStructure

Global NewList Object.StObject()

Macro _ObjectID_(pObject, IDObject, ReturnProcedureValue = #False ...
by ChrisR
Thu Jan 22, 2026 12:25 pm
Forum: General Discussion
Topic: Sort arrays, lists, and maps in variableViewer!
Replies: 0
Views: 173

Sort arrays, lists, and maps in variableViewer!

When debugging in variableViewer, arrays, lists, and maps are not sorted by name by default.

In VariableDebug.pb, the default sorting is done wiith
; Set default sorting values (name column, ascending)
;
*Debugger\ArraySortColumn = 0
*Debugger\ArraySortDirection = 1
*Debugger ...
by ChrisR
Thu Jan 22, 2026 10:57 am
Forum: Game Programming
Topic: Platformer 2D Opengl
Replies: 16
Views: 687

Re: Platformer 2D Opengl

Thanks for sharing. I'm not really into games, but it's cool to see how it's done for running, jumping...

To test it, I added the code snippets listed above, thanks
GetAsyncKeyState_, glVertex2f *2 and Event = WindowEvent()
it's nice, now I'd like to see him climb up and down a block and draw his ...
by ChrisR
Thu Jan 22, 2026 10:15 am
Forum: Announcement
Topic: CX compiler + VM (All Platforms)
Replies: 15
Views: 782

Re: CX compiler + VM (All Platforms)

This is really interesting and seems like an amazing job.
It's an unfamiliar field for me, maybe it can help me learn a bit more,
if I can understand its goal, starting with SMaag's questions above and know what you have planned next, debugger,...

I have 3 cx examples with an out-of-bounds array ...
by ChrisR
Fri Jan 16, 2026 9:36 pm
Forum: Bugs - IDE
Topic: ListIcon Project files dialog does not scroll
Replies: 0
Views: 213

ListIcon Project files dialog does not scroll

In the project options, under the Project Files tab, scrolling does not work for the ListIcon "project files" dialog box, nor does the scroll bar in latest version 6.30

By removing #PB_Explorer_FullRowSelect for the listicon id="#GADGET_Project_FileList" In PureBasicIDE\dialogs\Projects.xml,
Seems ...
by ChrisR
Wed Jan 14, 2026 11:46 pm
Forum: Applications - Feedback and Discussion
Topic: IceDesign GUI designer
Replies: 767
Views: 345238

Re: IceDesign GUI designer

Hi le_magn,
Oh yes, I should have written it down :?
ResizeImagesHelper.pbi was renamed to ResizeHelper.pbi in the previous version 2.40.
The option for scaling font sizes was included in this helper file, and I thought it would be best to rename it.
In fact, as you have seen, it creates an ...
by ChrisR
Tue Jan 13, 2026 6:05 pm
Forum: Game Programming
Topic: PureColorLines
Replies: 11
Views: 460

Re: PureColorLines

A nice, simple, and fun little game, thanks MindphazerGPT :)
It would be interesting to know how Chat GPT really helped you and all the work you had to do by yourself and to correct it.

Image
by ChrisR
Tue Jan 13, 2026 5:25 pm
Forum: Coding Questions
Topic: Simpliest method compare numbers [Resolved]
Replies: 29
Views: 1364

Re: Simpliest method compare numbers [Resolved]

Me too, you gave me a big smile :lol: