AutoHotkey Community

It is currently May 27th, 2012, 1:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 11th, 2005, 12:31 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
When you put a ListView in a tab you have to use the -Redraw and +Redraw in order to keep the gui looking normal. Not a huge bug, but one that might want to be looked at.
Code:
Gui, Margin, 5, 5
Gui, Add, Tab, w690 h370, Current|History
Gui, Tab, Current
Gui, Add, ListView, w675 h300 vListView, Date / Time|Error
Gui, Add, Button, gUpdate, Update List
Gui, Tab, History

Gui, Show,, Test Window
UpdateList()
return

UpdateList()
{
;  GuiControl, -Redraw, ListView ; Uncomment to fix redraw problem.
  Loop, 100
  {
    datetime = %a_yyyy%%a_mm%%a_dd% %a_hour%%a_min%%a_sec%
    error = This is an Error %a_index%
     LV_Add("", datetime, error)
  }
  LV_ModifyCol(1, "AutoHdr")  ; Auto-size each column to fit its contents.
  LV_ModifyCol(2, "AutoHdr")  ; Auto-size each column to fit its contents.
;  GuiControl, +Redraw, ListView ; Uncomment to fix redraw problem.
}

Update:
UpdateList()
return

GuiClose:
ExitApp

thanks,
beardboy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2005, 4:15 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
It appears even with +-Redraw the problem still exists. If you open another application and have it over the top of the GUI and then bring the GUI back, the problem occurs.

thanks,
beardboy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2005, 2:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think this has been fixed in v1.0.36.06. The fix involved putting the Tab control beneath the ListView in the z-order, which as a side effect causes tab-key navigation to visit the tab control after its sub-controls. Hopefully this won't be an inconvenience in the vast majority of scripts.

Thanks for reporting it, and for the easy-to-run example you provided.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 1 guest


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