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 General Discussion » scroll bar Collapse All
Subject Author Date
Vianney Lecroart Sep 30, 2002 - 1:21 PM

Hello,

I get the SDI samples and I tried to add a scrollbar on the resizable bar1 that contains the list of string without sucess. Is it possible to add automatic scroll bar to enable scroll when there s too much string in the list or in a tree.

Thank you.

Vianney

Sergiy Lavrynenko Oct 1, 2002 - 10:55 AM

Dear Vianney,

In the MainFrm.h file you can find the line:

CExtWRB< CExtWFF< CListBox > > m_wndInBarListBox;

Please replace it with:

CListBox m_wndInBarListBox;

After this, the scroll bars should appear. Of course, you should not forget to add the VS_HSCROLL and/or VS_VSCROLL window styles.

The CExtWRB template was used to add a thin non-client area border to the list box control. Old Win16 controls ( e.g. CEdit or CListBox ) draw (fake) the scroll bars in their own non-client areas. This outdated technique makes them partially uncompatible with the CExtWRB template.

The CExtWFF template, which is intended to remove the flicker effect, is not actually needed because the parent control bar does not display its content while dragging.

Best regards.

Lecroart Oct 3, 2002 - 3:27 PM

I’m really sorry to ask you so silly question but I m a newbie in MFC programming (I only worked with UI like X11, gtk etc...)

You told me to do this:

> Of course, you should not forget to add the VS_HSCROLL and/or VS_VSCROLL window styles.

But there’s no match in MSDN doc about VS_HSCROLL.

How to set this style and on which object I have to set this window style? on m_wndInBarListBox?

Another question is: what is the difference between trial and demo version. I seems to be the same package, the demo only available for 30 days and the trial removed some features, which one? how to switch demo into trial?

I want to know a little GNU GPL so I can buy the full version :(

Sergiy Lavrynenko Oct 4, 2002 - 7:47 AM

Dear Vianney,

I am sorry for misprints in my answer.
VS_HSCROLL and VS_VSCROLL really are WS_HSCROLL and WS_VSCROLL.

You should append this styles in the call of listbox->Create() method (together with WS_CHILD|WS_VISIBLE|...)

YOUR QUESTION: "What is the difference between trial and demo version. I seems to be the same package, the demo only available for 30 days and the trial removed some features, which one? how to switch demo into trial?"

There is no "demo" version in Prof-UIS 2.20. There are 3 versions:

1)Freeware
Any features related to tab control (dynamic tab containers for resizable control bars, MDI tab window and .NET tab control) are not present in freeware version. They are excluded using preprocessor directives. The source code for these features is not included to ZIP file. The application wizard for VC6 and CHM help are not included too.

2) Trial is a commercial without source code. MBCS libraries are provided. Usage is limited by license.

3) Commercial - without any limits described in items 1, 2.

If more then one version are installed - to switch between versions you need re-configure INCLUDE/LIB paths in the Visual Studio 6 and/or 7 and rebuild your project(s).

The best way to get additional information about license, discounts, free-of-payment distribution is to write mail to foss@fossware.com