Page 3 of 4
Posted: Wed Aug 09, 2006 3:46 pm
by oldBear
WOW - what an extension!
Will test in a project I'm currently working on. Looks like a wonderful addition and a great time-saver.
Many thanks.
Posted: Wed Aug 09, 2006 3:49 pm
by Progi1984
Thanks...
I worked just on it during the last month so a lot of bugs has been deleted...
Posted: Wed Aug 09, 2006 8:11 pm
by chen
Could you make a small documentation?
pourriez-vous créer un petit documentation?

Posted: Thu Aug 10, 2006 8:12 am
by Progi1984
I work on it actually...
But there are some examples...
Posted: Sat Aug 12, 2006 4:20 am
by chen
Progi1984 wrote:I work on it actually...
But there are some examples...
Hope you have some free time in your schedule, cause Im using your lib and
have some doubts(first try in API)... for example Im trying to put number
to my editor. I analize your example, and implemented in my app but
it does not work... it does not create numbers as new lines are created...
I dont understabd this command:
Editor_LN_Resize(4,-2) I know it is Editor_LN_Resize(Gadget.l,Value.1)
value of what?
ok.. maybe is my lack of knowledge...
BTW.- Suspect this lib could be of great help...
thanks...
Posted: Mon Aug 14, 2006 8:07 am
by Progi1984
Excuse-me : Value is the size to add at the actual size of column of line numbering....
Posted: Tue Aug 15, 2006 1:56 am
by chen
Im trying to use your library, but I can not get it work...
Could you tell me why this code does not work correctly?
- it does not show line numbers as you insert data...
(Your example works Ok... and in according to me mine is ok..but not!)
This is a extract from my code....
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
Update: August 14,2006 21.34 hrs (Quebec time)
It does not work inside Panels!... at least if you remove the panel
it works....
Could you tell me if this is the way it works? because Im using
editor inside panel... my app open several files, file by panel.
Thanks
Posted: Tue Aug 15, 2006 2:30 am
by radar
Thanks Progi1984, I have only had a quick look at the examples - WOW. I love your project - thanks.
(chen - I'm no expert, but your example seems to work OK for me)
Posted: Tue Aug 15, 2006 2:39 am
by NoahPhense
Is the editor not available anymore? I can't seem to download it.
- np
Posted: Tue Aug 15, 2006 3:30 am
by chen
radar wrote:
(chen - I'm no expert, but your example seems to work OK for me)
here it does not work at all... let me see the project oprions....
Update
I have the same parametres as the example... the example works but
not my code..... I'll do some other tests
Posted: Tue Aug 15, 2006 3:38 am
by chen
NoahPhense wrote:Is the editor not available anymore? I can't seem to download it.
- np
thats true, the link does not take you to the download option...
I dont know why... if Progi1984 has problems I can put online for you the
library.... and remove when you get it.
Posted: Tue Aug 15, 2006 3:50 am
by NoahPhense
chen wrote:NoahPhense wrote:Is the editor not available anymore? I can't seem to download it.
- np
thats true, the link does not take you to the download option...
I dont know why... if Progi1984 has problems I can put online for you the
library.... and remove when you get it.
Oh, if this is for a lib (without source) then never mind. Thanks though.
- np
Posted: Wed Aug 16, 2006 8:17 am
by Progi1984
chen >
After tests, that doesn't run when Editorgadgets are in panels. My example modified with panles doesn't run anymore. I add it at the to do list.
radar >
thank you for your compliments
noahpense >
My lib is in my Signature (that i modified for the v0.4

)
Some Issues ...
Posted: Wed Nov 15, 2006 7:50 pm
by cabaptista
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
Re: Some Issues ...
Posted: Thu Nov 16, 2006 9:23 am
by Progi1984
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
1) Like you haven't got selected any text, if you write the text after (font selector) will be this of the font selector.
2) If you load a file in the editorgadget, all font, color, and so on are reinitialized so it is normal that the font was Ms Shell Dlg, which is default font for Windows
For news, I work on documentation but my job arrives at the end of its contract so I work more for having an indeterminated in time contract .
I update my lib at the end of December or beginning og January with help, examples, syntax highlighting and 300 procedures in more but not just on Editor.