Restored from previous forum. Originally posted by dmoc.
Do they have to be unique for the same window for different types of gadget? Eg, is zero ok for both a string and a button gadget?
Two windows, same type of gadget, do gadget numbers have to be unique?
Gadget Numbering?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by freak.
Gadget numbers should be unique, even if they are on different Windows. However, if you don't want to ge Events for a Gadget, or change it after creation, you can give all those 'static' Gadgets the same Number.
Like in the Editor Source, all TextGadgets that don't change have 0 as Number.
Timo
Gadget numbers should be unique, even if they are on different Windows. However, if you don't want to ge Events for a Gadget, or change it after creation, you can give all those 'static' Gadgets the same Number.
Like in the Editor Source, all TextGadgets that don't change have 0 as Number.
Timo
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm