# Static line is not drawn

**URL:** <https://www.ruby-forum.com/t/static-line-is-not-drawn/153784>\
**Category:** wxRuby\
**Created:** [November 21, 2008, 12:58am UTC](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784 "2008-11-21T00:58:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f17d59/32.png) [@ramo](https://www.ruby-forum.com/u/ramo)\
**Post date:** [November 21, 2008, 12:58am UTC](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784/1 "2008-11-21T00:58:22Z")

</div>

Hello there,

My next problem is with a wx::StaticLine

ok, in the code, i’m using a notebook and i’m putting a panel in it. I  
declare and initialize comboboxes, grids, lavels (static texts),  
textctrl, buttons, etc, and a StaticLine.

Everything appears on the window, but not the line. If I call the line  
outside the notebook in an independen panel (on other program) the line  
is drwan. So I think I missed something.

Another problem is that the TextCtrl is drawn in a strange way: just a  
white rectangle whithout borders and it looks bad.

I’m attaching the code, please run it and check what I mean.  
Any help would be great!

I’m using Windows, and I’ve olny tried the code on windows.

---

<div class="post-metadata">

**Author:** ![ramo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f17d59/32.png) [@ramo](https://www.ruby-forum.com/u/ramo)\
**Post date:** [November 21, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784/2 "2008-11-21T20:10:54Z")

</div>

Omar H. wrote:

> Hello there,
> 
> My next problem is with a wx::StaticLine
> 
> ok, in the code, i’m using a notebook and i’m putting a panel in it. I  
> declare and initialize comboboxes, grids, lavels (static texts),  
> textctrl, buttons, etc, and a StaticLine.
> 
> Everything appears on the window, but not the line. If I call the line  
> outside the notebook in an independen panel (on other program) the line  
> is drwan. So I think I missed something.

I think the size shouldnt be -1 , make it greater than 0

> Another problem is that the TextCtrl is drawn in a strange way: just a  
> white rectangle whithout borders and it looks bad.

try setting border options on like DOUBLE\_BORDER , i am not sure if it  
would work.

> I’m attaching the code, please run it and check what I mean.  
> Any help would be great!
> 
> I’m using Windows, and I’ve olny tried the code on windows.

---

<div class="post-metadata">

**Author:** ![ramo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f17d59/32.png) [@ramo](https://www.ruby-forum.com/u/ramo)\
**Post date:** [December 3, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/static-line-is-not-drawn/153784/3 "2008-12-03T22:56:41Z")

</div>

Jn Jacob wrote:

> I think the size shouldnt be -1 , make it greater than 0
> 
> try setting border options on like DOUBLE\_BORDER , i am not sure if it  
> would work.

well it worked, with some other small modifications to the code, but it  
worked in the end.

thank you
