The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: RuiLoureiro on September 17, 2008, 04:08:58 PM

Title: Caret Control Problems
Post by: RuiLoureiro on September 17, 2008, 04:08:58 PM
Hello all,
           I have one problem to input in the STATUS BAR
           I have problems to control the caret position.
           It doesnt follow the next char. I am using the Status bar handle
           the satus bar DC and GetTextExtentPoint32.
           Am i doing something wrong ?
           
           To show the problem i attached the folder RuiEdit1,
           with files:
Quote         
     * EditBox6. (asm & exe ) - problems with WM_PAINT when it
                                          ends in:  xor    eax, eax
                                                       ret
     * EditBox7. (asm & exe ) - all message processing ends in DefWindowProc

    Try this:
                   . run EditBox6.exe and see the text

    Now, try this:
                   . run EditBox7.exe, type something and see the Caret

    Anyone have an idea that can help
    Thanks
Rui               

[attachment deleted by admin]
Title: Re: Caret Control Problems
Post by: RuiLoureiro on September 18, 2008, 06:53:46 PM
Hi,
    I found one solution ( ? ) to my problem. See EditBox11
      Meanwhile i was playing with fonts.
      EditBox11 runs correctly in your pc ?
      Have you any help to my problem ?

Thanks
Rui


[attachment deleted by admin]
Title: Re: Caret Control Problems
Post by: ToutEnMasm on September 18, 2008, 08:31:53 PM
Hello,
nice sample