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 

Scrolling data browser

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



Joined: 18 Mar 2005
Posts: 166

PostPosted: Sat Apr 30, 2005 7:31 pm    Post subject: Scrolling data browser Reply with quote

Is there any straight forward way to achieve this effect (or script widget already written?): I want to allow the user to ...

a. "browse" data records from a file, in re-sizable, scrollable window (scroll up down the records, left-right if the info-line is wider than the window).

b. many of the data records would need parsing and processing before each is displayed as a line in this browser

c. and even better if I can filter or sort this list.

I know I am asking a lot - but certainly there are those here that have at least had to think about approaches to efficiently doing this, and perhaps a few that have already done it.

And of course, if there I have overlooked some obvious function(s) in AHK - feel free to point that out too ! ; )

Thanks!
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sun May 01, 2005 10:55 am    Post subject: Re: Scrolling data browser Reply with quote

cornell2 wrote:
"browse" data records from a file, in re-sizable, scrollable window
Until the ListView control is added, as a general approach you could use a ListBox and have the box resize proportional to the window by using the GuiSize label.

Quote:
many of the data records would need parsing and processing before each is displayed as a line in this browser
The ListBox control supports custom tab stops, which could be used to format each row of data into columns.

Quote:
filter or sort this list
You probably already know about the Sort command. Filtering can be done with commands such as IfInString and the parsing loop (to filter on certain columns).

I know the above isn't much help. If you get stuck on anything specific, someone can probably post a short script to help in that area.
Back to top
View user's profile Send private message Send e-mail
cornell2



Joined: 18 Mar 2005
Posts: 166

PostPosted: Sun May 01, 2005 4:27 pm    Post subject: Reply with quote

Thanks ... I just found the 1-2 List Function/script libraries here and will have to spend some time wading through them to see how they can work as a file-contents browser.My initial impression however is that it only goes 1/2way there. But I would love to get ideas here: Here is an example:
    1. Start with two data files (ultimately databases, or xls ... not text files - but that is the subject of another thread ; )
    2. Each file is organized into records with distinct fields.
    3. Each field may have to be formatted before it is display. ie. a 10 digit number may have to be displayed in phone number format (999)-999-9999.
    4. The records (lines) of each file is displayed in an explorer-like window - where the user can scroll up and down the lines of data.
    5. The records may be filtered (for instance, skipping all records with the area code 408
    6. or instead listed such that all records containing (408) are in red.
OK - so far, this might not seem too complex or a stretch for AHK, though it is a non-trivial task to get this working smoothly. But then, add the following essential features.
    7. Just like windows explorer, I want to be able to mark, cut, copy and paste multiple records, or move or add.
    8. and, drag and drop (or copy) using the mouse between the two separate lists.
    9. Then there are other incremental desirable features such as the ability to flag certain record such that they can be seen but skipped when browsing, and the ability to have a tree-like structure
    10. and the ability to do some in-line editing (similar to F2-rename in explorer

Now then, before I start building any of this (or seeking alternatives) - I want to get a sense of what is already possible in AHK, or has already been done. No one wants to reinvent the wheel.

But an explorer-like widget to browse file-data does not seem to be an uncommon function or rather one that, if made availabe would be very popular here.

Thoughts, ideas, comments???

Thanks!
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 755
Location: Berlin

PostPosted: Sun May 01, 2005 8:22 pm    Post subject: Reply with quote

Until AutoHotkey supports dll-calls, and listviews, you are probably better of trying Gui4Cli, it can do what you want (it has DDE support for example) already.

So, if you are in a hurry, try Gui4Cli, if not.... wait a bit Wink
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon May 02, 2005 10:42 am    Post subject: Reply with quote

Good advice. Even with a ListView, some of the requested behavior is fairly complex and probably more solvable with specialized GUI tool such as VB or Gui4Cli.
Back to top
View user's profile Send private message Send e-mail
cornell2



Joined: 18 Mar 2005
Posts: 166

PostPosted: Mon May 02, 2005 4:23 pm    Post subject: Reply with quote

Well, the overarching requirement here is that I wanted the solution to work with AHK. I am reading that these 3rd party solutions take me away from AHK, correct?
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon May 02, 2005 10:09 pm    Post subject: Reply with quote

Yes, keeping in mind that a highly custom, complex GUI application is likely to require a programming language or a specialized data viewing tool to implement properly. You might still be able to script most of this, it's just that some interface elements either won't behave exactly as you wanted or won't be possible.
Back to top
View user's profile Send private message Send e-mail
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