How To Remove White Horizontal Line on PanelGadget?

Just starting out? Need help? Post your questions and find answers here.
PyroStrex
User
User
Posts: 61
Joined: Mon Mar 22, 2010 3:08 pm

How To Remove White Horizontal Line on PanelGadget?

Post by PyroStrex »

As you all know, There's a very disturbing white horizontal line at the very right of the PanelGadget. It's not really visible to user eyes but my eyes doesn't like it :lol: . How do i remove it? I can't seem to find the way to do this with pure API and yes I've searched before. I only know how to remove it in VB.NET / C# since they are using .NET. I don't want to use .NET as it is a very big Framework. Please help me thank you.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How To Remove White Horizontal Line on PanelGadget?

Post by PB »

> There's a very disturbing white horizontal line at the very right of the PanelGadget

There is? Can you post a screenshot and point it out?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4663
Joined: Sun Apr 12, 2009 6:27 am

Re: How To Remove White Horizontal Line on PanelGadget?

Post by RASHAD »

@PyroStrex Hi
If you mean the Vertical white line at the right edge
Use ContainerGadegt() with less width to hide it
See the next snippet

Code: Select all

 ; Shows using of several panels...
  If OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ContainerGadget(0,8,8,304,203,#PB_Container_BorderLess)
    PanelGadget     (1, 0, 0, 306, 203)
      AddGadgetItem (1, -1, "Panel 1")
        PanelGadget (2, 5, 5, 290, 166)
          AddGadgetItem(2, -1, "Sub-Panel 1")
          AddGadgetItem(2, -1, "Sub-Panel 2")
          AddGadgetItem(2, -1, "Sub-Panel 3")
        CloseGadgetList()
      AddGadgetItem (1, -1,"Panel 2")
        ButtonGadget(3, 10, 15, 80, 24,"Button 1")
        ButtonGadget(4, 95, 15, 80, 24,"Button 2")
    CloseGadgetList()
    CloseGadgetList()

    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

Egypt my love
PyroStrex
User
User
Posts: 61
Joined: Mon Mar 22, 2010 3:08 pm

Re: How To Remove White Horizontal Line on PanelGadget?

Post by PyroStrex »

Here it is. It's only 1px width so yeah.. It is still disturbing to my eyes.
Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How To Remove White Horizontal Line on PanelGadget?

Post by PB »

Oh, I see. That's only on Windows 7. :twisted:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
PyroStrex
User
User
Posts: 61
Joined: Mon Mar 22, 2010 3:08 pm

Re: How To Remove White Horizontal Line on PanelGadget?

Post by PyroStrex »

Thank you so much RASHAD :). It really works.

PB: In vista it doesn't show?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How To Remove White Horizontal Line on PanelGadget?

Post by PB »

I have XP and the whole style of PanelGadget is different. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: How To Remove White Horizontal Line on PanelGadget?

Post by srod »

It shows on Vista, but you have to look really hard to see it!
I may look like a mule, but I'm not a complete ass.
Post Reply