AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AHK BBCodeWriter v7.0.2 - An offline BBCode Editor
Goto page Previous  1, 2, 3, ... 17, 18, 19  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
garath



Joined: 24 Mar 2005
Posts: 397
Location: germany

PostPosted: Fri Nov 04, 2005 12:47 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Fri Nov 04, 2005 3:42 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shimanov



Joined: 25 Sep 2005
Posts: 610

PostPosted: Fri Nov 04, 2005 9:29 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Sat Nov 05, 2005 5:46 pm    Post subject: Reply with quote

So the RichEditControl was a wish for the future. Wink Cause I'm not good in understanding and implementing features via DllCall. Very Happy
That's shimanov's and corrupt's job. Mr. Green

btw. made a small update. Updated to Version 5.1
Details in the first posting. See section "Update"
_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Nov 05, 2005 10:27 pm    Post subject: Reply with quote

Hi AGU,

The tag
wrote:
does appear to supported by the preview part of this script. It would be a welcome enhancement.

-roundfile
Back to top
Guest






PostPosted: Sat Nov 05, 2005 10:32 pm    Post subject: Reply with quote

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
Back to top
AGU
Guest





PostPosted: Sun Nov 06, 2005 12:33 am    Post subject: Reply with quote

You mean [quote="roundfile"]test[/quote]?

If yes, I'll try my best. Smile

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.
Back to top
Guest






PostPosted: Sun Nov 06, 2005 5:15 am    Post subject: Reply with quote

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
Back to top
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Mon Nov 07, 2005 12:04 pm    Post subject: Reply with quote

Another update. Some minor fixes and added case [quote="Name"]Text[/quote] to preview mode.

Details see updated first posting. Mr. Green

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. Wink Mr. Green
_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Nov 07, 2005 5:49 pm    Post subject: Reply with quote

Hi AGU,

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

-roundfile
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3906
Location: Bremen, Germany

PostPosted: Tue Nov 08, 2005 9:17 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Tue Nov 08, 2005 1:58 pm    Post subject: Reply with quote

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. Wink
_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Wed Nov 09, 2005 5:49 pm    Post subject: Reply with quote

Tried to create this function, but it doesn't work. Tried different approcaches and it doesn't work. *grrr* Wink 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
Back to top
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Thu Nov 10, 2005 3:22 pm    Post subject: Reply with quote

Update. Very Happy
Added function - URL Mouse cursor change during hover.

btw. I'm still looking for the solution concerning this function (code simplification).
_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3906
Location: Bremen, Germany

PostPosted: Thu Nov 10, 2005 3:46 pm    Post subject: Reply with quote

Code:
SetBBCodeTags("[b]","[/b]", BoldPressed)

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, ... 17, 18, 19  Next
Page 2 of 19

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group