News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Caps lock on Warnning while in edit box

Started by hfheatherfox07, April 18, 2011, 05:53:30 PM

Previous topic - Next topic

jj2007

Quote from: dedndave on April 22, 2011, 11:35:17 AM
in the windows user login password box, the "Caps Lock is On" text is bold

Bold enough?


dedndave

i can see that without my glasses, Jochen   :bg

but, what i meant to say was - they have 2 different fonts in the same tooltip
i.e., how do you change fonts in mid-stream   :P



i tried using SetWindowText
supposedly, tooltips have a "titlebar"
i see they also have an icon
i must be mashing the wrong buttons


the attachment is the above PNG image renamed as ZIP

jj2007

Quote from: dedndave on April 22, 2011, 04:48:12 PM
but, what i meant to say was - they have 2 different fonts in the same tooltip

That sounds quite impossible ::)


dedndave

 :P
you beat me to it - lol

TTM_SETTITLE

dedndave

i wanted a way to force a tooltip to show
little trick - send the tooltip a WM_MOUSEHOVER message with wParam and lParam set to 0   :P

i have it working pretty well, now
i am just playing with the TTDT_INITIAL and TTDT_RESHOW delay times

dedndave

trying to figure out the common controls/manifest problem   :(

this might be effective
        call    Random
        push    eax
        push    sizeof INITCOMMONCONTROLSEX
        INVOKE  InitCommonControlsEx,esp
        pop     ecx
        pop     edx


it's bound to work, eventually   :P

dedndave

in an attempt to "marshall" some help on the manifest file, i have created a new thread
the first post includes the download of my latest attempt
if you comment out the manifest line in the resource file and build it, it works fairly well

http://www.masm32.com/board/index.php?topic=16538.0

dedndave

ok - my final attempt   :bg

the caps lock warning only comes on for the "password" edit control   :U
a whole bunch of code has been eliminated - lol

FORTRANS

Hi,

   Not working here.  (No warning.  The rest seems to work.)
The name is modified if that matters.

Sorry,

Steve N.

dedndave

yah - i was afraid the ES_PASSWORD balloon tip might not work on win 2k
maybe i'll put the other tip back in there - i already have the code written - lol
i don't understand what you mean by "The name is modified"   :P

FORTRANS

Hi,

   For various reasons (some of which either don't make sense
to me or are unknown), ZIPped files get renamed to 8.3 on this
machine.  So capslock5.exe gets truncated.  I did not see where
that would make a difference in this case, but it has screwed up
things before.  So I mentioned it just to be complete.

Cheers,

Steve

dedndave

ahhhh - that is probably the WinZip version number   :P
it makes no difference, in this case

dedndave

well - i am not really sure how to make one that works with win2k through win7
other than owner-drawn, i guess
i have a version with the ES_PASSWORD style on edit control #2
and it's subclassed to disable the balloon tip
now, you just have to add your own tooltip in there that works on different windows versions   :P
kind of like a kit - some assembly required   :lol

at this point, i am going to drop this little toy and move on with my other project

hfheatherfox07

Quote from: dedndave on April 25, 2011, 12:46:45 PM
ok - my final attempt   :bg

the caps lock warning only comes on for the "password" edit control   :U
a whole bunch of code has been eliminated - lol

Hi all... I am back ... Sorry I was away longer than expected...
Thank you so much for all the reply's....

I just came and got to my emails and from I can tell from downloading the attachments...  this one works!
I have not had the chance to assemble my self yet but It seems to work great ! Thanks...

Thank you again....
And sorry for my absence in this...


hutch--

 :bg

Dave,

There is a vulgarity that would do the job fine, subclass the edit control and filter the characters as they are typed. Use GetAsynchKeyState() to test if the "Shift" key is pressed and if its not squark a warning about the caps lock being on.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php