AutoHotkey Community

It is currently May 27th, 2012, 3:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next
Author Message
 Post subject:
PostPosted: November 4th, 2005, 12:47 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
RichEditControl is a type of Window controls, maybe sometimes it will be implemented in AHK. Wit REC you could display formated text in a control.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2005, 3:42 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
AGU wrote:
(RichEdit) Haven't heard of this and can't find anything about it in the docs. Where can I find it?

It's on the planned features...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2005, 9:29 pm 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
AGU wrote:
Haven't heard of this and can't find anything about it in the docs. Where can I find it?


Unfortunately, this control is not currently supported by AHk. Its use will require a custom implementation. The Rich Edit Control is documented at MSDN.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2005, 5:46 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
So the RichEditControl was a wish for the future. ;) Cause I'm not good in understanding and implementing features via DllCall. :D
That's shimanov's and corrupt's job. :mrgreen:

btw. made a small update. Updated to Version 5.1
Details in the first posting. See section "Update"

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2005, 10:27 pm 
Hi AGU,

The tag [quote=""][/quote] does appear to supported by the preview part of this script. It would be a welcome enhancement.

-roundfile


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 5th, 2005, 10:32 pm 
Hi AGU,

Well that did not work. Let me try again. The tag that is not supported in preview is (without the square brackets) quote="" /quote.

-roundfile


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 12:33 am 
You mean [quote="roundfile"]test[/quote]?

If yes, I'll try my best. :-)

Do you think there should be another 'quote' button in the gui, too? A button that supports the input of a quote with the name. Or is one 'quote' button enough and the user should change that in the edit control on its own.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 5:15 am 
Yes! That is the tag I meant. Now if I could only figure how to post it properly. :wink:

Another GUI button is not necessary (unless you can figure out how to copy/paste both the quote and the name at the same time!).

Thanks!
-roundfile


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 12:04 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Another update. Some minor fixes and added case [quote="Name"]Text[/quote] to preview mode.

Details see updated first posting. :mrgreen:

Concerning posting the tag:
See at the bottom of the "Post a reply" screen the checkbox "Disable BBCode in this post"? You have to check it if you wanna post BBCode that mustn't interpreted by phpbb. ;) :mrgreen:

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2005, 5:49 pm 
Hi AGU,

The changes look great. Double thanks for enhancing the quotes and for the tips on posting! :D :D

-roundfile


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2005, 9:17 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
One more cosmetic thing:
I saw several
Code:
 Clipboard = xxxxxx
          Send, ^v
          ImagePressed++/--
          Clipboard =
in the editor script. Maybe you can make a function from it?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 8th, 2005, 1:58 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Small update. A button for toggle "Always on Top" for Main Gui. Details in first posting.

@toralf
Thx for the tip. I'll look into it. If I'll get problems creating this function I won't hesitate to ask questions. ;)

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2005, 5:49 pm 
Tried to create this function, but it doesn't work. Tried different approcaches and it doesn't work. *grrr* ;) What am I doing wrong?

Code:
...

BtnBold:
  PasteBBCode := SetBBCodeTags([b],[/b], BoldPressed)
  Control, EditPaste, %PasteBBCode%, Edit1, %ScriptName%
Return

...

SetBBCodeTags(In_StartTag, In_EndTag, In_BtnVariable)
  {
    ; In_StartTag     : Opening bbcode tag (e.g. [url])
    ; In_EndTag       : Closing bbcode tag (e.g. [/url])
    ; In_BtnVariable  : Associated button variable (e.g. URLPressed)
   
    local Ret_Val
   
    ;Check whether some text was highlighted
    GuiControl, 1:Focus, EdtComment
    Send, ^c
   
    ; No Text was highlighted
    If Clipboard is Space
      {
        If In_BtnVariable = 0
          {
            In_BtnVariable++
            Return, %In_StartTag%
          }
        If In_BtnVariable = 1
          {
            In_BtnVariable--
            Return, %In_EndTag%
          }
      }
     ; Some text was highlighted
    Else
      {
        Ret_Val = %In_StartTag%%Clipboard%%In_EndTag%
        Clipboard =
        Return, %Ret_Val%
      }
  }


btw. I discovered a small bug in BBCodeWriter in combination with the new "AlwaysOnTop" button. Preferences GUI, Help GUI and About GUI are not set "AlwaysOnTop".
When you call one of this gui's it gets behind the main gui but this one is disabled. I'll correct it with the next version.

Cheers
AGU a.k.a. AGermanUser


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2005, 3:22 pm 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Update. :D
Added function - URL Mouse cursor change during hover.

btw. I'm still looking for the solution concerning this function (code simplification).

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2005, 3:46 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Code:
SetBBCodeTags("[b]","[/b]", BoldPressed)

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group