Search found 29 matches

by gabre
Sat May 04, 2013 7:29 pm
Forum: Component Writing
Topic: resizable Panel
Replies: 3
Views: 7236

Re: resizable Panel

The OS allows a window to be resizable using its border. A control can't be resizable by the user, just using the mouse. But if you put your control inside a window so it fulfill the whole window (using a wxsizer), you can achieve it. Another hard approach is to follow mouse coordinates and resizin...
by gabre
Thu May 02, 2013 7:35 am
Forum: Component Writing
Topic: resizable Panel
Replies: 3
Views: 7236

resizable Panel

In my program I have a feature where it is possible to investigate your Erlang code. This needs a tree structure drawn on the screen the nodes of which are boxes with styled text controls showing code for the user. I made a custom control for this with wxPanel, there are some buttons on it, etc, it ...
by gabre
Sun Apr 28, 2013 10:31 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 12063

Re: wxWidgets windows version / linux version difference (wx

Thank you! Another Windows related problem: I have a notebook in my program and on two pages of it I use my own paint events to draw graphs. On Windows, if you change to one of these pages the controls don't appear (or appear incorrectly) and buttons didn't work. If I remove the line from my code wh...
by gabre
Sun Apr 28, 2013 12:27 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 12063

Re: wxWidgets windows version / linux version difference (wx

nice, it work fine! thank you very much! I have another but a little bit stupid question. I have a miniframe, and I use it as a special context menu, I added controls to it, and some events so it works quite good. My problem is that under linux my controls fitted the area I provided to them (I adjus...
by gabre
Sun Apr 28, 2013 9:46 am
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 12063

wxWidgets windows version / linux version difference (wxList

I use the following code, to get the text of a column of a wxListCtrl: listctrl_nth_row_getter(ListCtrl, Column) -> fun(S) -> Item0 = wxListItem:new(), wxListItem:setId(Item0, S), wxListItem:setColumn(Item0, Column), wxListCtrl:getItem(ListCtrl, Item0), wxListItem:getText(Item0) end. As you can see,...
by gabre
Wed Mar 20, 2013 6:10 pm
Forum: C++ Development
Topic: StyledTextCtrl and lines
Replies: 5
Views: 1519

Re: StyledTextCtrl and lines

In wxErlang docs and modules I see no function like this one :S
It may be some wx version related issues (or I m wrong again).
http://www.erlang.org/doc/man/wxStyledTextCtrl.html
by gabre
Wed Mar 20, 2013 1:04 pm
Forum: C++ Development
Topic: StyledTextCtrl and lines
Replies: 5
Views: 1519

Re: StyledTextCtrl and lines

Thank you but I dont see any function there, in wxStyledTextControl using which I could set the margin text. I mean something like SCI_MARGINSETTEXT in Scintilla. ( I found the equivalent of every other function, for example SCI_HIDELINES(int lineStart, int lineEnd) from Scintilla docs is HideLines(...
by gabre
Wed Mar 20, 2013 8:44 am
Forum: C++ Development
Topic: StyledTextCtrl and lines
Replies: 5
Views: 1519

StyledTextCtrl and lines

I would like to have a text control with program codes but I want it to be numbered and the numbering should start at N (and N usually not equals 1). Is this possible? I tried the following: I added N-1 lines with "\n" to the text (before everything else) and hid these lines. This method didnt work ...
by gabre
Mon Mar 18, 2013 1:05 pm
Forum: Component Writing
Topic: No kill_focus fired
Replies: 0
Views: 4695

No kill_focus fired

I m trying to create a miniframe with some buttons and a textbox. When the user clicks outside the miniframe, it should close itself. I read about that in wxGTK frames get no focus, so I connected the kill_focus event of the panel to my event handler, but no event was fired. What can be the problem?...
by gabre
Fri Mar 15, 2013 1:48 pm
Forum: Component Writing
Topic: WX Aui and floating pane
Replies: 6
Views: 9174

Re: WX Aui and floating pane

Just for clarification: You have a big panel as parent for all the floating panels. The floating panels derive from wxPanel and contain some wx controls? There is no way to derive anything in Erlang (as it is not an OO language). I just wrote a module where I use a Parent coming from outside (like ...
by gabre
Mon Mar 11, 2013 9:17 am
Forum: Component Writing
Topic: WX Aui and floating pane
Replies: 6
Views: 9174

Re: WX Aui and floating pane

Thank you for your response, I managed to implement my own "floating, movable panel with a smaller styledtextcontrol (code browser) on it". The next problem is that I would like to connect my floating panels (code bubbles) with lines. I use getPosition and getSize from wxPanel to calculate the cente...
by gabre
Sun Mar 10, 2013 2:41 pm
Forum: Component Writing
Topic: WX Aui and floating pane
Replies: 6
Views: 9174

Re: WX Aui and floating pane

Hello, Thank your for your answer, I have checked the Wx example "MDI", tried out MDI frame in my code and experimented some. I have found that there is no way (really?) in wxGTK to make floating frames inside another frame because MDI child frames are displayed as "notebook tabs" on GTK. If I used ...
by gabre
Wed Mar 06, 2013 7:05 pm
Forum: General Development
Topic: Wx and mathematical graphs
Replies: 0
Views: 1277

Wx and mathematical graphs

I would like to ask if there is some implementation in connection with mathematical graphs or an easy way to display a graph in wx. I would like to draw a graph which has several nodes (for e.g. 100-200) but I dont want to implement an algorithm which calculates the positions of the nodes and want i...
by gabre
Sat Mar 02, 2013 10:15 am
Forum: Component Writing
Topic: WX Aui and floating pane
Replies: 6
Views: 9174

WX Aui and floating pane

I would like to do the following: I d like to have "windows inside a window", I mean that I need (with Wx terminology) frames inside a frame. These smaller frames need to be floating but they cant get out of the borders of their parent frame. (look at this pic and window titled "output": http://i.ms...