Up down scroll bar to a container - Forum

Forum Navigation
You need to log in to create posts and topics.

Up down scroll bar to a container

Hello

I make a container and inside I make objects with DuplicateObjectEx in the running time. But sometimes it more than the container can handle so I need to have a scroll bar at the right side of the container so I can see the objects that are too down and is invisible.

Is that possible?

@sakismor

I have not tried using DuplicateobjectEx, but at Design time, if you set the Style >>> overflow-y property (for the main Container) to 'auto', the vertical scrollbar appears when the objects contained with the main Container do not fit in the alloted space.

Note that when the scrollbar appears, it takes up some width from the Container, so you may have to allow for that.

luishp and Vadim have reacted to this post.
luishpVadim

I am really thank you. Working fine for me.

I make 5 comboboxes but I really don't know how to make a subroutine if the selection change for every combobox.

Thank you

I make 5 comboboxes but I really don't know how to make a subroutine if the selection change for every combobox.

@sakismor I can't understand your question. Please try to elaborate a bit more. Thank you!

With  DuplicateobjectEx I make 5 comboboxes but I really don't know how to make a subroutine if the selection change for every combobox.

Thank you

Please include a source code sample app. Thank you.

I make a simple project

Uploaded files:
  • You need to login to have access to uploads.

@sakismor sorry I don't know how to achieve what you want. Not sure if it's even possible.

So I can make a copy from an object but I can't use it?

If I make a button I can't have the click event? Or if I make the combobox I can't have a subroutine to use it if the selected item change?

So what is the reason to have DuplicateObjectEx action?

Thank you

I have to say that this great possibility to can create and use objects dynamic. Will go the visualneo web to the next level.

@sakismor DuplicateObjectEx is somehow experimental. Using it with more simple objects like Containers or Images will allow you to dinamically add events using onMouseEvent. Unfortunately I have not found the way to do the same with more complex objects.

Regards.