Editing cells in ListIcons (updated for Vista)

Share your advanced PureBasic knowledge/code with the community.
nicksteel
User
User
Posts: 43
Joined: Sat Apr 24, 2004 5:20 pm
Location: Houston

Post by nicksteel »

:D :D :D
Slow, but trying.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

srod wrote:Uhm, I teach Hungarian!

:wink:
Az anyad le borult szivar veget!! Ki huzod a gyufad velem fiam!!!!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Fangbeast wrote:
srod wrote:Uhm, I teach Hungarian!

:wink:
Az anyad le borult szivar veget!! Ki huzod a gyufad velem fiam!!!!!
Poor use of the tenses there fangles!

:)
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

:D
Dare2 cut down to size
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Post by Shardik »

netmaestro wrote: Ha, you beat me fair and square on that one, I was about two minutes away from posting that very solution!
You both have been beaten by edel who posted a code example in the German forum more than 9 month ago... :)
http://www.purebasic.fr/german/viewtopi ... 14&start=3
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Shardik wrote:
netmaestro wrote: Ha, you beat me fair and square on that one, I was about two minutes away from posting that very solution!
You both have been beaten by edel who posted a code example in the German forum more than 9 month ago... :)
http://www.purebasic.fr/german/viewtopi ... 14&start=3
Not sure about netty, but my German is not so hot! Now if there was a Hungarian forum then I'd be all set! :wink:

Edel's code is very similar to some of the code I use in egrid and is very effective. Still, using the #HDN_BEGINTRACKW notification is probably a little tidier.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Update: 31/07/07.
ListIcon now scrolls automatically if the user double-clicks a partially visible cell to edit it etc.

See the first post for the code.
I may look like a mule, but I'm not a complete ass.
Amnesty
User
User
Posts: 54
Joined: Wed Jul 04, 2007 4:34 pm
Location: Germany

Post by Amnesty »

Great stuff!

It might be useful for users who need to change a lot of cells, to add optional parameter 'text selected'. Imagine: You change 100 values and the clicked cell value is - automatically - selected, you can save a lot of time.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Amnesty wrote:Great stuff!

It might be useful for users who need to change a lot of cells, to add optional parameter 'text selected'. Imagine: You change 100 values and the clicked cell value is - automatically - selected, you can save a lot of time.
Thanks.

Do you mean that instead of a double click to edit a cell we use a siingle click? Or do you mean that when a cell is first edited, rather than place the caret at the end of the text, we select the whole text? Either is simple to add.
I may look like a mule, but I'm not a complete ass.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Does anyone mind if I fall on srod and squish him like a bug for being a cheeky bitch?

Or will you miss his coding too much?

Maybe I can stick a dead ferret up his...No, I have a better idea. Tie him naked to an ant hill, cover him with honey and put 20 naked girls out of reach training the ants to hula.
nicksteel
User
User
Posts: 43
Joined: Sat Apr 24, 2004 5:20 pm
Location: Houston

Post by nicksteel »

Fangbeast wrote:Maybe I can stick a dead ferret up his...No, I have a better idea. Tie him naked to an ant hill, cover him with honey and put 20 naked girls out of reach training the ants to hula.
Betcha he could code his way out. :D
Slow, but trying.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

:shock:

The bugs I normally deal with have no naked women in tow!

Phwoaaaaarrrrrrrrrrrrrrrrrrrrrrrrrrrr

Might be worth wrestling with a few million ants...

:)

Fangbeast you are a sadistic git at times! A complete and utter git at all other times! :wink:
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

:lol:
Dare2 cut down to size
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

nicksteel wrote:
Fangbeast wrote:Maybe I can stick a dead ferret up his...No, I have a better idea. Tie him naked to an ant hill, cover him with honey and put 20 naked girls out of reach training the ants to hula.
Betcha he could code his way out. :D
Damnit, you are probably right. I should have stuck to the ferret idea!!! (I had a few spare mouldy, festering,s teaming, decayed ones here somewhere)
Last edited by Fangbeast on Wed Aug 01, 2007 4:00 pm, edited 1 time in total.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

The bugs I normally deal with have no naked women in tow!
And you aren't going to get any this time as NetMaestro and I are abusing them. Oops, did I say that out loud??? Hope he doesn't shoot me (very scared look)
Phwoaaaaarrrrrrrrrrrrrrrrrrrrrrrrrrrr
Oi!! That's not a nice thing to say to the ants, they have feelings too you know!!
Might be worth wrestling with a few million ants...
I wouldn't really do such a nasty thing to those nice little ants you know. They are traumatised from the last time I had them near you.!
Fangbeast you are a sadistic git at times!


Damnit, how did you get my family to tell you that??? Ohh, I wondered why there was a ton of chocolate all over the living room.
A complete and utter git at all other times!
Gee, thanks a lot. That's the last time I supply you with those wanton, willing, wet and horny...errr, is this the right channel for this???

srod, how about you and I team up torture that Dare fellow. He's always sitting in the corner, not saying much and smiling way too much if you ask me!!!
Post Reply