PDA

Показать полную графическую версию : [решено] Скрыть бортик у _GUICtrlRichEdit_Create


morgan1991
30-06-2010, 21:50
Здравствуйте!
Скажите пожалуйста, как убрать/скрыть или сделать белым бортик вокруг _GUICtrlRichEdit_Create?

Creat0R
30-06-2010, 22:13
Какой бортик, у RichEdit нет бортика по умолчанию.

Пример можно увидеть?

morgan1991
01-07-2010, 00:16
Пример можно увидеть? »
#AutoIt3Wrapper_Au3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiRichEdit.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Main()

Func (http://www.autoitscript.com/autoit3/docs/keywords.htm#Func) Main()
Local (http://www.autoitscript.com/autoit3/docs/keywords.htm#Local) $hGui, $hRichEdit, $iMsg
$hGui = GUICreate (http://www.autoitscript.com/autoit3/docs/functions/GUICreate.htm)("Example (" & StringTrimRight (http://www.autoitscript.com/autoit3/docs/functions/StringTrimRight.htm)(@ScriptName (http://www.autoitscript.com/autoit3/docs/macros.htm#@ScriptName),4) &")", 320, 350, -1, -1)
GUISetBkColor (http://www.autoitscript.com/autoit3/docs/functions/GUISetBkColor.htm)(0xFFFFFF, $hGui)
$hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a test.", 10, 10, 300, 220, _
BitOR (http://www.autoitscript.com/autoit3/docs/functions/BitOR.htm)($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
_GUICtrlRichEdit_AppendText($hRichEdit, @CR (http://www.autoitscript.com/autoit3/docs/macros.htm#@CR) & "This is more text")
GUISetState (http://www.autoitscript.com/autoit3/docs/functions/GUISetState.htm)()

While (http://www.autoitscript.com/autoit3/docs/keywords.htm#While) True (http://www.autoitscript.com/autoit3/docs/keywords.htm#True)
$iMsg = GUIGetMsg (http://www.autoitscript.com/autoit3/docs/functions/GUIGetMsg.htm)()
Select (http://www.autoitscript.com/autoit3/docs/keywords.htm#Select)
Case (http://www.autoitscript.com/autoit3/docs/keywords.htm#Case) $iMsg = $GUI_EVENT_CLOSE
GUIDelete (http://www.autoitscript.com/autoit3/docs/functions/GUIDelete.htm)()
Exit (http://www.autoitscript.com/autoit3/docs/keywords.htm#Exit)
EndSelect (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndSelect)
WEnd (http://www.autoitscript.com/autoit3/docs/keywords.htm#WEnd)
EndFunc (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndFunc) ;==>Main

Какой бортик, у RichEdit нет бортика по умолчанию. »

Ну или рамка. Как она называется?
Та полоса, которая отделяет RichEdit от остальных элементов.

Creat0R
01-07-2010, 00:42
Та полоса, которая отделяет RichEdit от остальных элементов »
Нужно убрать расширенные стили (а точнее стиль $WS_EX_CLIENTEDGE, он видимо задан по умолчанию):
$hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a test.", 10, 10, 300, 220, BitOr($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_MULTILINE), 0)




© OSzone.net 2001-2012