Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => Discussion => Topic started by: Olav Bergesen on August 23, 2012, 10:04:38 AM

Title: Tree View Inside a Combobox
Post by: Olav Bergesen on August 23, 2012, 10:04:38 AM
Hello,

Has anyone ever - with success - managed to embed a tree view inside a combobox's dropdown window list?

How should I go about to achieve this? A bit of advice would be appreciated.

The intention is to hide the treeview when it is not needed, and then show it - and operate it -
when needed, by clicking the combobox's dropdown arrow.

Thanks for your attention!
--
Olav B
Title: Re: Tree View Inside a Combobox
Post by: José Roca on August 25, 2012, 04:16:24 PM
I dont think it's possible. A combobox is a compound control with a textbox, a button and a listbox designed to work together. You will need to find a custom control that does it (I think that I once shaw an OCX that used a grid instead of a listbox) or write your own.
Title: Re: Tree View Inside a Combobox
Post by: Laurence Jackson on August 25, 2012, 08:36:12 PM
A control (e.g. your treeview) can be hidden and shown under program control using any hide/show trigger mechanism you choose. That would probably be my general approach to this kind of problem.
Title: Re: Tree View Inside a Combobox
Post by: Peter Weis on August 26, 2012, 06:05:16 PM
Hi, I found three examples on the Internet. Working but not with PowerBASIC but with C + + and Visual Basic whom they might describe someone would not be bad!

regards Peter