Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

TvDialog

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-28-2010, 12:24 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default TvDialog

I have been using Fg dialog for quite a while and noticed that I don't use the file's details (size,date) and that I have to scroll a lot in the table because it displays only 6.5 files.

I made the attached library for the same use - file and directory browser for the sake of openning or saving a file, or selecting a directory.
The display is by treeview only, with the directories first and then the files, this way you can see a longer list of files after the directory is selected.

It is possible to toggle between sorting by name or by date.

The zip includes the dlls and cs files (yes, this can be merged) and a demo program which also show how to use it.
The last used directory is stored for the next time.

Thanks to Agraham - I learned from his color dialog library how to do it.

Note: I noticed that when using the demo program, second request takes a long time for the dialog to appear. This behaviour is not evidenced in larger size programs, where I get the dialog to appear after 2-4 seconds. I guess its a matter of garbage collection processes.

Edit: - updated to ver 1.1
- updated to ver 1.2 - the icon images are embeded in the code.
- Ver 1.3 enables to define location on screen of the dialog form - Desktop only.
Attached Images
File Type: jpg tvd2.jpg (33.5 KB, 95 views)
Attached Files
File Type: zip Export 1.3.zip (20.5 KB, 58 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 09-02-2010 at 03:33 PM.
Reply With Quote
  #2 (permalink)  
Old 08-03-2010, 11:13 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Updated to ver 1.1 -
The facility to select several types for filtering is added to the .net by B4PPC.
After learning this I added this functionality also :

tvd.ShowOpen("*.jpg;*.bmp;*.gif")
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 08-04-2010, 08:54 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

The icon images are now embeded into the code, using sitajony's FileEncoder . Thanks

btw - does anyone know how to switch sharpdevelop to wrap the text in the main window ?
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-04-2010 at 08:57 AM.
Reply With Quote
  #4 (permalink)  
Old 08-09-2010, 01:36 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I was looking for such a lib, great stuff !

One question though, would it be possible to add coords to the popup?
at the moment the dialog pops up at a set location on screen..
would be great if it could be relative to the form..

thanks again
Reply With Quote
  #5 (permalink)  
Old 08-10-2010, 02:40 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

[quote][at the moment the dialog pops up at a set location on screen..
would be great if it could be relative to the form..
/QUOTE]

I'm not sure I understand. On the device the dialog is a form and fills the whole screen.
On the desktop it appears somewhere, but why use this library for the desktop ? the existing windows dialog is fine...

If you do want it for Desktop - I shall look into it.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 08-11-2010, 09:40 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
On the desktop it appears somewhere, but why use this library for the desktop ? the existing windows dialog is fine...
I'm using it as a folder chooser on the desktop, looks and works great!

Quote:
If you do want it for Desktop - I shall look into it.
Great thanks!
Reply With Quote
  #7 (permalink)  
Old 08-11-2010, 07:48 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Sorry, I tried but it does seem to have any effect.

I tried forms Location, Left and Top, tried to set the startposition but to no avail.

I noticed that the dialog forms appear each time at a lower and to the right from the previous, until starting over close to the left top point of the screen.

We need an advice from Agraham or Erel.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #8 (permalink)  
Old 08-12-2010, 09:21 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by derez View Post
I noticed that the dialog forms appear each time at a lower and to the right from the previous, until starting over close to the left top point of the screen.
Yes I noticed the same thing..
Lets see if agraham or Erel have any idea, thanks for trying though :-)
Reply With Quote
  #9 (permalink)  
Old 08-12-2010, 09:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Form.StartPosition = FormStartPosition.Manual;

Form.Left = whateverX;
Form.Top = whateverY;

or

Form.Location = new Point(whateverX, whateverY);
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #10 (permalink)  
Old 08-13-2010, 11:53 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Agraham,

the compiler does not accept

Form.StartPosition = FormStartPosition.Manual;

I write in the initialize sub: this.StartPosition = FormStartPosition.Manual; but still get a complaint that FormStartPosition does not exist in the current context.

Can you try it on colordialog ? (I cpied the concept of the form creation from you, so it should be the same for this issue).
Thanks.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0