Jump to content

Recommended Posts

Posted

Very nice and useful!!

But:

WARNING: $tagEN_MSGFILTER: possibly used before declaration.

ERROR: $tagEN_MSGFILTER: undeclared global variable.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Posted (edited)

MrCreatoR,

What AutoIt version are you using? I add the following $tagEN_MSGFILTER = $tagNMHDR & ";uint msg;int wParam;int lParam;" to __GUIRichLabel_WM_NOTIFY and it worked.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/13/2012 at 6:55 AM, 'guinness said:

What AutoIt version are you using?

It's from 3.3.6.1, but these lines not needed, WM_NOTIFY does not registered.

I just played with the idea of links inside richedit, but that is tricky because the control is disabled.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

And it was a replacement mistake, change it to $tagMSGFILTER :whistle:.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

Fixed, version is the same.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 1 month later...
  • 1 year later...
Posted

It seems not possible to use GUICtrlSetTip() with _GUICtrlRichLabel_Create() as usually, is it a know issue or is there a different way to do it? thanks for the great udf!

SFTPEx, AutoCompleteInput_DateTimeStandard(), _ImageWriteResize()_GUIGraduallyHide(): some AutoIt functions.

Lupo PenSuite: all-in-one and completely free selection of portable programs and games.

DropIt: a personal assistant to automatically manage your files.

ArcThemALL!: application to multi-archive your files and folders.

  • 4 years later...
Posted (edited)

@MrCreatoR

 

Nice UDF... but i found a bug, when i try to set a font with more than one name it doesn't change the font because it just recognizes the first name. For example...

When i try to set the font Comic Sans <font name="Comic Sans">test</font> it reads the font as "Comic" insted of "Comic Sans", and of course don't find it.

Does anyone knows how to fix it? I though about using _StringBetween... but i don't think it would be the best option.

 

Problem solved(function update):

Func __GUIRichLabel_FontTagGetParamValue($sTag_Data, $sParamName, ByRef $sDefault)
    Local $sRet = StringRegExpReplace($sTag_Data, '(?i)<font.*? ' & $sParamName & '=(?:"|)(.*?)(?:"| >).*?>.*?$', '\1')

    If @extended > 0 Then $sDefault = $sRet
    Return $sDefault
EndFunc

 

Edited by x_bennY
Posted

Update:

 

  Quote

 

v1.2
+ Added _GUICtrlRichLabel_SetDefFont function to set default RichLabel font data.
* Fixed issue with hard crash when clicking on non focused window.
* Fixed issue with font name having spaces in it.
Expand  

 

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...