SetGadgetItemData() with -1

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

SetGadgetItemData() with -1

Post by Trond »

When SetGadgetItemData() is used with item -1 it should set the data for the last item. Currently it sets the data for _all_ items, which doesn't make sense in my opinion.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

I agree, not long since I needed this...
I like logic, hence I dislike humans but love computers.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Joakim Christiansen wrote:I agree, not long since I needed this...
I know, I was working with your code. :wink:
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Trond wrote:
Joakim Christiansen wrote:I agree, not long since I needed this...
I know, I was working with your code. :wink:
Do you hack into my computer and steal my sources or what? :P
I like logic, hence I dislike humans but love computers.
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
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

the problem maybe that -1 is #PB_Default and #PB_Any

perhaps this is a default behaviour of the gadget according to the OS...
oh... and have a nice day.
Post Reply