Can we exlain my "wxTreeCtrl"

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Erni
Knows some wx things
Knows some wx things
Posts: 40
Joined: Thu Mar 10, 2005 5:35 pm

Can we exlain my "wxTreeCtrl"

Post by Erni » Sat Jun 04, 2005 3:45 pm

hay
I'm beginner in wxWidgets liberary and
I have this prablem,I must write aplication with wxTreeCtrl (file list view)
and i can't ....
Can we explain my step by step what i must do and how
:roll: PLEASE

cg
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:

Post by cg » Sat Jun 04, 2005 3:49 pm

Theres a tree control sample in the "Samples" directory

wxwidgets-2.6.0/samples/treectrl

HTH

Chris

------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php

Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------

Erni
Knows some wx things
Knows some wx things
Posts: 40
Joined: Thu Mar 10, 2005 5:35 pm

Post by Erni » Sun Jun 05, 2005 6:47 pm

cg wrote:Theres a tree control sample in the "Samples" directory

wxwidgets-2.6.0/samples/treectrl
I'm beginner in wxWidgets and i can't understand this sample
:roll:

Avi
Super wx Problem Solver
Super wx Problem Solver
Posts: 398
Joined: Mon Aug 30, 2004 9:27 pm
Location: Tel-Aviv, Israel

Post by Avi » Sun Jun 05, 2005 10:50 pm

Erni wrote:
cg wrote:Theres a tree control sample in the "Samples" directory

wxwidgets-2.6.0/samples/treectrl
I'm beginner in wxWidgets and i can't understand this sample
:roll:
What exactly don't you understand about it? (quote a specific code-part...)
Check the samples/minimal for a more basic wxWidgets app.

Muskelkatermann
Earned some good credits
Earned some good credits
Posts: 135
Joined: Thu Apr 28, 2005 11:36 am
Location: Gie

Post by Muskelkatermann » Mon Jun 06, 2005 12:54 pm

Sounds like you need this:

http://www.wxwidgets.org/manuals/2.6.0/ ... ricdirctrl

this will show a tree Menu with all your Logical drives, the folders, files ...

And it is easy to customize.

I did some changes some months ago on it. Some Drag n Drop Stuff and I removed the logical drives. There was only one special Folder shown.

Tell me if you need more info about that...

grtx

Erni
Knows some wx things
Knows some wx things
Posts: 40
Joined: Thu Mar 10, 2005 5:35 pm

Post by Erni » Fri Jun 10, 2005 3:26 am

Muskelkatermann wrote:Sounds like you need this:

http://www.wxwidgets.org/manuals/2.6.0/ ... ricdirctrl

this will show a tree Menu with all your Logical drives, the folders, files ...

And it is easy to customize.

I did some changes some months ago on it. Some Drag n Drop Stuff and I removed the logical drives. There was only one special Folder shown.

Tell me if you need more info about that...

grtx
OK Muskelkatermann
You help my very much , I was created GetFilterListCtrl control for current directory and i can view file and folder list in a TREE...

but i have next problem becouse :
becouse i want but wxGenericDirCtrl
give my a directory to selected file of directory from TREE and i do't know where i must give this code:
wxString plik;
plik=WxTree->GetPath();
wxMessageBox(plik);
When i give this code to construktor
class okno : public wxDialog

Then wxGenericDirCtrl give my selected directory only one time, when construktor will be created.
What i must do ,when i want but
wxGenericDirCtrl give me directory when i select it in the TREE
for every one when i do it...
PLEASE HELP MY :roll:

Erni
Knows some wx things
Knows some wx things
Posts: 40
Joined: Thu Mar 10, 2005 5:35 pm

Post by Erni » Sat Jun 11, 2005 3:18 pm

Please do't leave my alone :roll:

Post Reply