PDA

Click to See Complete Forum and Search --> : Transperent Textbox


Inhumanoid
Nov 23rd, 1999, 03:49 PM
I need a function that will collapse all for a given treeview

kandan
Nov 23rd, 1999, 04:55 PM
hi,

Try this 1..

TreeView1.SelectedItem.Expanded = False

note: this is only collapse the node which is selected..

kandan
E-mail: rg_kandan@usa.net
ICQ: 52774533

Inhumanoid
Nov 23rd, 1999, 05:17 PM
Yeah, I know...

I could do something like this:



Private Function collapse_all()
Dim i As Integer
For i = 1 To tvwTree.Nodes.Count
tvwTree.Nodes(i).Expanded = False
Next
End Function



But this also tries to collapse Nodes wich don't have children and it also tries to collapse nodes wich are allready collapsed...
At least that's what I think...

vemvas
Dec 6th, 1999, 07:30 AM
Hi,
Any body know how to make a transperent textbox like a transperent Label

vemvas@aol.com

onerrorgoto
Dec 6th, 1999, 02:09 PM
This should simulate a transparent textbox
set these proepries:
Apperance : 0- Flat
Backcolor : Buttonface or whatever your app's backcolor is
Borderstyle : 0- None

Hope this will work for you :)

------------------
On Error Goto Bed :0)
anders@zsystemdesign.se

chrisjk
Dec 6th, 1999, 04:00 PM
but what can you do to really make it transparent? e.g. if there is a picture on the background. I'm sure API can solve this (it can do everything else :))

thank you

Regards,

chrisjk
Dec 6th, 1999, 04:00 PM
but what can you do to really make it transparent? e.g. if there is a picture on the background. I'm sure API can solve this (it can do everything else :))

thank you

Regards,

------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it :)

chrisjk
Dec 6th, 1999, 04:01 PM
Whoops, stuffed that one up! Sorry for the double-reply

tim_l_012
Apr 11th, 2002, 03:50 AM
hi,

I was wondering if it could go transperent also..

I was using a label and an up or down arrow to allow users to scroll through my label..

but the problem is that this caused major flickerage...


Thanks, :)

MerrionComputin
Apr 11th, 2002, 04:34 AM
To make a window transparent, call the SetWindowLong api call with WS_EX_STYLE index and the existing window ex style + WS_EX_TRANSPARENT

You will need to refresh the window for the transparency to take effect...

HTH,
Duncan

tim_l_012
Apr 11th, 2002, 09:37 AM
thanks for the help,

bu I just decided that a texbox is the way to go..

you know..

it only wrecks the whole feel of my app.. :(
makes it look poor... :( :( but i'm ok with that..

:D

just kidding!!

It still looks ok, but I would have liked a textbox with no background, like, a BG style with 'Transperent' instead of 'Opaque'...


:(

Thanks anyways, :)

Fox
Aug 13th, 2002, 11:33 AM
Merrion: Does this work with Win98 ?

MerrionComputin
Aug 13th, 2002, 11:39 AM
I don't have Win9x so I couldn't say - but MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp) seems to indicate that it would...

Fox
Aug 13th, 2002, 11:46 AM
Same problem here.. but I gave the program to some testers and the win98 and even win2k guys told me the box wouldn't get transparent... I just searched PlanetSourceCode and read a remark, which said it should work on win2k but not on win98..

However, I'd prefer my code to run on win98, too -.-*