This line 31 is doing the trick, it sets the window as a #WS_EX_TOOLWINDOW which is used for systray programs so you don't see an icon in the taskbar. When using this simple approach you'd better add an icon to the systray as well.
For a quick comfortable solution you've to download the library ...
Search found 2612 matches
- Sat Sep 20, 2025 11:48 am
- Forum: Coding Questions
- Topic: Program appears on each Windows 11 desktop, when run?
- Replies: 8
- Views: 753
- Mon Sep 15, 2025 6:06 pm
- Forum: Coding Questions
- Topic: Send keystroke Ctrl+F2 to IDE
- Replies: 4
- Views: 432
Re: Send keystroke Ctrl+F2 to IDE
Perfect approach ! :shock:
THANK YOU!
Everything seems to be so simple (now)...
#MarkerId=22
If SendMessage_(\HandleScintilla,#SCI_MARKERGET,line-1,0) & (1<<#MarkerId)
n=#SCI_MARKERDELETE
Else
n=#SCI_MARKERADD
EndIf
SendMessage_(\HandleScintilla,n,line-1,#MarkerId)
; or a simple line ...
THANK YOU!
Everything seems to be so simple (now)...
#MarkerId=22
If SendMessage_(\HandleScintilla,#SCI_MARKERGET,line-1,0) & (1<<#MarkerId)
n=#SCI_MARKERDELETE
Else
n=#SCI_MARKERADD
EndIf
SendMessage_(\HandleScintilla,n,line-1,#MarkerId)
; or a simple line ...
- Sun Sep 14, 2025 4:22 pm
- Forum: Coding Questions
- Topic: Send keystroke Ctrl+F2 to IDE
- Replies: 4
- Views: 432
Re: Send keystroke Ctrl+F2 to IDE
Did not work without the code around it (AttachThreadInput) seen in the snippet above - played around for a while and I fear it isn't possible to do that without a short flicker while the window is active...
One of the following lines have to be used as well to work...
- SetFocus_(Ide\HandleIde ...
One of the following lines have to be used as well to work...
- SetFocus_(Ide\HandleIde ...
- Sun Sep 14, 2025 1:09 pm
- Forum: Coding Questions
- Topic: Send keystroke Ctrl+F2 to IDE
- Replies: 4
- Views: 432
Send keystroke Ctrl+F2 to IDE
I wrote a small tool which shows all source code marker and added the functionality to remove a marker by invoking Ctrl+F2 from this tool. Anyhow I was not able to do this without activating the IDE window which is not perfect. Any ideas if it is possible to do the same while keeping the IDE window ...
- Sat Sep 13, 2025 7:03 am
- Forum: Coding Questions
- Topic: Program appears on each Windows 11 desktop, when run?
- Replies: 8
- Views: 753
Re: Program appears on each Windows 11 desktop, when run?
Try this...
h=OpenWindow(0,0,0,400,400,"Hello Desktop")
SetWindowLong_(h,#GWL_EXSTYLE,GetWindowLong_(h,#GWL_EXSTYLE)|$00000080)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
More functionality needs a dll for now, e.g. from here ...
If OpenLibrary(#Null,"VirtualDesktopAccessor.dll ...
h=OpenWindow(0,0,0,400,400,"Hello Desktop")
SetWindowLong_(h,#GWL_EXSTYLE,GetWindowLong_(h,#GWL_EXSTYLE)|$00000080)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
More functionality needs a dll for now, e.g. from here ...
If OpenLibrary(#Null,"VirtualDesktopAccessor.dll ...
- Sun Sep 07, 2025 2:41 pm
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Axolotl, every tip is welcome and never off topic (anyhow I'd set a semicolon before the code SetGadgetFont(#GADGET_ComboBox, userfont) in your nice example) :lol:
Meanwhile I've added another function in the code above, because letting the tool scroll around (using the space key) made it ...
Meanwhile I've added another function in the code above, because letting the tool scroll around (using the space key) made it ...
- Mon Sep 01, 2025 6:03 pm
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Hi, thanks for your comments which are valuable for me - and you're right with your hints.
Anyhow the program is designed as a tool and works when compiled. Maybe you can call it a feature request to be integrated into the IDE (because it should be easier to get all marker positions without ...
Anyhow the program is designed as a tool and works when compiled. Maybe you can call it a feature request to be integrated into the IDE (because it should be easier to get all marker positions without ...
- Mon Sep 01, 2025 11:19 am
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Not sure if you're happy with the modifications but...
...it is possible now to jump to a marker without closing the window (set option parameter to 1xxxxx)
...changing the window width is possible (the height is controled by the parameter values xxxx0xx or xxxx1xx)
...it is possible now to jump to a marker without closing the window (set option parameter to 1xxxxx)
...changing the window width is possible (the height is controled by the parameter values xxxx0xx or xxxx1xx)
- Sat Aug 30, 2025 7:13 pm
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Exactly, the tool just show these internal used marker in a list and allows to jump to these lines by pressing a key (or double click). Holding shift while doing that sets the cursor to the procedure/macro start of the marked line.
- Sat Aug 30, 2025 4:21 pm
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Thanks Azijo for doing the support - and for new ideas :lol:
Added an additional color for highlighting comment lines (code Else; If Left(s,5)="; /!\" ) and tooltips to view some code lines above and below the marker (triggered by holding the control key).
BTW I didn't use markers very often ...
Added an additional color for highlighting comment lines (code Else; If Left(s,5)="; /!\" ) and tooltips to view some code lines above and below the marker (triggered by holding the control key).
BTW I didn't use markers very often ...
- Fri Aug 29, 2025 1:31 pm
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Did some bug fixes and added the suggested dark mode...
- Fri Aug 29, 2025 12:06 pm
- Forum: Coding Questions
- Topic: Toggle window title (caption)
- Replies: 3
- Views: 557
Re: Toggle window title (caption)
Thanks, works perfect!
- Fri Aug 29, 2025 8:40 am
- Forum: Coding Questions
- Topic: Toggle window title (caption)
- Replies: 3
- Views: 557
Toggle window title (caption)
I'd like to toggle the window caption on/off. My workaround is creating a new window but this flickers...
wx=100
wy=100
w=400
h=250
rect.Rect
win.Rect
dot.Point
CompilerIf Not(Defined(DwmSetWindowAttribute, #PB_Prototype))
Prototype.i DwmSetWindowAttribute(hWnd.i, dwAttribute.i, pvAttribute.i ...
wx=100
wy=100
w=400
h=250
rect.Rect
win.Rect
dot.Point
CompilerIf Not(Defined(DwmSetWindowAttribute, #PB_Prototype))
Prototype.i DwmSetWindowAttribute(hWnd.i, dwAttribute.i, pvAttribute.i ...
- Mon Aug 11, 2025 8:12 am
- Forum: The PureBasic Editor
- Topic: IDE Tool "Jump to Marker"
- Replies: 20
- Views: 2375
Re: IDE Tool "Jump to Marker"
Thanks, HeX0R, added.
- Wed Aug 06, 2025 6:11 pm
- Forum: Coding Questions
- Topic: Get MouseLeave event while mouse button is pressed
- Replies: 3
- Views: 257
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 ...
Procedure test()
Debug "*OUT ...