Search found 135 matches

by horst
Tue Dec 06, 2022 6:30 pm
Forum: Windows
Topic: Editor gadget, block symbols in monospace fonts
Replies: 1
Views: 916

Editor gadget, block symbols in monospace fonts

Strange behaviour of block symbols in editor gadget.
User writes:
+++
Why do some characters (namely these symbols: ▀, █ and ►) look shorter and wider in the new version?
+++
This issue seems to have come up with the new msftedit.dll
Is it a Microsoft issue?

Example fonts: Consolas, Lucida Console ...
by horst
Wed Sep 19, 2012 7:41 am
Forum: Coding Questions
Topic: EditorGadget(), Richedit version 4.1
Replies: 2
Views: 1311

Re: EditorGadget(), Richedit version 4.1

The next is how to create Richedit v 4.1

Thanks RASHAD,
however, it seems that the AURL_ENABLE.. parameters are only available in Richedit 7.0, which ships with Office 2010 (see http://blogs.msdn.com/b/murrays/archive/2009/09/01/automatic-richedit-hyperlinks.aspx )

It would be a problem anyhow ...
by horst
Tue Sep 18, 2012 7:07 pm
Forum: Coding Questions
Topic: EditorGadget(), Richedit version 4.1
Replies: 2
Views: 1311

EditorGadget(), Richedit version 4.1

I am having problems with East Asian URLs (Unicode): they are not recognised properly (using the #EM_AUTOURLDETECT Message).

I know there is a work-around by enclosing them in angle brackets, for example <file:\\D:\帮助文档>, but it seems that Richedit version 4.1 supports East Asian URLs.

Question ...
by horst
Tue Jan 31, 2012 8:16 am
Forum: Coding Questions
Topic: Purge environment variable
Replies: 2
Views: 1295

Re: Purge environment variable

Try RemoveEnvironmentVariable()
Sorry, I did not expect this, because I was used to the DOS/Windows behaviour.
Now I always have to remember to use this construct for setting variables:

If Vdrive
SetEnvironmentVariable("Vdrive",Vdrive)
Else
RemoveEnvironmentVariable("Vdrive")
EndIf

Edit ...
by horst
Mon Jan 30, 2012 8:20 pm
Forum: Coding Questions
Topic: Purge environment variable
Replies: 2
Views: 1295

Purge environment variable

SetEnvironmentVariable("Vdrive","")
should purge the variable. Instead the variable still exists (with empty assignment).
The equivalent API function works correctly.

For example (at the console) the command SET Vdrive
should display:
---- The environment variable is not defined
and not ...
by horst
Thu Aug 18, 2011 8:21 am
Forum: Coding Questions
Topic: ListIconGadget, Checkbox, ALT/Ctrl + Space Bar
Replies: 4
Views: 2066

ListIconGadget, Checkbox, ALT/Ctrl + Space Bar

ListIcon checkbox status must not be changed by space bar in conjunction with ALT or Ctrl.

ALT+space is reserved for the system menu which may be used to close the window. Very annoying if checkbox status is unintentionally changed (especially when hidden under the menu).
Ctrl+space is reserved for ...
by horst
Mon Jun 27, 2011 8:14 am
Forum: Coding Questions
Topic: How can we enumerate by the power of 2?
Replies: 6
Views: 1422

Re: How can we enumerate by the power of 2?

You can also use bit(#a) instead of #a:

Code: Select all

Macro bit(n) 
  (1 << (n))
EndMacro 

Enumeration : #a : #b : #c : #d : EndEnumeration

Debug bit(#c)
But I prefer to use the bit macro for the assignment:

Code: Select all

#a = bit(0) : #b = bit(1) : #c = bit(2) : #d = bit(3) 
by horst
Sun May 29, 2011 9:11 am
Forum: Announcement
Topic: Screenshots for WebSite + Box
Replies: 102
Views: 172342

Re: Screenshots for WebSite + Box

My web address has changed.
Old: http://home.mnet-online.de/horst.muc/
New: http://www.horstmuc.de/

Please update the link under the MemPad screenshot
(currently a delayed redirection is installed).
by horst
Tue Nov 02, 2010 8:00 am
Forum: Coding Questions
Topic: doing a 'launchy'... how to grab a hotkey
Replies: 13
Views: 4335

Re: Grabbing a hotkey (how to do a 'launchy')


if I try to download the 'PopSel by Horst'
I receive a VIRUS warning by NOD32 anti-virus program.

This is the full :!: source code of the "program" RunDemo.exe that caused the alert (tested with Jotti: about half a dozen scanners reported positive).

ShellExecute_(0,0,"PopSel.exe","Demo.lst",0 ...
by horst
Mon Nov 01, 2010 5:05 pm
Forum: Coding Questions
Topic: Expand TreeGadget
Replies: 5
Views: 2182

Re: Expand TreeGadget

I guess placement on of the SetGadgetItemState must be critical as I had originally placed this function after each AddGadgetItem and it did not work for me.
Setting the #PB_Tree_Expanded state works well when you do it immediately after adding the first item on the sub-level:

SetGadgetItemState ...
by horst
Fri Jan 15, 2010 6:38 pm
Forum: Coding Questions
Topic: Focus rectangle on checkboxes
Replies: 11
Views: 3256

Re: Focus rectangle on checkboxes

Trond wrote:Ok, there is a PB bug when the option mentioned above is checked.
Agree. Just tested the behaviour on the FireFox settings window.

See also bug report: Disappearing button image when keyboard used, related to the same Windows option.
http://www.purebasic.fr/english/viewtop ... 46#p312346
by horst
Sun Aug 30, 2009 10:11 am
Forum: Coding Questions
Topic: List of the PB tools, addons, etc. available for PureBasic
Replies: 58
Views: 317633

InclOpen IDE popup menu

InclOpen is a PB IDE add-on that offers a popup menu of all included files specified in the current source file. Click to open. IncludePaths and relevant constants, like #PB_Compiler_Home are taken into account. The menu shows the file names without path, sorted (option).

If the cursor is on a ...
by horst
Sun Aug 16, 2009 7:09 am
Forum: Coding Questions
Topic: Help Needed for ShortCutGadget()
Replies: 8
Views: 2554

freak wrote:Get/SetGadgetState() can be used on the gadget to get/set the current shortcut.
Why can't we have GetGadgetText() in case we would like to inform the user about the current shortcut (in a menu, tooltip or any text info)?
by horst
Thu Aug 13, 2009 7:51 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] Enumeration enhancements
Replies: 16
Views: 4313

It would be easier if we could reassign #PB_Compiler_EnumerationValue to the same constant, i.e. #CurrentGadgetEnum = #PB_Compiler_EnumerationValue several times instead of using #CurrentGadgetEnum1, #CurrentGadgetEnum2, etc...
A constant that can be changed is not a constant.

It is time to ...