TreeView as a child of TabControl
------=_NextPart_000_001B_01C02E52.77FF7440
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I've got a little demo here of a TreeView as a child of a TabItem (in =
Win32Lib v0.53).
I understand that TabItems cannot really have children; the TabControl =
is the 'real parent'. Maybe that is the cause of what you see here? I =
only get to see the first TV-Item, and the rest of the TV-window stays =
gray.
But, as I got away from the computer for a while, and the screensaver =
was activated, the TreeView came up correctly when deactivating the =
screensaver again. The same thing happens when I change TabItems and =
come back to the one with the TreeView in it.
Maybe some form of repainting should be added to the construction of =
TreeViews?
Thanks, Ad
-- CustCont in Euphoria
include Win32Lib.ew
without warning
constant
Win =3D create(Window, "CustCont", 0, 40, 60, 720, 480, 0),
Tabs =3D create(TabControl, "", Win, 5, 5, 300, 440, 0),
Tab1 =3D create(TabItem, "op &Naam", Tabs, 0, 0, 0, 0, 0),
Tab2 =3D create(TabItem, "op n&Ummer", Tabs, 0, 0, 0, 0, 0),
Tab3 =3D create(TabItem, "op &Datum", Tabs, 0, 0, 0, 0, 0),
TV =3D create(TreeView, "", Tab1, 10, 30, 280, 400, =
or_all({TVS_HASLINES,
TVS_LINESATROOT, TVS_HASBUTTONS, TVS_SHOWSELALWAYS}))
setIcon(Win, "1083.ico")
constant=20
closefolder =3D addIcon(extractIcon("clsdfold.ico")),
openfolder =3D addIcon(extractIcon("openfold.ico"))
sequence folders
folders =3D {}
folders &=3D addTVItem(TV, closefolder, openfolder, "Test 1", 0)
folders &=3D addTVItem(TV, closefolder, openfolder, "Test 2", 0)
folders &=3D addTVItem(TV, closefolder, openfolder, "Test 3", =
folders[1])
WinMain(Win, Normal)
------=_NextPart_000_001B_01C02E52.77FF7440
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hello,</DIV>
<DIV> </DIV>
<DIV>I've got a little demo here of a TreeView as a child of a TabItem =
(in=20
Win32Lib v0.53).</DIV>
<DIV>I understand that TabItems cannot really have children; the =
TabControl is=20
the 'real parent'. Maybe that is the cause of what you see here? I only =
get to=20
see the first TV-Item, and the rest of the TV-window stays gray.</DIV>
<DIV>But, as I got away from the computer for a while, and the =
screensaver was=20
activated, the TreeView came up correctly when deactivating the =
screensaver=20
again. The same thing happens when I change TabItems and come back to =
the one=20
with the TreeView in it.</DIV>
<DIV>Maybe some form of repainting should be added to the construction =
of=20
TreeViews?</DIV>
<DIV> </DIV>
<DIV>Thanks, Ad</DIV>
<DIV> </DIV>
<DIV>-- CustCont in Euphoria</DIV>
<DIV> </DIV>
<DIV>include Win32Lib.ew<BR>without warning</DIV>
<DIV> </DIV>
<DIV>constant<BR>Win =3D create(Window, "CustCont", 0, 40, 60, 720, 480, =
0),<BR>Tabs =3D create(TabControl, "", Win, 5, 5, 300, 440, 0),<BR>Tab1 =
=3D=20
create(TabItem, "op &Naam", Tabs, 0, 0, 0, 0, 0),<BR>Tab2 =3D =
create(TabItem,=20
"op n&Ummer", Tabs, 0, 0, 0, 0, 0),<BR>Tab3 =3D create(TabItem, "op=20
&Datum", Tabs, 0, 0, 0, 0, 0),<BR>TV =3D create(TreeView, "", Tab1, =
10, 30,=20
280, 400, =
TVS_HASBUTTONS, TVS_SHOWSELALWAYS}))</DIV>
<DIV> </DIV>
<DIV>setIcon(Win, "1083.ico")</DIV>
<DIV> </DIV>
<DIV>constant <BR>closefolder =3D=20
addIcon(extractIcon("clsdfold.ico")),<BR>openfolder =3D=20
addIcon(extractIcon("openfold.ico"))</DIV>
<DIV> </DIV>
<DIV>sequence folders<BR>folders =3D {}</DIV>
<DIV> </DIV>
<DIV>folders &=3D addTVItem(TV, closefolder, openfolder, "Test 1",=20
0)<BR>folders &=3D addTVItem(TV, closefolder, openfolder, "Test 2",=20
0)<BR>folders &=3D addTVItem(TV, closefolder, openfolder, "Test 3",=20
folders[1])</DIV>
<DIV> </DIV>
------=_NextPart_000_001B_01C02E52.77FF7440--
|
Not Categorized, Please Help
|
|