Author Topic: Open drawing from listview  (Read 12842 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Open drawing from listview
« Reply #45 on: March 01, 2007, 09:02:32 PM »
............  get a few good books. For C# I would recommend 'Pro C# 2005 and the .NET 2.0 Platform', by Andrew Troelsen, published by Apress.

Cheers,
Glenn.

Yes, it's brilliant ! ... and heavy :-)
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Paul Richardson

  • Guest
Re: Open drawing from listview
« Reply #46 on: March 02, 2007, 07:23:52 AM »
............  get a few good books. For C# I would recommend 'Pro C# 2005 and the .NET 2.0 Platform', by Andrew Troelsen, published by Apress.

Cheers,
Glenn.

Yes, it's brilliant ! ... and heavy :-)

Agreed! Also C++/CLI and Pro ASP.net in C# 2005 are great from Apress.

T.Willey

  • Needs a day job
  • Posts: 5238
Re: Open drawing from listview
« Reply #47 on: March 02, 2007, 11:21:39 AM »
............  get a few good books. For C# I would recommend 'Pro C# 2005 and the .NET 2.0 Platform', by Andrew Troelsen, published by Apress.

Cheers,
Glenn.

Yes, it's brilliant ! ... and heavy :-)

Agreed! Also C++/CLI and Pro ASP.net in C# 2005 are great from Apress.
Thanks Glenn, Kerry and Paul.  Maybe I will have to check it out.  I have one in pdf format that I was reading, but got bored.  Now I use it for reference when I can't figure something out, or I can't find it on MSDN.  The pdf is called 'Ecma-334' and I think Luis recomended it.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

T.Willey

  • Needs a day job
  • Posts: 5238
Re: Open drawing from listview
« Reply #48 on: March 02, 2007, 03:04:57 PM »
It's working the way I want it to now!  8-)

Thanks again Glenn!

I just noticed that I should make one more button to remove the plotting setup, so if you pick one by mistake it will remove the settings so it won't plot.  But here is a piccy.  I'm not sure if I will keep it with all the different columns, but it's nice to see right now.

Edit:  If anyone wants I can post the code as is now.
Edit:  Updated piccy and updated code to allow for the removal of plot settings, which is the button is shown in the new pic.
« Last Edit: March 02, 2007, 04:03:47 PM by T.Willey »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Open drawing from listview
« Reply #49 on: March 02, 2007, 07:09:09 PM »
.........  The pdf is called 'Ecma-334' ....

That's pretty dry reading :-)  Hope you found a hyperlinked version.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Open drawing from listview
« Reply #50 on: March 02, 2007, 07:12:14 PM »
......
Edit:  If anyone wants I can post the code as is now.

Yep, go for it !  .. and update it as you progress


Edit:  Updated piccy and updated code ....

I missed something I think

Looks like you're having fun Tim .. wish I had time to play.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

T.Willey

  • Needs a day job
  • Posts: 5238
Re: Open drawing from listview
« Reply #51 on: March 02, 2007, 07:27:57 PM »
......
Edit:  If anyone wants I can post the code as is now.

Yep, go for it !  .. and update it as you progress
Okay.  Attached is a txt file of the cs code.


Edit:  Updated piccy and updated code ....

I missed something I think

Looks like you're having fun Tim .. wish I had time to play.

You didn't miss anything, I was just saying that the new button works correctly.  That is the updated code I was talking about.  Sorry for the confusion.  Yes it is fun.  I just wish I had more understanding RIGHT NOW so that I could code anything.  :roll:

On a side note:  If anyone knows why the 'centered' option doesn't work all the time, I would love to hear it.  It worked sometimes on all plots, then it wouldn't work on all plots but the first one, so that is why it is commented out in the code.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Open drawing from listview
« Reply #52 on: March 02, 2007, 07:36:41 PM »

Okay.  Attached is a txt file of the cs code.

...  Yes it is fun.  I just wish I had more understanding RIGHT NOW so that I could code anything.  :roll:


Thanks for the file Tim, that may encourage others to become involved.

.... yeah, the 'RIGHT NOW' thingie applies to me as well. Having a sense of adventure helps I think :-)
 
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Glenn R

  • Water Moccasin
  • Posts: 1932
  • What idiot child of married cousins wrote this?!
Re: Open drawing from listview
« Reply #53 on: March 02, 2007, 08:39:01 PM »
Tim,

2 things LEAPT out at me concerning your code:

1. You better start naming controls quick smart!
2. General code structure needs improving.

One thing I hate is long indentation. For example:
If this,
    If this
        If this

etc.

I prefer this:
If !This
    bail.

Next statement.

However, this is just personal preference I suppose...keep at it...AND GET THE BOOKS mentioned.
I don't doubt you got bored with the technical spec...as KErry said - dry reading.



Me

Glenn R

  • Water Moccasin
  • Posts: 1932
  • What idiot child of married cousins wrote this?!
Re: Open drawing from listview
« Reply #54 on: March 03, 2007, 03:23:16 AM »
Another excellent book, for WinForms in particular, is Erik Brown's 'Windows Froms Programming with C#' or the second edition, 'Windows Forms in Action', both by Manning publications.
Me

T.Willey

  • Needs a day job
  • Posts: 5238
Re: Open drawing from listview
« Reply #55 on: March 05, 2007, 11:50:21 AM »
1. You better start naming controls quick smart!
Yea I noticed this already when I went from 'listBox' to 'comboBox'.  I had to change them all, but I still didn't name them.  :-D

2. General code structure needs improving.
Yea.  I think this is lack of experience.  I notice that in my coding style with Lisp.  It got easier to write and read with experience.

However, this is just personal ...AND GET THE BOOKS mentioned.
I don't doubt you got bored with the technical spec...as KErry said - dry reading.
Maybe I can get my work to pay for a couple of books, even though I'm hired as a draft person and not a programmer.  Doesn't hurt to try.

Another excellent book, for WinForms in particular, is Erik Brown's 'Windows Froms Programming with C#' or the second edition, 'Windows Forms in Action', both by Manning publications.
I'll check this one out also.  Thanks again.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

T.Willey

  • Needs a day job
  • Posts: 5238
Re: Open drawing from listview
« Reply #56 on: March 05, 2007, 01:27:24 PM »
..... For C# I would recommend 'Pro C# 2005 and the .NET 2.0 Platform', by Andrew Troelsen, published by Apress.
Found link to pdf version here.  I mean it is a large pdf (1000+ pages), so a hard copy might be better.
« Last Edit: March 05, 2007, 01:29:18 PM by T.Willey »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.