SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Custom Controls

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder
View previous topic :: View next topic  
Author Message
JBohanan



Joined: 15 Sep 2006
Posts: 3

PostPosted: Sat Sep 16, 2006 3:04 pm    Post subject: Custom Controls Reply with quote

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
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Sun Sep 17, 2006 4:37 am    Post subject: Reply with quote

Hello,

I think it is the same here. You just add WS_VSCROLL and WS_HSCROLL to WindowStyle and your control will include scrollbars.
Back to top
View user's profile Send private message
JBohanan



Joined: 15 Sep 2006
Posts: 3

PostPosted: Sun Sep 17, 2006 5:09 am    Post subject: Reply with quote

Where do you add the WS_VSCROLL, and WS_HSCROLL to the
windowstyle at?

I don't see where you add it.
Back to top
View user's profile Send private message
JBohanan



Joined: 15 Sep 2006
Posts: 3

PostPosted: Sun Sep 17, 2006 5:24 am    Post subject: Reply with quote

What I need is a Custom Control just like the Listbox, but with
the class name of TWBrowse, or TSBrowse.

I need all the same settings of the Listbox with only the
name of the control changed.


Thank you
jim
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Sun Sep 17, 2006 6:12 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group