Group:  Microsoft Access ยป microsoft.public.access.activexcontrol
Thread: Treeview and Listview in TabStrips

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Treeview and Listview in TabStrips
Leo 03.07.2006 23:48:01
Hi at all.. here's my question:
I was using very often in MSAccess2000 forms, the TabStrip control with in
some tab TreeViews and ListViews coming from ComCtl32.ocx.
Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in any
TabStrip Control (MSAccess or COMCTL.TabStrip or MSComctlLib.TabStrip) but in
runtime the Treeview is moving from the original position on the form, to the
top left corner of the form and always the control loose the selections on
check boxes every time I change the tab.
How Is possible to use correctly Treeview and Listview from MSCOMCTL.OCX in
TabStrip control like in the COMCTL32.OCX ?
Thanks a lot for any answer...
Re: Treeview and Listview in TabStrips
"Alex Dybenko" <alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru> 04.07.2006 05:32:41
hi,
this is a problem of tab control.Workaround - is to place treeview on form
itself, bring it to front and make it visible/hidden depends on selected tab

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
[Quoted Text]
> Hi at all.. here's my question:
> I was using very often in MSAccess2000 forms, the TabStrip control with in
> some tab TreeViews and ListViews coming from ComCtl32.ocx.
> Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in any
> TabStrip Control (MSAccess or COMCTL.TabStrip or MSComctlLib.TabStrip) but
> in
> runtime the Treeview is moving from the original position on the form, to
> the
> top left corner of the form and always the control loose the selections on
> check boxes every time I change the tab.
> How Is possible to use correctly Treeview and Listview from MSCOMCTL.OCX
> in
> TabStrip control like in the COMCTL32.OCX ?
> Thanks a lot for any answer...

Re: Treeview and Listview in TabStrips
Leo 04.07.2006 07:55:01
Hi Alex, Thanks for Your suggestion... but...
When I make Visible/Unvisible a TreeView, this control loose check box
selection an is moving on top-left corner in the form... Do you have another
Work-Around ?

"Alex Dybenko" wrote:

[Quoted Text]
> hi,
> this is a problem of tab control.Workaround - is to place treeview on form
> itself, bring it to front and make it visible/hidden depends on selected tab
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://alexdyb.blogspot.com
> http://www.PointLtd.com
>
> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
> > Hi at all.. here's my question:
> > I was using very often in MSAccess2000 forms, the TabStrip control with in
> > some tab TreeViews and ListViews coming from ComCtl32.ocx.
> > Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in any
> > TabStrip Control (MSAccess or COMCTL.TabStrip or MSComctlLib.TabStrip) but
> > in
> > runtime the Treeview is moving from the original position on the form, to
> > the
> > top left corner of the form and always the control loose the selections on
> > check boxes every time I change the tab.
> > How Is possible to use correctly Treeview and Listview from MSCOMCTL.OCX
> > in
> > TabStrip control like in the COMCTL32.OCX ?
> > Thanks a lot for any answer...
>
>
Re: Treeview and Listview in TabStrips
"Alex Dybenko" <alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru> 04.07.2006 11:24:08
Hi,
but are you sure, that you inserted control on form directly?
if you delete tab control - treeview should stay on a form

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
news:CF8CA8C5-8696-4917-A0C3-7AE6DD524E7D[ at ]microsoft.com...
[Quoted Text]
> Hi Alex, Thanks for Your suggestion... but...
> When I make Visible/Unvisible a TreeView, this control loose check box
> selection an is moving on top-left corner in the form... Do you have
> another
> Work-Around ?
>
> "Alex Dybenko" wrote:
>
>> hi,
>> this is a problem of tab control.Workaround - is to place treeview on
>> form
>> itself, bring it to front and make it visible/hidden depends on selected
>> tab
>>
>> --
>> Best regards,
>> ___________
>> Alex Dybenko (MVP)
>> http://alexdyb.blogspot.com
>> http://www.PointLtd.com
>>
>> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
>> news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
>> > Hi at all.. here's my question:
>> > I was using very often in MSAccess2000 forms, the TabStrip control with
>> > in
>> > some tab TreeViews and ListViews coming from ComCtl32.ocx.
>> > Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in
>> > any
>> > TabStrip Control (MSAccess or COMCTL.TabStrip or MSComctlLib.TabStrip)
>> > but
>> > in
>> > runtime the Treeview is moving from the original position on the form,
>> > to
>> > the
>> > top left corner of the form and always the control loose the selections
>> > on
>> > check boxes every time I change the tab.
>> > How Is possible to use correctly Treeview and Listview from
>> > MSCOMCTL.OCX
>> > in
>> > TabStrip control like in the COMCTL32.OCX ?
>> > Thanks a lot for any answer...
>>
>>

