Restored from previous forum. Originally posted by cor.
The pb editor seems not to use the userlib richedit.(maybe I'am wrong)
Has someone a small working examples how to use the richedit gadget like used in the PB editor?
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Richedit gadget
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Cor,
There is a small example for the syntax coloring @ viewtopic.php?t=2205">http://forums.pur ... nny.zeb.be
Cor,
There is a small example for the syntax coloring @ viewtopic.php?t=2205">http://forums.pur ... nny.zeb.be
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Bedankt Berikco,
Maar helaas werkt onderstaande code niet.
Getest op win95, PB 3.40
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Bedankt Berikco,
Maar helaas werkt onderstaande code niet.
Getest op win95, PB 3.40
Code: Select all
Global hwnd
Global buf$
Buf$="{\rtf1\ansi\ansicpg1252\deff0\deflang2067{\fonttbl{\f0\fswiss\fcharset0 Arial;}}"
buf$+"{\colortbl ;\red255\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red255\green0\blue255;\red128\green0\blue0;}"
buf$+"\viewkind4\uc1\pard\cf1\f0\fs40 PureBasic, \cf2 feel\cf1 \cf3 the\cf1 \cf4 pure\cf1 \cf5 power\cf0\fs20\par}"
hwnd= OpenWindow(1, 200, 100, 500, 250 ,#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget| #PB_Window_SizeGadget,"PB Window 1")
;
If hwnd
*RichEditGadget = CreateWindowEx_(#WS_EX_CLIENTEDGE, "RichEdit20A", 0, #WS_CHILD | #WS_VISIBLE | #ES_MULTILINE | #ES_AUTOHSCROLL | #ES_AUTOVSCROLL | #ES_WANTRETURN | #WS_HSCROLL | #WS_VSCROLL, 10, 10, 400, 200, WindowID(), 1, GetModuleHandle_(0), 0)
SendMessage_(*RichEditGadget, #WM_SETTEXT,0, @buf$)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
;
End
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
Mmm, zou moeten werken, deze code gebruikt de nieuwe riched20.dll en riched32.dll als ik het goed heb.
Dezelfde Richedit als de 3.40 editor, 'RichEdit20A'. Werkt de PB syntaxcoloring op je systeem?
Regards,
Berikco
http://www.benny.zeb.be
Mmm, zou moeten werken, deze code gebruikt de nieuwe riched20.dll en riched32.dll als ik het goed heb.
Dezelfde Richedit als de 3.40 editor, 'RichEdit20A'. Werkt de PB syntaxcoloring op je systeem?
Regards,
Berikco
http://www.benny.zeb.be
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
PB syntaxcoloring is working
Also checked this on a win98 system, also doesn't work
Report:
PopupWindowEvent() is not a function,array or linked list.
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
I change to english so other forum users can also follow this.Originally posted by Berikco
Werkt de PB syntaxcoloring op je systeem?
Regards,
PB syntaxcoloring is working
Also checked this on a win98 system, also doesn't work
Report:
PopupWindowEvent() is not a function,array or linked list.
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
I asked a small example, not the complete source, it's to complex for me. I'am sorry.
We are all not as good as you Danilo:)
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
I asked a small example, not the complete source, it's to complex for me. I'am sorry.
We are all not as good as you Danilo:)
Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com