English
Forum

letters Edit

 

Pedro
Santos
Hello

knows someone a Sendmessage circa in a Edit only letters to admit?

thanks

greeting

Pedro
 
Windows XP Home
Xprofan 10
09/10/06  
 



unfortunately Gibts this no Sendmessage - the get You but so [...]  there, circa very To his sooner so [...] 
 
09/10/06  
 




Jörg
Sellmeyer
Hello Pedro,
herewith GEHTS too with einfachen Profanmitteln:
CompileMarkSeparation
Def HiWord(1) Div&(&(1),$10000)
Def EditChange(1) And(And(Equ(%message,$0111),Equ(&lparam,&(1))),Equ(HiWord(&wparam),$300))

Proc LimitEditInput

    Parameters Ed_Handle&,LimitText$
    Declare Text$,Position%
    Text$=GetText$(Ed_Handle&)
    SendMessage(Ed_Handle&,176,Addr(Position%),0)Aktuelle Cursorposition

    WhileLoop Len(LimitText$)

        If InStr(Mid$(LimitText$,&Loop,1),Text$) > 0

            Text$=Translate$(Text$,Mid$(LimitText$,&Loop,1),"")
            SetText Ed_Handle&,Text$
            Text$=GetText$(Ed_Handle&)
            SendMessage(Ed_Handle&,$00B1,Position%-1,Position%-1)Cursor an gespeicherte Position
            Break

        EndIf

    Wend

EndProc

NumWidth 4
WindowStyle $21B
Window 10,10 - 600,400
Declare Edit&
Edit&=CreateEdit(%hwnd,"",100,100,60,24)
Declare ende%

WhileNot ende%

    WaitInput

    IF Equ(%key,2)

        Let ende%=1

    ElseIf EditChange(Edit&)

        LimitEditInput(Edit&,"1234567890")

    EndIf

Wend

 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/10/06  
 




Pedro
Santos
Hello you both

thanks for trouble

greeting

Pedro
 
Windows XP Home
Xprofan 10
09/10/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.341 Views

Untitledvor 0 min.
rquindt03/23/19
Ernst04/09/16
H.Brill05/09/14
Uwe Lang02/14/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie