Search found 2599 matches

by Michael Vogel
Mon Aug 11, 2025 8:12 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 7
Views: 564

Re: IDE Tool "Jump to Marker"

Thanks, HeX0R, added.
by Michael Vogel
Wed Aug 06, 2025 6:11 pm
Forum: Coding Questions
Topic: Get MouseLeave event while mouse button is pressed
Replies: 3
Views: 192

Get MouseLeave event while mouse button is pressed

Is there a simple way to get an event triggered when leaving the canvas area even when the mouse button is pressed? Using a full callback routine should work but then I've to fetch the mouse and gadget coordinates, take the dpi scaling into account, etc.


Procedure test()
Debug "*OUT ...
by Michael Vogel
Fri Jul 11, 2025 11:03 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 7
Views: 564

Re: IDE Tool "Jump to Marker"

Thanks for your hints, updated the source code in the first post (took a while because the forum is not reachable in all cases).

Concerning the API function I can't remember ever seen issues with negative values but maybe with high numbers - I think a simple 'and' would be enough for such cases ...
by Michael Vogel
Wed Jul 09, 2025 10:05 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 7
Views: 564

IDE Tool "Jump to Marker"

V1.1 - added option to jump to the procedure/macro header (by holding the shift key).



; Define Forum Marker Tool

; Jump to Marker V1.1 by Michael Vogel
; ------------------------------------

; Example for Tool Settings:
; --------------------------
; Command Line: %COMPILEFILE\..\..\Pure ...
by Michael Vogel
Wed Jul 09, 2025 10:02 am
Forum: Bugs - Documentation
Topic: [Done]Set/GetGadgetAttribute for ScrollAreaGadget
Replies: 1
Views: 248

[Done]Set/GetGadgetAttribute for ScrollAreaGadget

The documentation says the values are in pixels (for #PB_ScrollArea_InnerWidth, etc.), for me it looks like the values do match with gadget/windows units (PB6.04).
by Michael Vogel
Sun Jun 29, 2025 4:04 pm
Forum: Off Topic
Topic: Finally the board is back
Replies: 39
Views: 1942

Re: Finally the board is back

Whatever the intension for the last forum changes have been, it blocks actual browsers of multiple mobile platforms.

Samsung S23, Android 15:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/28.0 Chrome/130.0.0.0 Mobile Safari/537.36
by Michael Vogel
Mon Jun 09, 2025 8:30 am
Forum: General Discussion
Topic: Keyboard & Mouse control
Replies: 5
Views: 620

Re: Keyboard & Mouse control

Thanks for all your replies, I was using an external keyboard but the different key layouts were making me small again :?
The InputDirector is BRILLIANT so I don't need to continue working on my solution :lol:


Anyhow here's an updated code which can control the mouse cursor position. There's ...
by Michael Vogel
Sat Jun 07, 2025 4:10 pm
Forum: General Discussion
Topic: Keyboard & Mouse control
Replies: 5
Views: 620

Re: Keyboard & Mouse control

Thanks, will have a look...

My first start are the following two pieces of code (the 'server' for my old notebook with the non working keyboard, the 'client' for the new one):

The client should automatically connect to the server and can switch between active and passive mode (tested only on one ...
by Michael Vogel
Fri Jun 06, 2025 8:21 am
Forum: General Discussion
Topic: Keyboard & Mouse control
Replies: 5
Views: 620

Keyboard & Mouse control

My old notebook's keyboard is broken and I start thinking to control it using the keyboard of another notebook. Using a program like VNC does not work as expected (horrible video quality and refresh rate). So what about using Purebasic to do that job anyhow there are many questions now...

How to ...
by Michael Vogel
Fri Jun 06, 2025 8:06 am
Forum: The PureBasic Editor
Topic: IDE Markers (Feature request)
Replies: 3
Views: 685

IDE Markers (Feature request)

I'd like to have additional functions for the markers:

Shift+F2: jump to previous marker
Ctrl+1 (2, 3,...) : jump to first (second, third,...) marker in the source code

This may be also handled by a tool, but then it would have to be added for each shortcut :|
by Michael Vogel
Sun May 25, 2025 11:35 pm
Forum: Bugs - Windows
Topic: [5.42] vector drawing & saveImage()
Replies: 3
Views: 2524

Re: [5.42] vector drawing & saveImage()

Hm, what about...
CreateImage(....,#PB_Image_Transparent | #White)
...this would allow to use any color not only white and black. Existing code would work as before as well.

But the constant #PB_Image_Transparent would have to be changed - if it is set to $FF000000 a simple XOR would be enough ...
by Michael Vogel
Mon May 19, 2025 9:18 am
Forum: Coding Questions
Topic: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}
Replies: 17
Views: 1857

Re: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}

Hi, this happens when the RC field (Rounding Control) of the FPU is set to "00" which means "Round to nearest, or to even if equidistant". You can also set the flag to "01" (Round down), "10" (Round up) or the expected "11" (toward 0).

Would be nice to have an compiler option to modify the state ...
by Michael Vogel
Sun May 18, 2025 8:59 pm
Forum: Coding Questions
Topic: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}
Replies: 17
Views: 1857

Re: Round(0.51, #PB_Round_Nearest) <> {debug integer 0.51}

As defined.
x.i=f.d equals x.i=Int(f.d)
by Michael Vogel
Wed May 07, 2025 8:16 am
Forum: Coding Questions
Topic: Counting Items in the DataSection?
Replies: 30
Views: 2554

Re: Counting Items in the DataSection?

Not sure if it does make sense to duplicate the data memory to string memory :)

I'd think there are enough answers for counting the items already - but because Pandora's box was opened...


Global Dim Fun.s(0)

Procedure.i CountFruits4Fun()

Protected Count
Protected *mem=?FruitList

PokeI ...
by Michael Vogel
Mon May 05, 2025 3:26 pm
Forum: Coding Questions
Topic: Enumerate the addresses of all labels in the DataSection
Replies: 10
Views: 814

Re: Enumerate the addresses of all labels in the DataSection

I did use breez4me's method from time to time (when all images need to be initialized at the program start) with no problems so far...

Enumeration
;
#Progress_GreenLeft
#Progress_GreenMid
#Progress_GreenRight
#Progress_GrayLeft
#Progress_GrayMid
#Progress_GrayRight
;
EndEnumeration ...