| |
|
|
Uwe ''Pascal'' Niemeier | Hi Roland!
i'm recently noticed, the Profans Create("RichEdit"...) one Control the "alten" class RICHEDIT anlegt instead of the newer Richedit20A To use: CompileMarkSeparationwindow 400,400
var a&=create("RichEdit",%hwnd,"",10,30,200,50)
settext a&,classof(a&)
sendmessage(a&,1087,0,1)--EM_HIDESELECTION => none
sendmessage(a&,177,0,-1)--EM_SETSEL => alles markieren
var b&=control("RichEdit20A","",getstyle(a&),10,120,200,50,%hwnd,1,0)
settext b&,classof(b&)
sendmessage(b&,1087,0,1)--EM_HIDESELECTION => none
sendmessage(b&,177,0,-1)--EM_SETSEL => alles markieren
while 1
waitinput
beep
| 04/05/10 ▲ | |
|
|
|
|
Uwe ''Pascal'' Niemeier | * in memory *
is this feature to Kompatiblität really yet necessary?
SeeYou Pascal |
|
|
| |
|
|
|
RGH | Hello Pascal, in the next (presumably present) Subscriptionsversion can instead of the initialen Textes (whom eh' hardly someone brauchtr and uses) one mode indicated go: mode 0 = old Version ("RICHEDIT" ) mode 1 = new Version ("RICHEDIT20A" ) becomes How yet one initialer Text indicated, becomes automatically mode 0 chosen.
Please test times!
(former I had it time so arranged, that RICHEDIT20A uses watts if The zugehörige RICHED20.DLL found watts, ansonstenm the RIOCHEDIT from the RICHED32.DLL. from one unfortunately forgotten reason I had whom Codeteil for the newer RichEdit since some versions auskommentiert.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/29/10 ▲ |
|
|
|
|
Uwe ''Pascal'' Niemeier | Hi Roland!
The Vollständigkeit halber should You too whom type RichEdit50W (RichEdit 4.1) to permit: CompileMarkSeparationwindow 500,300
var Edit1&=create("RichEdit",%hwnd,1,10,10,200,200)'--RichEdit20A
settext Edit1&,classof(Edit1&)
var dll&=usedll("Msftedit.dll")
var Edit2&=control("RichEdit50W","",getstyle(Edit1&,0),220,10,200,200,%hwnd,1234,0,getstyle(Edit1&,1))
settext Edit2&,classof(Edit2&)
while 1
waitinput
e e
Wozu to the need can or. where The advantages lying white so did i not yet, but one can Yes never know...
BTW: if The jeweilige Version unavailable is ought to Perhaps a suitable warning erfolgen.
SeeYou Pascal |
|
|
| |
|
|
|
RGH | OK, with mode 2 get one ex the next Release-Kandidaten, if present, the RichEdit50W, otherwise goes the Fallback over RichEdit20A to that middle-aged RichEdit. an warning would like I really not spend, I z.B. in final Programmcode The Warnungen eingeschaltet let and then the User älterer Windowsversionen "grundlose" Warnungen sustain. it standing Yes the Programmer spare, by ClassOf() To to check on, which Version now present is.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 10/30/10 ▲ |
|
|
|