Re: Treeview and Listview in TabStrips
Leo 04.07.2006 12:20:02
Hi Alex, yes I'm sure... TabStrip is not present on my Form... It has been
deleted.
Using MyTvw.Visible=True or False the TreeView loose the selected checkboxes
!!
Same using MyTvw.Enabled=True or False. It is refreshed each time...

Do you know a WorkAround to this problem ?
Thanks a lot in advance for your support...

"Alex Dybenko" wrote:

[Quoted Text]
> Hi,
> but are you sure, that you inserted control on form directly?
> if you delete tab control - treeview should stay on a form
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://alexdyb.blogspot.com
> http://www.PointLtd.com
>
> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> news:CF8CA8C5-8696-4917-A0C3-7AE6DD524E7D[ at ]microsoft.com...
> > Hi Alex, Thanks for Your suggestion... but...
> > When I make Visible/Unvisible a TreeView, this control loose check box
> > selection an is moving on top-left corner in the form... Do you have
> > another
> > Work-Around ?
> >
> > "Alex Dybenko" wrote:
> >
> >> hi,
> >> this is a problem of tab control.Workaround - is to place treeview on
> >> form
> >> itself, bring it to front and make it visible/hidden depends on selected
> >> tab
> >>
> >> --
> >> Best regards,
> >> ___________
> >> Alex Dybenko (MVP)
> >> http://alexdyb.blogspot.com
> >> http://www.PointLtd.com
> >>
> >> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> >> news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
> >> > Hi at all.. here's my question:
> >> > I was using very often in MSAccess2000 forms, the TabStrip control with
> >> > in
> >> > some tab TreeViews and ListViews coming from ComCtl32.ocx.
> >> > Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in
> >> > any
> >> > TabStrip Control (MSAccess or COMCTL.TabStrip or MSComctlLib.TabStrip)
> >> > but
> >> > in
> >> > runtime the Treeview is moving from the original position on the form,
> >> > to
> >> > the
> >> > top left corner of the form and always the control loose the selections
> >> > on
> >> > check boxes every time I change the tab.
> >> > How Is possible to use correctly Treeview and Listview from
> >> > MSCOMCTL.OCX
> >> > in
> >> > TabStrip control like in the COMCTL32.OCX ?
> >> > Thanks a lot for any answer...
> >>
> >>
>
>
Re: Treeview and Listview in TabStrips
"Alex Dybenko" <alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru> 04.07.2006 13:15:22
hi Leo,
yes, agree, checkboxes are gone when you make treeview hidden

What you can do - is to save checked state in node tag property, and when
you make treeview visible - loop through all nodes and set checked based on
..Tag value
HTH

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
news:C152711C-3A3F-42C4-B793-FACA38968675[ at ]microsoft.com...
[Quoted Text]
> Hi Alex, yes I'm sure... TabStrip is not present on my Form... It has been
> deleted.
> Using MyTvw.Visible=True or False the TreeView loose the selected
> checkboxes
> !!
> Same using MyTvw.Enabled=True or False. It is refreshed each time...
>
> Do you know a WorkAround to this problem ?
> Thanks a lot in advance for your support...
>
> "Alex Dybenko" wrote:
>
>> Hi,
>> but are you sure, that you inserted control on form directly?
>> if you delete tab control - treeview should stay on a form
>>
>> --
>> Best regards,
>> ___________
>> Alex Dybenko (MVP)
>> http://alexdyb.blogspot.com
>> http://www.PointLtd.com
>>
>> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
>> news:CF8CA8C5-8696-4917-A0C3-7AE6DD524E7D[ at ]microsoft.com...
>> > Hi Alex, Thanks for Your suggestion... but...
>> > When I make Visible/Unvisible a TreeView, this control loose check box
>> > selection an is moving on top-left corner in the form... Do you have
>> > another
>> > Work-Around ?
>> >
>> > "Alex Dybenko" wrote:
>> >
>> >> hi,
>> >> this is a problem of tab control.Workaround - is to place treeview on
>> >> form
>> >> itself, bring it to front and make it visible/hidden depends on
>> >> selected
>> >> tab
>> >>
>> >> --
>> >> Best regards,
>> >> ___________
>> >> Alex Dybenko (MVP)
>> >> http://alexdyb.blogspot.com
>> >> http://www.PointLtd.com
>> >>
>> >> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
>> >> news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
>> >> > Hi at all.. here's my question:
>> >> > I was using very often in MSAccess2000 forms, the TabStrip control
>> >> > with
>> >> > in
>> >> > some tab TreeViews and ListViews coming from ComCtl32.ocx.
>> >> > Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in
>> >> > any
>> >> > TabStrip Control (MSAccess or COMCTL.TabStrip or
>> >> > MSComctlLib.TabStrip)
>> >> > but
>> >> > in
>> >> > runtime the Treeview is moving from the original position on the
>> >> > form,
>> >> > to
>> >> > the
>> >> > top left corner of the form and always the control loose the
>> >> > selections
>> >> > on
>> >> > check boxes every time I change the tab.
>> >> > How Is possible to use correctly Treeview and Listview from
>> >> > MSCOMCTL.OCX
>> >> > in
>> >> > TabStrip control like in the COMCTL32.OCX ?
>> >> > Thanks a lot for any answer...
>> >>
>> >>
>>
>>

