| View previous topic :: View next topic |
| Author |
Message |
garath
Joined: 24 Mar 2005 Posts: 397 Location: germany
|
Posted: Fri Nov 04, 2005 12:47 pm Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5037 Location: /b/
|
Posted: Fri Nov 04, 2005 3:42 pm Post subject: |
|
|
| 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 |
|
 |
shimanov
Joined: 25 Sep 2005 Posts: 610
|
Posted: Fri Nov 04, 2005 9:29 pm Post subject: |
|
|
| 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 |
|
 |
AGermanUser
Joined: 12 Feb 2005 Posts: 82
|
Posted: Sat Nov 05, 2005 5:46 pm Post subject: |
|
|
So the RichEditControl was a wish for the future. Cause I'm not good in understanding and implementing features via DllCall.
That's shimanov's and corrupt's job.
btw. made a small update. Updated to Version 5.1
Details in the first posting. See section "Update" _________________ Cheers
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Nov 05, 2005 10:27 pm Post subject: |
|
|
Hi AGU,
The tag does appear to supported by the preview part of this script. It would be a welcome enhancement.
-roundfile |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Nov 05, 2005 10:32 pm Post subject: |
|
|
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
|
Posted: Sun Nov 06, 2005 12:33 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 06, 2005 5:15 am Post subject: |
|
|
Yes! That is the tag I meant. Now if I could only figure how to post it properly.
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
|
Posted: Mon Nov 07, 2005 12:04 pm Post subject: |
|
|
Another update. Some minor fixes and added case [quote="Name"]Text[/quote] to preview mode.
Details see updated first posting.
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.  _________________ Cheers
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Nov 07, 2005 5:49 pm Post subject: |
|
|
Hi AGU,
The changes look great. Double thanks for enhancing the quotes and for the tips on posting!
-roundfile |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3906 Location: Bremen, Germany
|
Posted: Tue Nov 08, 2005 9:17 am Post subject: |
|
|
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 |
|
 |
AGermanUser
Joined: 12 Feb 2005 Posts: 82
|
Posted: Tue Nov 08, 2005 1:58 pm Post subject: |
|
|
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
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
AGU Guest
|
Posted: Wed Nov 09, 2005 5:49 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
AGermanUser
Joined: 12 Feb 2005 Posts: 82
|
Posted: Thu Nov 10, 2005 3:22 pm Post subject: |
|
|
Update.
Added function - URL Mouse cursor change during hover.
btw. I'm still looking for the solution concerning this function (code simplification). _________________ Cheers
BBCodeWriter • ToDo-List • CopyPassage |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3906 Location: Bremen, Germany
|
Posted: Thu Nov 10, 2005 3:46 pm Post subject: |
|
|
| Code: | | SetBBCodeTags("[b]","[/b]", BoldPressed) |
_________________ Ciao
toralf  |
|
| Back to top |
|
 |
|