AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display problem with 'Number'-edit field

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Tue Aug 02, 2005 1:11 pm    Post subject: Display problem with 'Number'-edit field Reply with quote

For example start this little tast:

Quote:
Gui, Add, Edit, Number,
Gui, Show


Now enter any unallowed character into it.
You can see a shadow (surrounding) like from a tooltip, but no tooltip came!

It is just a little bit annoying, but I wanted to post it.

Thalon, who is using (german) XP, SP2 and Ahk 1.37.02
Back to top
View user's profile Send private message
Andre



Joined: 22 Jul 2005
Posts: 52

PostPosted: Tue Aug 02, 2005 1:25 pm    Post subject: Reply with quote

Hi,

here also.
with 1.37.04

Andre

Tested on XP MUI (Dutch) SP1
& XP Dutch SP2


Last edited by Andre on Tue Aug 02, 2005 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
mario_a



Joined: 12 Dec 2004
Posts: 51

PostPosted: Tue Aug 02, 2005 5:14 pm    Post subject: Reply with quote

This has been reported earlier too . See this thread :
http://www.autohotkey.com/forum/viewtopic.php?p=20771

Apparently, the issue is not yet resolved. I don't see this bug on my machine though - Win XP Pro SP2

Regards,
Mario
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Aug 03, 2005 1:18 am    Post subject: Reply with quote

That's the problem with this bug:

1) It doesn't happen on all XP machines. If it happened on mine, I could try a process of elimination to fix it.

2) There is no code in the program for the balloon/tooltip because it's a built-in feature of the OS. This makes it harder to find the source of the problem (which is still probably in the program somewhere).

I asked for help in the newsgroup "microsoft.public.win32.programmer.ui" but haven't gotten any response yet.
Back to top
View user's profile Send private message Send e-mail
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Wed Aug 03, 2005 8:07 am    Post subject: Reply with quote

It occured in XP Home-Edition (mario_a uses Pro and it doesn't occure there).
Maybe it helps?

I didn't find the other problem because I only searched in bugreports, but this one was in Ask for help ^^

Thalon
Back to top
View user's profile Send private message
Andre



Joined: 22 Jul 2005
Posts: 52

PostPosted: Wed Aug 03, 2005 9:32 am    Post subject: Reply with quote

Hi,

Perhaps someone from the AutoIt team can help u ?

Andre
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Aug 03, 2005 12:40 pm    Post subject: Reply with quote

I looked at the code again and noticed the only thing unusual it does is send the EM_LIMITTEXT message to every edit control to remove the text limit. It's possible that this disrupts the ES_NUMBER style (which forces numeric input).

To check out this longshot theory, I've made a revised version of the program (edit: link removed because comments below indicate that it wasn't fixed). Here is a test script for it:
Code:
Gui, Add, Text,, Try to type something non-numeric:
Gui, Add, Edit, Number
Gui Show
return

GuiClose:
ExitApp

If the above fails to solve it, and even if it turns out to be an XP Home vs. Pro issue, I don't think that would give me any more insight about it.

The only approach to solving it that comes to mind is to write a simple program that has only a numeric Edit control in it. If that program doesn't have the problem, then it becomes a process of elimination as to what AutoHotkey does differently.

This could also turn out to be a compiler issue, in which case if someone were to compile it on some other platform with VC++ 6.x or a different version of VC++ 7.x, that might solve it.

Thanks.


Last edited by Chris on Wed Aug 17, 2005 5:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Wed Aug 03, 2005 12:59 pm    Post subject: Reply with quote

Thx for your fast help Chris, but it didn't solve the problem.

1) I have renamed my old AutoHotkey.exe and used instead your revised.
2) Killed all prozess of AutoHotkey.exe (only to get shure)
3) Started the program with your code and typed in some letters.

The 'balloon' does still occure Sad

It isn't of high priority for me, I just wanted to post it.

Maybe there is a solution somewhere in future!

Could anyone else try if it solves the problem for him?

Thalon
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Aug 03, 2005 1:20 pm    Post subject: Reply with quote

Thanks for trying it out. It was a longshot so I didn't have high hopes for it.

Assuming it's not solely due to an OS bug, this behavior is probably caused by something about the program as a whole: either its manifest, the way it initializes common controls, its compiler settings, or the compiler itself.

I'll keep searching for a solution.
Back to top
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 23, 2007 2:55 pm    Post subject: Reply with quote

Chris mentioned this old bug, I thought I should take a look.
It is interesting, I can reproduce the problem, but on the same system, I have SciTE which has a Go to line dialog box (Ctrl+G) with same controls, and it display correctly the tooltip warning that the typed character isn't allowed. So it is not a system problem (ie. works on some XP not on others) but rather a problem of use.
Using WinSpy, I found the control itself has styles very close of the SciTE one. I added WS_EX_NOPARENTNOTIFY which was the only missing style, but it didn't corrected the issue.
Now, one big difference is that the AHK GUI is a full application window, while the dialog in SciTE is... a dialog box. Maybe that's the main problem.
FYI, the SciTE dialog has additional styles over the AHK GUI:
DS_SETFONT
DS_MODALFRAME
DS_3DLOOK
DS_FIXEDSYS
and extended:
WS_EX_DLGMODALFRAME
WS_EX_CONTROLPARENT

I don't know if it can help...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Feb 23, 2007 3:53 pm    Post subject: Reply with quote

Thanks; this could be useful. I seem to remember that AutoHotkey uses GUI windows that aren't dialogs but they use the dialog-related methods for message processing. Although this combination is supposed to be allowed, it's non-typical and so perhaps there's an obscure OS limitation that causes this issue.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Jul 19, 2007 3:13 pm    Post subject: Reply with quote

This balloon-tip bug has finally been fixed in today's v1.0.47.02. The fix was related to WM_TIMER messages being blocked, which was discovered via serendipity in the topic http://www.autohotkey.com/forum/viewtopic.php?t=21208
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group