AutoHotkey Community

It is currently May 27th, 2012, 3:19 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: August 11th, 2009, 11:22 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Hi.

First of all, very nice work. I added it to the list of Gui related scripts.



One problem, tho, very serious: when you resize column, script blocks and burns CPU. Thats something I often encounter when implementing custom controls and its always about message monitoring (subclass, onmessage....).

You have 2 places where that happens: OnNotify and LV Scrolling and both may crash the AHK. Keep in mind that it can be more or less problematic on any particular computer, you maybe never encountered it so far. On my PC, each time I move column, it crashes (Vista, Quad Core).


Adding critical 500 to mentioned functions seem to solve the problem. I am not yet sure if it rly solves it, but it will definitelly work better. In my work sometimes even that doesn't help much.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2009, 6:57 am 
when using it, having my content of listview sometimes totally disappear and my script hang out.

There is about 1400+ line in the listview and problem is totally random.

any idea ?
I think i have got 1 time theproblem when not using LVA too ... :) but wasn't sure. Anyway without LVA i don't think having listview bug


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2009, 10:43 pm 
Offline

Joined: September 8th, 2009, 10:09 pm
Posts: 10
Using demo script just scroll faslty the listview will make the list bug randomly


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2009, 3:50 pm 
Offline

Joined: February 7th, 2009, 11:28 pm
Posts: 384
thanks for the script. i hope it will be updated.

anyone know if similar methods could modify individual TreeView branch colors?

I'm insufficiently fluent in AHK to write a script like this myself, but I may try to convert the original, or the one by evl this script was based on, into a treeview version; but it would be trial and error stuff...

_________________
Hardware: 1.8 GHz laptop with 4 GB ram, Windows XP/SP3
Software: Prevx, Privatefirewall, KeyScrambler.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2009, 4:48 pm 
Offline

Joined: September 8th, 2009, 10:09 pm
Posts: 10
well this script is excellent, however i haven't the skills yet for fix it.

I think the problem is on the event handler or the way it's done.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2009, 10:09 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
You should all try what I described above. It should solve the problem.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2009, 1:34 am 
Offline

Joined: September 8th, 2009, 10:09 pm
Posts: 10
i have add critical 500 :
Critical 500
OnMessage("0x4E", "LVA_OnNotify")

Don't seems fix problem for me.
When application freeze, if i click on trail icon, it's continue a bit to unfreeze the scrolling (but not totally)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: another problem
PostPosted: October 12th, 2009, 10:34 pm 
Offline

Joined: April 8th, 2008, 1:08 am
Posts: 100
Location: Minnesota, USA
Another problem:
This script works great, but after generating so many rows it will stop coloring them..

_________________
-trueski-


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2010, 12:43 am 
Offline

Joined: September 8th, 2009, 10:09 pm
Posts: 10
storm91 wrote:
i have add critical 500 :
Critical 500
OnMessage("0x4E", "LVA_OnNotify")

Don't seems fix problem for me.
When application freeze, if i click on trail icon, it's continue a bit to unfreeze the scrolling (but not totally)


anyone have idea how to fix it ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2010, 2:34 pm 
Offline

Joined: December 28th, 2006, 9:46 am
Posts: 440
Any way to adjust this to show text in a cell with a progress bar? If not regular listview text then possibly custom text through gdi?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2010, 6:00 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
To fix freezing bug you can also try this:

1. Remove subclassing. Put return in lva_Subclass function as first line.
2. Put critical 500, in lva_OnNotify function.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 20th, 2010, 9:29 pm 
Sorry for the bump, but I need some help here.

I'm using LVA to highlight a cell in a Listview, like in Excel. A user can navigate with the arrow keys and enter data into certain cells.

The problem I'm having is that the listview is on a second gui. When you destroy and reopen the Gui, I run into both lagginess and a redrawing problem. Does LVA not handle a destroyed and recreated Listview?

I'm calling LVA_ListViewAdd and OnMessage("0x4E", "LVA_OnNotify") whenever I create (and recreate) the listview. Could this be the problem too? If so, which should I only call once?

Thanks.


Report this post
Top
  
Reply with quote  
PostPosted: May 21st, 2010, 1:17 pm 
dadepp wrote:
Things to Do:
- Implement an editcontrol to be shown to edit individual cells
- same as above, but with a dropdownbox


has this been implemented? are there any other controls that have done this?

i know i've seen some other IDEs that use these controls, maybe the Visual Basic platform where they use one of these controls which handles all the settings of a particular control or something. i want one of these for my app


Report this post
Top
  
Reply with quote  
PostPosted: May 21st, 2010, 1:19 pm 
guest3456 wrote:
dadepp wrote:
Things to Do:
- Implement an editcontrol to be shown to edit individual cells
- same as above, but with a dropdownbox


has this been implemented? are there any other controls that have done this?

i know i've seen some other IDEs that use these controls, maybe the Visual Basic platform where they use one of these controls which handles all the settings of a particular control or something. i want one of these for my app


for example, this properties box in the image below, you can click the cells and edit them or get a dropdown, etc

http://www.cs.trinity.edu/~thicks/Tutor ... w.ht30.jpg


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 21st, 2010, 4:04 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
I tried, but of course failed, it seemed simple but apparently not for my elementary abilities. Is it possible that someone could develop a function to draw a line through the cell to create a strike through look?

I tried to mess with the progress bar function to draw a line instead of a rectangle, place it centered in the cell and blah blah blah but I just don't quite understand the full functionality of the code yet.

If no one else does it I'll be continuing to try and figure this code out since it will help me learn anyway. If I ever get it I'll post my attempt at it lol.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg, tidbit and 11 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