| View previous topic :: View next topic |
| Author |
Message |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Sun Jul 13, 2003 2:55 pm Post subject: Checkbox list? |
|
|
| I noticed that several programs use an element which is, basically, a list of checkboxes. Each list item has a little checkbox whose status changed when that item is cliked. I know of Garrett's method for doing this using images and vdslists.dll, however, I'd like to know if there is any way to implement the 'real' control (without any dll or checkboxes). Does anyone know? This is in VDS 4. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 13, 2003 4:40 pm Post subject: |
|
|
The only way to do this without using a DLL and everything would be to
use VDS 5, and place the control on the dialog using APIs, I wish it could
be done Garrett's way in VDS 5, unfortunately in VDS 5 you can't get the
current bitmap image.
In VDS 4 there is really no way to put the 'real' control on a dialog without
using a DLL. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jul 13, 2003 4:47 pm Post subject: |
|
|
FF U mean handle to current bitmap image or something else API -> into memory?
I think it should be possible. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 13, 2003 5:12 pm Post subject: |
|
|
No, Garrett's script checked to see what the current image was, so that he
could place set it as unchecked if it was checked or vice versa.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jul 14, 2003 4:22 am Post subject: |
|
|
| FreezingFire wrote: | No, Garrett's script checked to see what the current image was, so that he
could place set it as unchecked if it was checked or vice versa.  |
That should not be a problem; When U check an item in the list/menu set the flag on a variable or in a ini file (or a combination - faster for a longer list i think).Based on the flag U assume that a particular checked/unchecked image is set on the menu/list. And a timer will update the checks/images as per the flags.
Anyway this would still be possible WITHOUT "external" DLL's only on VDS 5. I VDS 4 U need gadget dll.
BTW I haven't seen Garrett's script - but that needs a dll - is that right?. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jul 14, 2003 6:42 am Post subject: |
|
|
The dll used in my example I think was the vdslists.dll
In VDS 5, I found another way. Have the last table column set to 0, and
use that column as either a on or off indicator for the check box images.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|