arcker Posted December 17, 2007 Share Posted December 17, 2007 (edited) thx valery, it works what i don't understand is that it doesn't work in AutoitPad.... grrrr BTW, i say it again but, tables is really awesome. It could be en entire UDF on its own. edit : you use readfile instead of _Winapi_readfile. It's not the method of using streamin because for too large file it's really slow. Edited December 17, 2007 by arcker -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list] Link to comment Share on other sites More sharing options...
ValeryVal Posted December 17, 2007 Share Posted December 17, 2007 btw. If you replace this line in file "RichEdit - exemple_912.au3"$Input = GUICtrlCreateInput("", 30, $Height-120, 450, 30)$RichEdit = _GuiCtrl_RichEdit_Create($Main_GUI, 30, 170, 450, 350)to $RichEdit = _GuiCtrl_RichEdit_Create($Main_GUI, 30, 170, 450, 250)$Input = _GuiCtrl_RichEdit_Create($Main_GUI, 30, $Height-220, 450, 130)then can see internal Drag&Drop working between $RichEdit and $Input controls, too.================================================Under XP+SP1 you can use new options of RichEdit50W.iehttp://www.codeproject.com/KB/edit/CRichEd...aspx?print=true(build-in Unicode <-> ANSI conversion, popup menu an so on) The point of world view Link to comment Share on other sites More sharing options...
grham Posted December 17, 2007 Author Share Posted December 17, 2007 (edited) Thank you very much Valery, it works! jujujuju (I thought that you changed something more than that) btw. richedit50w is not a classname "declared" in Msftedit.dll? - $RichEdit = _GuiCtrl_RichEdit_Create($Main_GUI, 30, 170, 450, 250) $Input = _GuiCtrl_RichEdit_Create($Main_GUI, 30, $Height-220, 450, 130) are two rich edit controls. But it's also interessant to copy-paste between two "different" apps (like here x Open office). For example you can set double underlined font and here you wan't see it but copy it to Open office and it's really double underlined. But MSDN sais it. The "strange" thing is, that MSDN sais that REC v. previous to 3 aligns left instead of justify. But I saw that v3 and higher too. PS Is it good to put it in the first post? (without dllcallback.au3 info or script changed)? ps2 to arcker - good to know, i didn't know about _winapi-readfile. Edited December 17, 2007 by grham Link to comment Share on other sites More sharing options...
arcker Posted December 17, 2007 Share Posted December 17, 2007 YEAAAhhfinally it worksit was really, really simplethe problem is that _winapi_readfile superseed the real function.so i make the correct dllcall.you can test the modification hereAutoItPad -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list] Link to comment Share on other sites More sharing options...
Alek Posted December 19, 2007 Share Posted December 19, 2007 hmm, what am i doing wrong when, when im trying to change the font of some text the font of all the text in the edit changes?? [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
grham Posted December 19, 2007 Author Share Posted December 19, 2007 hmm, what am i doing wrong when, when im trying to change the font of some text the font of all the text in the edit changes??What is exactly what you change? Color, size, fontname .....?and how do you change it? Link to comment Share on other sites More sharing options...
Alek Posted December 19, 2007 Share Posted December 19, 2007 What is exactly what you change? Color, size, fontname .....? and how do you change it? i want to change the font and size of the font. i used _RichEdit_SetFont($Edit, -1, -1, -1, "Times New Roman", 8) _RichEdit_AddText($Edit, "test1, ") _RichEdit_SetFont($Edit, -1, -1, -1, "Times New Roman", 18, 0) _RichEdit_AddText($Edit, "test2") [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
grham Posted December 19, 2007 Author Share Posted December 19, 2007 (edited) i want to change the font and size of the font. i used _RichEdit_SetFont($Edit, -1, -1, -1, "Times New Roman", 8) _RichEdit_AddText($Edit, "test1, ") _RichEdit_SetFont($Edit, -1, -1, -1, "Times New Roman", 18, 0) _RichEdit_AddText($Edit, "test2") just don't put the final 0 (i know it's not documented, because I used it instead of writing 4 lines to change the font) Expl.: 1. par. 4 numbers (0,1) in this order: bold, italic, underline, strikeout or -1 = no changes 2. par. font color (or -1 = no changes) 3. par. font background color (or -1 = no changes) 4. par. font name 5. par. font size 6. par. optional: 1 (default - selection), 0 whole control Edited December 19, 2007 by grham Link to comment Share on other sites More sharing options...
MaudKip Posted December 19, 2007 Share Posted December 19, 2007 I finally got it to work. It's really cool. Link to comment Share on other sites More sharing options...
Alek Posted December 19, 2007 Share Posted December 19, 2007 just don't put the final 0 (i know it's not documented, because I usedit instead of writing 4 lines to change the font)Expl.: 1. par. 4 numbers (0,1) in this order: bold, italic, underline, strikeout or -1 = no changes 2. par. font color (or -1 = no changes) 3. par. font background color (or -1 = no changes) 4. par. font name 5. par. font size 6. par. optional: 1 (default - selection), 0 whole controltanks, that was the problem [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
McGod Posted December 21, 2007 Share Posted December 21, 2007 OMG, OMFG, SCROLLBARS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:D Ty, ty [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
drego Posted February 22, 2014 Share Posted February 22, 2014 Can't get this to run: rich_editInclude_RichEdit_912.au3 (41) : ==> Variable used without being declared.: Global Const $EM_AUTOURLDETECT = $WM_USER + 91 Global Const $EM_AUTOURLDETECT = ^ ERROR Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 22, 2014 Moderators Share Posted February 22, 2014 drego,Read my reply here and please do not necro-post in every RichEdit thread on the forum - the same probem will probably exist for all of them. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now