| View previous topic :: View next topic |
| Author |
Message |
Pasukun
Joined: 16 Dec 2004 Posts: 84
|
Posted: Wed Jun 11, 2008 4:00 pm Post subject: Disappearing ListView.. |
|
|
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.  _________________
"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 |
|
 |
nick (n-l-i) Guest
|
Posted: Wed Jun 11, 2008 4:16 pm Post subject: |
|
|
| Code: | GuiSize:
if A_EventInfo = 1
return
GuiControl, Move, LIST, % "W" (A_GuiWidth - 10) " H" (A_GuiHeight - 10)
return |
 |
|
| Back to top |
|
 |
Pasukun
Joined: 16 Dec 2004 Posts: 84
|
Posted: Wed Jun 11, 2008 4:26 pm Post subject: |
|
|
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 |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jun 12, 2008 5:00 am Post subject: |
|
|
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 |
|
 |
nick
Joined: 24 Aug 2005 Posts: 345 Location: Berlin / Germany
|
Posted: Thu Jun 12, 2008 6:35 am Post subject: |
|
|
@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 |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jun 12, 2008 7:26 am Post subject: |
|
|
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 |
|
 |
|