
Will test in a project I'm currently working on. Looks like a wonderful addition and a great time-saver.
Many thanks.
Hope you have some free time in your schedule, cause Im using your lib andProgi1984 wrote:I work on it actually...
But there are some examples...
Code: Select all
Structure fileControl
i.l ; No of Panel Tab (NUMBER OF FILE)
filePath.s ; Filename with path
pendingChanges.l ; 1 pending, 0 done.
ed_editors.l ; editors IDs
LineNumbers.l ; 1 = yes , 0 = no
EndStructure
Global Dim f.fileControl(100)
t=0
Enumeration
#Window_0
#Pn_Editor
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 5, 5, 500, 520,"TxtEditor - by KaizenSoft", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar|#PB_Window_ScreenCentered)
Editor_LN_Start(#Window_0)
If CreateGadgetList(WindowID(#Window_0)) ; - Gadget List
; ---- Start Gadgets code ----
PanelGadget(#Pn_Editor, 10, 30, 480, 450)
AddGadgetItem(#Pn_Editor, -1,"Source")
f(t)\i=0
f(t)\ed_editors = EditorGadget(#PB_Any, 0, 0, 475, 424)
Editor_LN_SetState(f(t)\ed_editors,#True)
CloseGadgetList()
; ---- End Gadgets code ----
EndIf
Else
MessageRequester("Gadgets Creation Failure!","Gadgets Not Created!!!")
EndIf
EndProcedure
Open_Window_0()
Repeat
event = WaitWindowEvent()
Editor_LN_Update()
Until event = #PB_Event_CloseWindow
Oh, if this is for a lib (without source) then never mind. Thanks though.chen wrote:thats true, the link does not take you to the download option...NoahPhense wrote:Is the editor not available anymore? I can't seem to download it.
- np
I dont know why... if Progi1984 has problems I can put online for you the
library.... and remove when you get it.
1) Like you haven't got selected any text, if you write the text after (font selector) will be this of the font selector.cabaptista wrote:Progi1984,
I tested your example "Example - RichText.pb" of LibEditorPlus 0.4 Beta with PureBasic 4.01 and find this:
1) After run the example, try to change font of Editor. It doesn't work. Now, select all text and do the same operation. Now works.
2) Now, that you have changed the font, load a file. The font has changed again after load. See Font properties. It says Font Name: Ms Shell Dlg, ...
Can you fix this, please ?
And the Syntax Highlight ? When you will have this available in the LIB again ?
I'm trying to use your LIB, so if you could fix this, it would be wonderfull.![]()
![]()
Thanks in Advance,
Cesar Baptista - Portugal