Page 1 of 1
					
				Treegadget  and listicongadget borderless?
				Posted: Sun Sep 19, 2004 5:04 pm
				by Cantor
				Hi!
How do I code a borderless treegadget and a borderless listicongadget?
-- 
Greetings, Martin.
			 
			
					
				
				Posted: Sun Sep 19, 2004 10:19 pm
				by Sparkie
				A Windows only method is to remove the #WS_EX_CLIENTEDGE from the gadget exstyle.
Code: Select all
style = GetWindowLong_(GadgetID(Gadget#), #GWL_EXSTYLE) 
    newstyle = style &(~#WS_EX_CLIENTEDGE) 
    SetWindowLong_(GadgetID(Gadget#), #GWL_EXSTYLE, newstyle) 
    SetWindowPos_(GadgetID(Gadget#), 0, 0, 0, 0, 0, #SWP_SHOWWINDOW | #SWP_NOSIZE | #SWP_NOMOVE | #SWP_FRAMECHANGED)
 
Take a look at this post for more info. It removes the border from an EditorGadget but you can apply it to other gadgets as well. 

 
			 
			
					
				
				Posted: Mon Sep 20, 2004 8:10 am
				by Cantor