The underline feature may not work depending on the specific font or size.
This issue is likely related to this bug.
Changing the font size in the IDE using Ctrl + mouse wheel up/down may resolve the issue.
Search found 494 matches
- Mon Jan 05, 2026 4:37 pm
- Forum: Coding Questions
- Topic: My underlining have disapear [Resolved]
- Replies: 8
- Views: 221
- Tue Dec 30, 2025 12:41 pm
- Forum: Bugs - Windows
- Topic: [Done] 6.30 b6 - XMLNodePath error in return string
- Replies: 2
- Views: 207
[Done] 6.30 b6 - XMLNodePath error in return string
The length of the string returned by the XMLNodePath function is displayed after “Path Len:”, but it outputs strange values like 64, 63, and 68.
It seems the return string of the XMLNodePath function is corrupted.
The issue occurs in both the C and Asm backends of PB 6.30 b6. (x86/x64 ...
It seems the return string of the XMLNodePath function is corrupted.
The issue occurs in both the C and Asm backends of PB 6.30 b6. (x86/x64 ...
- Sat Dec 27, 2025 11:06 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
FYI: won't catch all keys... ie anywhere in MS word or in start menu. The application itself prevents passing messages on?
For applications that are not traditional Win32 applications(such as some modern apps like Universal Windows Platform (UWP) apps), the WM_CHAR message may not be hooked ...
- Fri Dec 26, 2025 10:32 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
Yes, if the string is unique worldwide.BarryG wrote: Fri Dec 26, 2025 10:20 am BTW, this GUID can be anything, right? Just something unique to my app?Code: Select all
#GUID_FileMap$ = "MyAppFM_bd9b51f3-9905-4b7a-a63b-7ea7353e2c42"
- Fri Dec 26, 2025 10:05 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
If necessary, use it with a keyboard hook.
As mentioned in the first answer, you can use a keyboard(low level) hook together.
Where to ignore and where to allow specific key inputs depends on the situation, so decide based on your needs.
Hook.dll code:
EnableExplicit
#APP_HookInput = #WM_APP ...
As mentioned in the first answer, you can use a keyboard(low level) hook together.
Where to ignore and where to allow specific key inputs depends on the situation, so decide based on your needs.
Hook.dll code:
EnableExplicit
#APP_HookInput = #WM_APP ...
- Fri Dec 26, 2025 3:52 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
The issue seems to be that the hook is only installed on a single thread associated with a specific window. The code below installs a global hook without specifying a thread, so it should work.
Hook.dll code:
EnableExplicit
#APP_HookInput = #WM_APP + 246
#GUID_FileMap$ = "MyAppFM_bd9b51f3-9905 ...
Hook.dll code:
EnableExplicit
#APP_HookInput = #WM_APP + 246
#GUID_FileMap$ = "MyAppFM_bd9b51f3-9905 ...
- Thu Dec 25, 2025 8:58 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
(for example with Notepad so that the typed chars are correct in Notepad and also correctly shown in the TextGadget).
Merry Christmas! :mrgreen:
Tested on Windows 10.
If the handles for Notepad are not found, please fix it yourself. :wink:
Hook.dll code:
EnableExplicit
#APP_HookInput ...
- Wed Dec 24, 2025 11:23 am
- Forum: Bugs - Windows
- Topic: [Done] 6.30 b6 WebViewGadget & Tab Key freeze
- Replies: 1
- Views: 273
[Done] 6.30 b6 WebViewGadget & Tab Key freeze
https://www.purebasic.fr/english/viewtopic.php?t=88075
As mentioned in the comment, the simplest solution is to add the WS_EX_CONTROLPARENT style to all container-type gadgets (excluding panel gadgets).
Target gadgets: ContainerGadget, CanvasGadget(Container), FrameGadget(Container ...
As mentioned in the comment, the simplest solution is to add the WS_EX_CONTROLPARENT style to all container-type gadgets (excluding panel gadgets).
Target gadgets: ContainerGadget, CanvasGadget(Container), FrameGadget(Container ...
- Wed Dec 24, 2025 11:11 am
- Forum: Coding Questions
- Topic: Dead keys with keyboard hook - how?
- Replies: 11
- Views: 580
Re: Dead keys with keyboard hook - how?
There is a way to track character input rather than individual key presses, as shown in the code below. If necessary, use it with a keyboard hook.
There's also a WM_DEADCHAR message, so check it out if needed.
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-deadchar
Structure ...
There's also a WM_DEADCHAR message, so check it out if needed.
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-deadchar
Structure ...
- Mon Dec 22, 2025 5:00 pm
- Forum: Coding Questions
- Topic: [Resolved] PB 6.30 WebViewGadget & Tab Key freeze
- Replies: 9
- Views: 564
Re: PB 6.30 WebViewGadget & Tab Key freeze
@JHPJHP
Thank you for the test.
Hmm, a container gadget shouldn't have that flag, so we need a more reliable solution.
Edit:
Another workaround.
It seems that the WS_EX_CONTROLPARENT style should be applied to all container-type gadgets, and the WebViewGadget itself. (probably the Edge WebGadget ...
Thank you for the test.
Hmm, a container gadget shouldn't have that flag, so we need a more reliable solution.
Edit:
Another workaround.
It seems that the WS_EX_CONTROLPARENT style should be applied to all container-type gadgets, and the WebViewGadget itself. (probably the Edge WebGadget ...
- Mon Dec 22, 2025 8:58 am
- Forum: Coding Questions
- Topic: [Resolved] PB 6.30 WebViewGadget & Tab Key freeze
- Replies: 9
- Views: 564
Re: PB 6.30 WebViewGadget & Tab Key freeze
This appears to be a bug in WebView2 itself and does not seem to have been fully resolved yet.
https://github.com/MicrosoftEdge/WebView2Feedback/issues/589
After investigation, it appears to be halting during the execution of the internal GetNextDlgTabItem function.
The following workaround seems ...
https://github.com/MicrosoftEdge/WebView2Feedback/issues/589
After investigation, it appears to be halting during the execution of the internal GetNextDlgTabItem function.
The following workaround seems ...
- Mon Dec 15, 2025 3:06 pm
- Forum: Coding Questions
- Topic: WebView2 - IMA trying to change an option (ICoreWebView2xyz)
- Replies: 4
- Views: 906
Re: WebView2 - IMA trying to change an option (ICoreWebView2xyz)
The ICoreWebView2EnvironmentOptions interface must be created before any webview gadget is created and passed to it during creation. This cannot be done through usual methods and can only be passed via a hook.
The code below is based on this .
Please check if it works properly.
Edit:
Move the ...
The code below is based on this .
Please check if it works properly.
Edit:
Move the ...
- Mon Dec 15, 2025 12:01 pm
- Forum: Coding Questions
- Topic: How use #MFT_MENUBARBREAK for SetMenuItemInfo ?
- Replies: 19
- Views: 4023
Re: How use #MFT_MENUBARBREAK for SetMenuItemInfo ?
You're welcome. :)
But so much extra code when 6.10 did it without.
The code is somewhat long due to the implementation of the system theme in the menu.
Using functions like GetSysColor_(#COLOR_***) to apply classic colors would simplify the code somewhat, but since the code partially uses ...
But so much extra code when 6.10 did it without.
The code is somewhat long due to the implementation of the system theme in the menu.
Using functions like GetSysColor_(#COLOR_***) to apply classic colors would simplify the code somewhat, but since the code partially uses ...
- Sun Dec 14, 2025 8:21 pm
- Forum: Coding Questions
- Topic: Best workaround for SetMenuItemState?
- Replies: 6
- Views: 620
Re: Best workaround for SetMenuItemState?
The check mark with the theme applied can be drawn as shown below.
#MENU_POPUPCHECK = 11
#MC_CHECKMARKNORMAL = 1
#MC_CHECKMARKDISABLED = 2
#TS_TRUE = 1
#TS_DRAW = 2
Procedure.i MakeCheckedIcon(SrcImg, DstImg = #PB_Any)
Protected Image = CopyImage(SrcImg, DstImg)
Protected hDC, hDCWnd ...
#MENU_POPUPCHECK = 11
#MC_CHECKMARKNORMAL = 1
#MC_CHECKMARKDISABLED = 2
#TS_TRUE = 1
#TS_DRAW = 2
Procedure.i MakeCheckedIcon(SrcImg, DstImg = #PB_Any)
Protected Image = CopyImage(SrcImg, DstImg)
Protected hDC, hDCWnd ...
- Sun Dec 14, 2025 3:31 pm
- Forum: Coding Questions
- Topic: How use #MFT_MENUBARBREAK for SetMenuItemInfo ?
- Replies: 19
- Views: 4023
Re: How use #MFT_MENUBARBREAK for SetMenuItemInfo ?
@BarryG
There doesn't seem to be an easy workaround, and the menu items should be drawn using the owner-drawn method.
Tested only on Windows 10. Testing may be needed for the classic theme in Windows 7.
EnableExplicit
UsePNGImageDecoder()
Import "UxTheme.lib"
DrawThemeTextEx.l(hTheme, hdc ...
There doesn't seem to be an easy workaround, and the menu items should be drawn using the owner-drawn method.
Tested only on Windows 10. Testing may be needed for the classic theme in Windows 7.
EnableExplicit
UsePNGImageDecoder()
Import "UxTheme.lib"
DrawThemeTextEx.l(hTheme, hdc ...