Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4938

Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause

From "Willie Moore" <williem@wmconsulting.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause
Date 2013-03-21 07:41 -0500
Organization Aioe.org NNTP Server
Message-ID <kiev5o$dhl$1@speranza.aioe.org> (permalink)
References <c05de7d0-540c-4250-944c-0a0f07144f75@googlegroups.com>

Show all headers | View raw


Veselin,

If you want the SLE to start in a different position (ie not to erase 
whatever might be in there already), use a postmessage in your windows's 
postinit or you can subclass the SLE and make a change in the focuschange 
message.

Regards,
Willie
Vulcan VIP

Class mySLE Inherit SingleLineEdit
METHOD FocusChange(oFocusChangeEvent) CLASS mySLE
   LOCAL iPos        AS LONGINT     // modified focuschange from the SDK
   LOCAL uRet        AS USUAL

    uRet    := SUPER:FocusChange(oFocusChangeEvent)
    IF oFocusChangeEvent:GotFocus
         iPos := 0
         PostMessage(SELF:Handle(), EM_SETSEL, DWORD(iPos), iPos)    // set 
cursor to the him position
   endif
   return uRet



wrote in message 
news:c05de7d0-540c-4250-944c-0a0f07144f75@googlegroups.com...

When I edit the field for the first time in the form, and the field has 
PICTURE clause, the content of the field deletes. How to avoid this behavior 
?

Thank you in advance
Regards,

Veselin 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-21 00:35 -0700
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause "Willie Moore" <williem@wmconsulting.com> - 2013-03-21 07:41 -0500
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-22 10:45 -0700
    Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause "Willie Moore" <williem@wmconsulting.com> - 2013-03-22 13:26 -0500
  Re: Visual Objects 2.8 (2830) Edit Control with an active PICTURE clause office.sonita@gmail.com - 2013-03-23 01:36 -0700

csiph-web