Discussion:
substituting List for Treeview in combobox
(too old to reply)
obv
2003-12-29 15:07:44 UTC
Permalink
Hi All,

I' trying to create a component, very much like a lookupcombobox, only with
a treeview instead of a list.

In other words: what I want to achieve is this:
when I click on the button of the combobox, the visible dropdown-part of the
component should be a treeview(-descendant), and not a List.....

I'm descending my class from TCustomCombobox, (maybe i shouldn't, because of
the list you're getting...)

The problem is: how can substitute the dropdownlist for the Treeview (or my
own descendant of the TTreeview component)
and still have access to it...


Regards

Frans

(if you know the answer for sure then i would appreciate it if you mail me
personally at (remove NOSPAMPLEASE and PLEASENOSPAM):
***@PLEASENOSPAMLinuxmail.org)

--
Time flies like an arrow, fruit flies like a banana
(Groucho Marx)
Mike Shkolnik
2003-12-30 21:53:29 UTC
Permalink
Frans,

to use TCustomCombobox is not good idea for this task.

Just use standard edit and add button in right side. Also add popup window
that will be dropdowned with treeview. Check any freeware component where
calendar or calculator is in dropdowned popup (you'll find a lot on
torry.net) and implement there your treeview instead calendar/calculator

--
With best regards, Mike Shkolnik
E-mail: ***@scalabium.com
WEB: http://www.scalabium.com
Post by obv
Hi All,
I' trying to create a component, very much like a lookupcombobox, only with
a treeview instead of a list.
when I click on the button of the combobox, the visible dropdown-part of the
component should be a treeview(-descendant), and not a List.....
I'm descending my class from TCustomCombobox, (maybe i shouldn't, because of
the list you're getting...)
The problem is: how can substitute the dropdownlist for the Treeview (or my
own descendant of the TTreeview component)
and still have access to it...
Regards
Frans
(if you know the answer for sure then i would appreciate it if you mail me
--
Time flies like an arrow, fruit flies like a banana
(Groucho Marx)
Frabs
2004-01-19 19:51:27 UTC
Permalink
On Tue, 30 Dec 2003 23:53:29 +0200, "Mike Shkolnik"
Post by Mike Shkolnik
Frans,
to use TCustomCombobox is not good idea for this task.
Just use standard edit and add button in right side. Also add popup window
that will be dropdowned with treeview. Check any freeware component where
calendar or calculator is in dropdowned popup (you'll find a lot on
torry.net) and implement there your treeview instead calendar/calculator
I've tried this with a component descending from TCustomControl.
I'm still very much in the dark as to how i can create the
dropdownwindow. In the calendar there's a Createsubclass call that
seems to do the trick, but that's with a windows common control
'SysDateTimePick32'
I don't wat a calander. I want a Treeview(descendant)

You'll understand that i want a control that seems to be without
parent (just an owner). it sortof floats.

Regards
Frans

Loading...