Treegadget and listicongadget borderless?

Just starting out? Need help? Post your questions and find answers here.
Cantor
New User
New User
Posts: 8
Joined: Fri May 09, 2003 10:34 pm

Treegadget and listicongadget borderless?

Post by Cantor »

Hi!

How do I code a borderless treegadget and a borderless listicongadget?

--
Greetings, Martin.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post 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. ;)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Cantor
New User
New User
Posts: 8
Joined: Fri May 09, 2003 10:34 pm

Post by Cantor »

Thank You. It works! :) :) :) :) :) :)
Post Reply