Search found 824 matches

by Axolotl
Sat Oct 04, 2025 10:52 am
Forum: Coding Questions
Topic: input()?
Replies: 2
Views: 122

Re: input()?

well, it is always a good idea to look at the docs/help.
Easy by pressing F1 on a keyword.
Anyway, I have done the following for your convenience:

; Important Remark (borrowed from Help):
;
; On Microsoft Windows, there are two different executable formats: Win32 and Console.
; If you want to ...
by Axolotl
Fri Oct 03, 2025 4:07 pm
Forum: Tricks 'n' Tips
Topic: Personalized information panel
Replies: 10
Views: 597

Re: Personalized information panel

Jacobus wrote: Fri Oct 03, 2025 3:48 pm .....
I didn't use .l, Everything is in interger and it works in 64-bit.
.....
Honestly, you did in your inital code and you are right. Your updated code is 64-bit ready.
by Axolotl
Fri Oct 03, 2025 11:28 am
Forum: Applications - Feedback and Discussion
Topic: PureHelp
Replies: 4
Views: 156

Re: PureHelp

The image looks very cool.
Thanks for sharing.
by Axolotl
Fri Oct 03, 2025 11:15 am
Forum: Tricks 'n' Tips
Topic: Personalized information panel
Replies: 10
Views: 597

Re: Personalized information panel

Well, I like the 0 to 100% value better than 0 to 255, but it is up to you of cause.

One more thing I forgot to mention: you should always check the data type (especially for Windows handles). Older codes often use the extension .l, which can cause problems on 64-bit systems.

BTW: Now your ...
by Axolotl
Wed Oct 01, 2025 4:38 pm
Forum: Tricks 'n' Tips
Topic: Personalized information panel
Replies: 10
Views: 597

Re: Personalized information panel

Nice, thanks for sharing.

Just a small hint: your reference links about Windows Transparency are very old.

; acc. to M$
; To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetWindowLongPtr.
; Replace SetWindowLong_() with SetWindowLongPtr_()
; and ...
by Axolotl
Sat Sep 27, 2025 4:14 pm
Forum: Coding Questions
Topic: Command line compiler with #PB_Editor_CreateExecutable...
Replies: 2
Views: 149

Re: Command line compiler with #PB_Editor_CreateExecutable...

The question is how can I use them with the IDE values.
The help shows me this, but I don't have the IDE-internal counter values.

Code: Select all

/CONSTANT MyConstant=10 
by Axolotl
Sat Sep 27, 2025 4:00 pm
Forum: Coding Questions
Topic: Command line compiler with #PB_Editor_CreateExecutable...
Replies: 2
Views: 149

Command line compiler with #PB_Editor_CreateExecutable...

Using the command line compiler with source code that contains the following line results in an error.
#ProgramVersion$ = "0." + #PB_Editor_BuildCount + "." + #PB_Editor_CompileCount

I've thrown together the following for this message.

EnableExplicit

; Error with external compiler use ...
by Axolotl
Wed Sep 24, 2025 3:10 pm
Forum: Coding Questions
Topic: [SOLVED] Move to line position in a listiconGadget?
Replies: 3
Views: 391

Re: [SOLVED] Move to line position in a listiconGadget?

Windows only:

Code: Select all

SendMessage_(GadgetID(Gadget), #LVM_ENSUREVISIBLE, Index, #False) ; lParam ==> #True if partially visible is okay. 
by Axolotl
Mon Sep 22, 2025 2:20 pm
Forum: Coding Questions
Topic: Mouse scrolling, How?
Replies: 3
Views: 400

Re: Mouse scrolling, How?

ok, I forgot.

the mousewheel message gives you the following button states as well

Procedure GET_KEYSTATE_WPARAM(wParam)
ProcedureReturn wParam & $FFFF ; LoWord()

; #MK_CONTROL ; 0x0008 The CTRL key is down.
; #MK_LBUTTON ; 0x0001 The left mouse button is down.
; #MK_MBUTTON ; 0x0010 The ...
by Axolotl
Mon Sep 22, 2025 2:07 pm
Forum: Coding Questions
Topic: Mouse scrolling, How?
Replies: 3
Views: 400

Re: Mouse scrolling, How?

After a quick look at your code, here are some pointers.


; better use this functions (64-bit ready)
Protected style = GetWindowLongPtr_(hWnd, #GWL_EXSTYLE)
SetWindowLongPtr_(hWnd, #GWL_EXSTYLE, style | #WS_EX_LAYERED)

; you should add this (only for demo)
Procedure GET_WHEEL_DELTA_WPARAM ...
by Axolotl
Sun Sep 21, 2025 3:56 pm
Forum: Coding Questions
Topic: EditorGadget auto scroll to last line ...
Replies: 17
Views: 921

Re: EditorGadget auto scroll to last line ...

For windows and acc. to MSDN: WM_VSCROLL message
SendMessage_(GadgetID(0), #WM_VSCROLL, #SB_BOTTOM, 0)


BTW: This checks whether the last line is visible or not.
Procedure IsGadgetLastItemVisible(Gadget)
Protected si.SCROLLINFO

si\cbSize = SizeOf(SCROLLINFO)
si\fMask = #SIF_ALL
If ...
by Axolotl
Fri Sep 19, 2025 3:51 pm
Forum: General Discussion
Topic: PureBasic Roadmap
Replies: 3
Views: 646

Re: PureBasic Roadmap

That's cool.

..... and because I'm curious.
Just a few questions that pop into my head when I hear/read about improvements.
Do you have a process for selecting from the (long) forum wish list?
Or are there completely different observations/insights that lead to new features?
What are the criteria ...
by Axolotl
Thu Sep 18, 2025 3:27 pm
Forum: Coding Questions
Topic: Right-click on a ComboBoxGadget
Replies: 13
Views: 890

Re: Right-click on a ComboBoxGadget

okay, new try based on my code from above.
Now, after open the Dropdownlist with LeftClick you can use either Left or Right Mouse Click to do the selection.
Easier to show than to describe.
Anyway the result is in the main loop. (I borrowed the #PB_Eventtype_RightClick for that)
Please bear in ...
by Axolotl
Tue Sep 16, 2025 4:24 pm
Forum: Feature Requests and Wishlists
Topic: #PB_Gadget_BorderLess
Replies: 6
Views: 548

Re: #PB_Gadget_BorderLess

There must be reasons why Fred hasn't implemented it in the first place. However, I don't know what they are.
Workarounds are always a bit cumbersome, but usually good enough to tide you over.
by Axolotl
Tue Sep 16, 2025 2:41 pm
Forum: Feature Requests and Wishlists
Topic: #PB_Gadget_BorderLess
Replies: 6
Views: 548

Re: #PB_Gadget_BorderLess

Well, he should have mentioned that we already discussed this in another post.
Re: Frames gadget