Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Attach the scroll at the CExtTabPageContainerOneNoteWnd Collapse All
Subject Author Date
HeeTae Lee Jun 14, 2007 - 3:24 AM

I have a CExtTabPageContainerOneNoteWnd with some dialog page in it, but the dialogs are larger than the windows.

So I want to attach the vertical and horizontal scrollbar.

Iaˆ™ve been using the TabbedBars sample as the example code.

How do I attach the scroll at the CExtTabPageContainerOneNoteWnd?

Technical Support Jun 14, 2007 - 7:17 AM

The following sample demonstrates how to implement a scrollable dialog container with skinned scrollbars and dialog anchoring mechanism. The scroll bars appear if the container window’s size is less than the initial dialog size. You can use this container window as a child of the tab page container.



Offer Har Jun 15, 2007 - 8:04 AM

Dear Support,

You sample application hit the spot for me, but I have a problem using it.

This is my scenario:
I have a tab container in a CView derived class, with a CExtResizableDialog derived class in each tab.
I would like to have the scroll-bars (skinned of-course) available for each tab if needed.

My problem is that I need to add this functionality to each of my CExtResizableDialog derived classes, so I don’t know where to put this code to work...

Please advise.

Thanks,
Ron.

Technical Support Jun 16, 2007 - 9:07 AM

Your task could be interpreted as follows. One or more resizable dialogs (pages in your app) should be scrollable if controls on a dialog do not fit in the dialog.

Unfortunately, the resizable dialog does not support scrolling. If you need a scrollable dialog, you should use two windows: a scrollable container and a dialog inside it. The scrollable container should show the scroll bars if container’s size is less than the initial dialog size inside it. This means the following:

1) In scrollable mode the size and location of dialog controls do not change. You can only scroll the entire dialog to access its controls.

2) If scrolling is not needed, the dialog is resized to cover the entire area of scrollable container with hidden scroll bars. The anchoring mechanism of the resizable dialog will affect the dialog controls in this mode.

A ready-to-use scrollable dialog container is demonstrated in this small sample application.

You are currently using dialog windows as pages inside the tab page container. You should make your project using scrollable dialog containers as tab pages and each dialog widow create inside its scrollable container window.

Finally we should note the following: although window scrolling allows you to keep and access some larger content, you should avoid it anywhere if possible. That should improve the usability.