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 

Disappearing ListView..

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Pasukun



Joined: 16 Dec 2004
Posts: 84

PostPosted: Wed Jun 11, 2008 4:00 pm    Post subject: Disappearing ListView.. Reply with quote

I am having a trouble with the disappearing ListView box. It happens when I press the column headers to sort the listings.

Funny thing is.. it works fine when I click on the 1st column's header, but if I click on any other column headers.. the ListView box will disappear from the GUI..

I know the problem is related to the resizing(for the Listview) portion of the script..
Because, when I disable the resizing script, the problem goes away..

I've been messing around for last few hours to fix it, but I can not figure out what could have gone wrong..
Could this be a bug?
Did anyone else had the same problem?

Below is the code for the resizing.

Code:
GuiSize:
if A_EventInfo = 1
   return
GuiControl, Move, LIST, % "W" (A_GuiWidth - 10) "H" (A_GuiHeight - 10)
return


Thanks for looking. Smile
_________________

"the things we touch have no permanence. my master would say: there is nothing we can hold onto in this world.. only by letting go can we truly possess what is real..."
Back to top
View user's profile Send private message
nick (n-l-i)
Guest





PostPosted: Wed Jun 11, 2008 4:16 pm    Post subject: Reply with quote

Code:
GuiSize:
if A_EventInfo = 1
   return
GuiControl, Move, LIST, % "W" (A_GuiWidth - 10) " H" (A_GuiHeight - 10)
return

Question
Back to top
Pasukun



Joined: 16 Dec 2004
Posts: 84

PostPosted: Wed Jun 11, 2008 4:26 pm    Post subject: Reply with quote

It was a " H" before, then I changed to "H" to see if it had anything to do with the problem.

The problem occurred either way.

Also, the resizing script works fine.
As I resize the GUI window, the ListView box will resize as well, proportionally.

It is just that.. my discovery lead to the resizing script.. when disabled, stopped the problem.
But, of course it also disabled the ListView box's resizing ability.
_________________

"the things we touch have no permanence. my master would say: there is nothing we can hold onto in this world.. only by letting go can we truly possess what is real..."
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Thu Jun 12, 2008 5:00 am    Post subject: Reply with quote

use Titan's Anchor script. I use it to resize a gui at work with a listview. everything works fine.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
nick



Joined: 24 Aug 2005
Posts: 345
Location: Berlin / Germany

PostPosted: Thu Jun 12, 2008 6:35 am    Post subject: Reply with quote

@engunneer:
IMO there's no need to use Titan's script for only one control.

@Pasukun:
I've found only one way to reproduce this behaviour, the script must fall or jump into the GuiSize routine. Would you be so good as to show us a little more code?
_________________
nick

denick @ http://de.autohotkey.com/forum/
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Thu Jun 12, 2008 7:26 am    Post subject: Reply with quote

but it makes life so much easier.

and with most guis, there will be more controls later.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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