Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

How to work with treeview control?

ratzeputz
Beginner
1,261 Views
Hi there.

Sorry, that my question is a little bit "noobish", but i have absolutely no idea how to work with the treeview control.

I created a dialog and added the control into it but not more at the moment.

What i want to do is to dynamically add a root node, depending on an item, which the user has clicked in a listbox.
The item in the listbox does have some structures, wich i want to add as childs in the tree and some other attributes of this childs should be the leafs.

For example:

- Patient
|- Personal Data
|- Age
| Value
|- Name
| Value

I searched the Internet the whole day yesterday and find exactly nothing, especially some beginnercode examples how to work with the treeview control.
I also have a book about programming with fortran, but there is nothing in it about visual stuff, like a dialog, a listbox or something like that.

Best Regards
Oliver
0 Kudos
4 Replies
Lars_Jakobsen
Beginner
1,261 Views
Hi Oliver,

You may findan example of use of the tree view control in the companion material to the book "Compaq Visual Fortran - A Guide to Creating Windows Applications" by Norman Lawrence:

Look at http://www.elsevierdirect.com/companion.jsp?ISBN=9781555582494 (chapter 11)

I found the book to be a great place to start for programming windows applications in fortran.

Regards

Lars

0 Kudos
ratzeputz
Beginner
1,261 Views
Hi Lars,
Thank you for the hint with the book and the chapter but i absolutely dont have an idea how to work with that.
I dont have a compaq compiler and i think that there are too much differences between the intel and the compaq compiler to work with both of them on 1:1
Maybe you or anyone who reads this does have an explicit intel fortran example of a treeview?
Well i am relatively new to the fortran world at all and its pretty hard for me, cause i was a .NET developer before :)
Regards
Oliver
0 Kudos
anthonyrichards
New Contributor III
1,261 Views
What programming languages have you experience in?
What is your Fortran experience?
Starting off with a tree view control is going in at the deep end I fear.
You should get experience with simpler dialog controls first, for which Intel provide useful example code.

Maybe you should try an object-oriented language such as Visual Basic and get a tree view working there and see what is required before trying it in Fortran.
0 Kudos
ratzeputz
Beginner
1,261 Views
I have enough experience of programming in .NET languages VB and C# and there the TreeView is really easy going.
Fortran not that much.
You cant compare .NET with Fortran i think.
But i got it working already with a little help from a private user :)
So this Thread can be closed :)
0 Kudos
Reply