flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > uTorrent's "Create New Torrent" dialog

Author
Thread Post new topic Reply to topic
rohagymeg



Joined: 19 Aug 2011
Posts: 77
How can I make the select folder dialog? I already implemented the select file for my torrent maker project, which you can find here: http://board.flatassembler.net/topic.php?t=14126&postdays=0&postorder=asc&start=0

But for the life of me I can't figure out what method utorrent uses to be able to select a folder and also, the open button is called "select folder" but in my own language! Is it a system variable, or does utorrent have a database of all the languages just to have a custom select folder button? EDIT: It's called IFileDialog

And the combobox (which stores the selected path) has 2 empty dropdown items when there is no history of previous torrent file creations. The thing is, it looks nicer than not having that, because this way it's clear to the user that the list is empty. However, when I made the same, I can select them(they become blue when the mouse is over them), and that's not how I want it. I want it the same as in utorrent's, where you cannot select them.

I know these questions are very specific. I just hope some people could give me a hand.


Last edited by rohagymeg on 14 Oct 2012, 21:47; edited 2 times in total
Post 03 Oct 2012, 21:45
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16736
Location: In your JS exploiting you and your system
There is no reason that you have to use the windows inbuilt dialogs. You can design your own and make them do whatever you need. However, that doesn't mean I know anything about uTorrent, it is just a general statement to suggest that perhaps it uses a custom dialog.
Post 04 Oct 2012, 10:02
View user's profile Send private message Visit poster's website Reply with quote
rohagymeg



Joined: 19 Aug 2011
Posts: 77
Thanks! I''ll look into it. Since my goal is to avoid resources wherever possible, hook procedure will be my method.
Post 09 Oct 2012, 20:59
View user's profile Send private message Reply with quote
nmake



Joined: 13 Sep 2012
Posts: 193
uTorrent isn't as small as it claims to be, it is packed with upx, if you unpack it, it approaches a megabyte in size. It is not a tiny torrent program anymore. What we need, is an assembly torrent program that is really tiny and fast. Smile
Post 14 Oct 2012, 20:07
View user's profile Send private message Reply with quote
rohagymeg



Joined: 19 Aug 2011
Posts: 77
I realized that the utorrent's select folder dialog is a vista+ feature. Foobar2000 uses it too. In this link there is an example code that works:

http://board.flatassembler.net/topic.php?t=14106

The IFileDialog is what produces those type of dialogs. I just wonder what xp does with this code. I'll probably have to make a program jump if OS is xp or 2000.
Post 14 Oct 2012, 21:34
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.