AutoHotkey Community

It is currently May 27th, 2012, 12:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 27th, 2005, 6:44 pm 
Offline

Joined: May 26th, 2004, 12:20 pm
Posts: 61
Hello,

if for any given window I try:

Code:
WinSet, Style, -0xC00000, ahk_id %winId%
WinHide, ahk_id %winId%
WinShow, ahk_id %winId%

when the window re-appears, it's lost its style settings.

Anything that I can do about this?

Thanks,

ant.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2005, 11:58 pm 
Is it possible that this is the same error which I describe in my recently added thread under "Ask for Help"?

http://www.autohotkey.com/forum/viewtopic.php?t=5132


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2005, 1:26 am 
Upgrading to version 1.0.37.07 solved the problem for me. Maybe it's a solution for you, too.


Report this post
Top
  
Reply with quote  
PostPosted: August 28th, 2005, 2:54 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
antonyb wrote:
when the window re-appears, it's lost its style settings

I tried it on Notepad and the problem doesn't seem to happen. Try this script:
Code:
Run Notepad
WinWait Untitled - Notepad
WinActivate
WinSet, Style, -0xC00000  ; Remove the title bar (WS_CAPTION).
WinHide
WinShow

Maybe your app automatically reinstates its title bar after being made visible.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2005, 8:04 am 
Offline

Joined: May 26th, 2004, 12:20 pm
Posts: 61
Hi,

AGU: No, I don't think this is the same problem, and no, upgrading didn't solve it :) Thanks anyway!

Chris: Yup, my bad. The app I'm trying must redraw its title bar. In my haste to check whether it happened on other windows too I screwed my test up... d'oh. Anyway, found a workaround (WinMove, title, 0, -24 :) ).

Thanks,

Ant.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group