Re: Treeview and Listview in TabStrips
Leo 04.07.2006 13:28:01
Well Alex, is a good solution...
But if I create a subform for each Treeview or Listview used in my Main Form
I can use MySubForm.Visible=True/False without any problem...
And of course, now I can use MSAccess TabStrip (yeah!)
Well... problem solved !
Thanks a lot for Your help ! Hope to meet you again !
Cheers.

"Alex Dybenko" wrote:

[Quoted Text]
> hi Leo,
> yes, agree, checkboxes are gone when you make treeview hidden
>
> What you can do - is to save checked state in node tag property, and when
> you make treeview visible - loop through all nodes and set checked based on
> ..Tag value
> HTH
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://alexdyb.blogspot.com
> http://www.PointLtd.com
>
> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> news:C152711C-3A3F-42C4-B793-FACA38968675[ at ]microsoft.com...
> > Hi Alex, yes I'm sure... TabStrip is not present on my Form... It has been
> > deleted.
> > Using MyTvw.Visible=True or False the TreeView loose the selected
> > checkboxes
> > !!
> > Same using MyTvw.Enabled=True or False. It is refreshed each time...
> >
> > Do you know a WorkAround to this problem ?
> > Thanks a lot in advance for your support...
> >
> > "Alex Dybenko" wrote:
> >
> >> Hi,
> >> but are you sure, that you inserted control on form directly?
> >> if you delete tab control - treeview should stay on a form
> >>
> >> --
> >> Best regards,
> >> ___________
> >> Alex Dybenko (MVP)
> >> http://alexdyb.blogspot.com
> >> http://www.PointLtd.com
> >>
> >> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> >> news:CF8CA8C5-8696-4917-A0C3-7AE6DD524E7D[ at ]microsoft.com...
> >> > Hi Alex, Thanks for Your suggestion... but...
> >> > When I make Visible/Unvisible a TreeView, this control loose check box
> >> > selection an is moving on top-left corner in the form... Do you have
> >> > another
> >> > Work-Around ?
> >> >
> >> > "Alex Dybenko" wrote:
> >> >
> >> >> hi,
> >> >> this is a problem of tab control.Workaround - is to place treeview on
> >> >> form
> >> >> itself, bring it to front and make it visible/hidden depends on
> >> >> selected
> >> >> tab
> >> >>
> >> >> --
> >> >> Best regards,
> >> >> ___________
> >> >> Alex Dybenko (MVP)
> >> >> http://alexdyb.blogspot.com
> >> >> http://www.PointLtd.com
> >> >>
> >> >> "Leo" <Leo[ at ]discussions.microsoft.com> wrote in message
> >> >> news:E4171B85-1FBF-4CE7-A7C4-1B02058BCE0C[ at ]microsoft.com...
> >> >> > Hi at all.. here's my question:
> >> >> > I was using very often in MSAccess2000 forms, the TabStrip control
> >> >> > with
> >> >> > in
> >> >> > some tab TreeViews and ListViews coming from ComCtl32.ocx.
> >> >> > Now I want to use the MSCOMCTL.OCX to build Treeview and Listview in
> >> >> > any
> >> >> > TabStrip Control (MSAccess or COMCTL.TabStrip or
> >> >> > MSComctlLib.TabStrip)
> >> >> > but
> >> >> > in
> >> >> > runtime the Treeview is moving from the original position on the
> >> >> > form,
> >> >> > to
> >> >> > the
> >> >> > top left corner of the form and always the control loose the
> >> >> > selections
> >> >> > on
> >> >> > check boxes every time I change the tab.
> >> >> > How Is possible to use correctly Treeview and Listview from
> >> >> > MSCOMCTL.OCX
> >> >> > in
> >> >> > TabStrip control like in the COMCTL32.OCX ?
> >> >> > Thanks a lot for any answer...
> >> >>
> >> >>
> >>
> >>
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net