And Don't forget to put the resident in the PureBasic_Dir\Residents
Progi1984 - Programs & Userlibs
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 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!!
			
			
									
									
						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!!
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
[EDIT] Fixed !
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!!
					Last edited by Progi1984 on Sun Sep 07, 2008 10:19 pm, edited 1 time in total.
									
			
									
						Release of September 2008 :
RPack.zip

Size: 74Ko
RLibPlus.zip

Size : 360Ko
DB_SQLite_0.3.zip

Size: 231Ko
GoogleCode : RWrappers
			
			
									
									
						RPack.zip

Size: 74Ko
Code: Select all
Update for PB 4.20.
Size : 360Ko
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
Size: 231Ko
Code: Select all
Release with SQLite 3.6.0.Code: Select all
Collection of all RWrappers.yeah,sorry i didn't make it clear!
actually it's easy:
PB is using a number (or by #PB_any)to identify a natively window. right now your gadget is using EditorGadget(#window number,....) to attach the gadget to the PB window,but it's not what i need,because i don't want to use your gadget in PB,but in another language,so i have to use PB to write a editor Dll,however,the function editorGadget()only support using a #window number as parameter,i can't use this in another App,i wonder if you can add a new function EditorGadget(Window HWND,...),so i can pass my App window HWND(In pb we can get by windowID(#number) ) as parameter to the function (to attach the gadget to my App window directly). Am i clear? if not,i will give you more details
			
			
									
									
						actually it's easy:
PB is using a number (or by #PB_any)to identify a natively window. right now your gadget is using EditorGadget(#window number,....) to attach the gadget to the PB window,but it's not what i need,because i don't want to use your gadget in PB,but in another language,so i have to use PB to write a editor Dll,however,the function editorGadget()only support using a #window number as parameter,i can't use this in another App,i wonder if you can add a new function EditorGadget(Window HWND,...),so i can pass my App window HWND(In pb we can get by windowID(#number) ) as parameter to the function (to attach the gadget to my App window directly). Am i clear? if not,i will give you more details


