
And Don't forget to put the resident in the PureBasic_Dir\Residents
Code: Select all
EnableExplicit
Define *memid,text.s,length.l
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
EditorGadget(0, 8, 8, 306, 133)
text="\par La cigüeña tocaba el \b saxofón \b0 detrás del palenque de paja."
Editor_RTF_InsertRTFCode(0,text)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
I work on the problem !fizban wrote:I'm having problems with RTF when compiling with Unicode support. The following code works in Ascii but not in Unicode:
Code: Select all
EnableExplicit Define *memid,text.s,length.l If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0)) EditorGadget(0, 8, 8, 306, 133) text="\par La cigüeña tocaba el \b saxofón \b0 detrás del palenque de paja." Editor_RTF_InsertRTFCode(0,text) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf
Can you explain more what you want ? Because I don't understand ! Thanks !liverol wrote:hi there,Progi1984,long time no see!!
just tell you my work goes well and next i will use
the editor gadget to write a script editor!! thanks for your
hard work again and a request here
i wonder if you can offer a function EditorGadget(HWND,...)
because i want to use the function directly to window of my own,
actually i don't plan to use pb to write my graphic core,so i just use
pb to write a editor DLL,and using the dll to my own graphic window,
i think this is possible,so i hope you can add one function(or modify),
appreciate!!
Code: Select all
Update for PB 4.20.
Code: Select all
The old name for this userlib is LibEditorPlus. This userlib has been upgraded et is applied in others gadgets.
Code: Select all
Changelog : 0.1.2 : FIXED : Editor : Editor_RTF_InsertRTFCode in Unicode
Code: Select all
Release with SQLite 3.6.0.
Code: Select all
Collection of all RWrappers.