I wish to create a custom controls for a database browse/Lookup
and what I need to do is Display a Scroll bar on the left of the
control window. How do I display a scroll bar inside of the Control.
also need it a the bottom of the control sometimes.
in borland's workshop you used a WS_VSCROLL, and WS_HSCROLL.
Thank you for any Help
Jim
Custom Controls
You have 2 ways:
1. Use Custom Control- drop Custom Control from palette onto dialog. Switch to Edit as Text and add WS_HSCROLL and WS_VSCROLL in window styles (where WS_VISIBLE listed).
2. Use Listbox control- drop Listbox onto dialog; adjust all needed properties; switch to Edit as Text and change LISTBOX control type to your control name like TWBrowse. This will convert it to custom control storing all styles you defined for listbox.
Hope this helps.
1. Use Custom Control- drop Custom Control from palette onto dialog. Switch to Edit as Text and add WS_HSCROLL and WS_VSCROLL in window styles (where WS_VISIBLE listed).
2. Use Listbox control- drop Listbox onto dialog; adjust all needed properties; switch to Edit as Text and change LISTBOX control type to your control name like TWBrowse. This will convert it to custom control storing all styles you defined for listbox.
Hope this helps.
Best regards,
Igor Siticov.
Igor Siticov.