Search found 29 matches

by gabre
Sun Jun 30, 2013 9:16 pm
Forum: C++ Development
Topic: autocomplete list never disappears
Replies: 1
Views: 585

autocomplete list never disappears

My app consists of five notebook pages, one of them has an input field (styledtextctrl) with autocomplete. I experienced the following with the autocomplete list of styledtextctrl: 1, I clicked on an input field which has an autocomplete functionality 2, I began typing something 3, an autocomplete l...
by gabre
Thu Jun 27, 2013 11:32 am
Forum: C++ Development
Topic: Sizes of application components
Replies: 4
Views: 1189

Re: Sizes of application components

With wxErlang there is no way to use such a tool like wxSmith, I have to do everything from code. :S
by gabre
Thu Jun 27, 2013 8:27 am
Forum: C++ Development
Topic: Sizes of application components
Replies: 4
Views: 1189

Sizes of application components

I faced the following: on different systems the default font is different, so texts are often too big for my fix-sized buttons (I absolutely need them to be fixed sized). I tried to set the font (with setFont) of my main frame but it doesnt work, I mean, if I modify font size to 6pt nothing changes....
by gabre
Wed Jun 19, 2013 12:49 pm
Forum: Platform Related Issues
Topic: Mac Listctrl assertion
Replies: 6
Views: 2324

Re: Mac Listctrl assertion

There is a solution for my sizer+control problem: (it is related to staticbox) http://wxpython-users.1045709.n5.nabble.com/wx-StaticBox-can-t-click-on-any-controls-td2351829.html Another problem I faced: I have a wxListCtrl which shows the files found in my database (nothing special). It is placed o...
by gabre
Wed Jun 19, 2013 11:54 am
Forum: Platform Related Issues
Topic: Mac Listctrl assertion
Replies: 6
Views: 2324

Re: Mac Listctrl assertion

I managed to solve the last problem but there is a new one here: buttons (and input fields) inside multiple sizers are unusable... I mean buttons are not clickable (but they are properly positioned).
by gabre
Thu Jun 13, 2013 11:23 am
Forum: Platform Related Issues
Topic: Mac Listctrl assertion
Replies: 6
Views: 2324

Re: Mac Listctrl assertion

I found out that these lines wxSizer:add(Sz, ButtSz, [{proportion, 0}] ++ Expand), wxSizer:add(Sz, Notebook1, [{proportion, 1}] ++ Expand), cause problems with widget positioning. If I remove proportion and expand ( Expand == [{flag, ?wxEXPAND}], nothing special just flags for sizers in a functional...
by gabre
Wed Jun 12, 2013 1:56 pm
Forum: Platform Related Issues
Topic: Mac Listctrl assertion
Replies: 6
Views: 2324

Re: Mac Listctrl assertion

oh yeah, thank you, the solution was as easy as u said. I have a "stupid" question. I tested my wxErlang app under Mac again and managed to start the application without assertions. the new problem is that "my widgets are scattered all over the screen". I know that this is a hard question (without c...
by gabre
Fri Jun 07, 2013 6:24 am
Forum: Platform Related Issues
Topic: Mac Listctrl assertion
Replies: 6
Views: 2324

Mac Listctrl assertion

I got the following error on mac:
assert.png
assert.png (31.6 KiB) Viewed 2324 times
No error on Windows / Linux. What can cause this? I hope there is somebody who knows the proper way to solve it without having to understand wx inner code. :) (less work)
by gabre
Wed May 29, 2013 12:35 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

Using staticbitmap instead of buttons: 1, I create a Mask with a circle (this will only allow the outline of the circle to be seen) (I use a brush like this: {0,0,0} colour, style: ?wxTRANSPARENT) 2, I create a black pic and make my Mask to be its mask 3, This will be the Label of the staticbitmap I...
by gabre
Wed May 29, 2013 11:08 am
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

That is okay, but I have to use bitmap buttons because they have to be clickable, and it is also not a solution that I track mouse positions and decide if the user clicked on a graph node.
by gabre
Tue May 28, 2013 7:55 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

My next problem (I m trying to bring my wx app to life which worked under Linux well) is in connection with bitmap buttons and drawing. The situation (simplified) is the following: I have bitmap buttons as graph nodes and I paint edges to connect them. Edges include lines and arrows. Firstly, I plac...
by gabre
Tue May 28, 2013 7:23 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

I've managed to solve it with the following line:

Code: Select all

  wxWindow:layout(Box), %% Box is the name of my custom panel
No other changes needed.
by gabre
Tue May 28, 2013 5:30 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

I did the following: ... wxSizer:add(Sz, BtnSz), wxSizer:add(Sz, HTextBox, [{border,2},{flag,?wxALL}]), % wxSizer:add(TxtSz,Brw,[{proportion, 1}, {flag, ?wxEXPAND}]), <---- I REMOVED THIS wxSizer:add(Sz,Brw, [{flag, ?wxEXPAND}, {proportion, 1}]) %% <--- And added Brw itself to the Sz sizer wxSizer:a...
by gabre
Tue May 28, 2013 2:46 pm
Forum: C++ Development
Topic: wxWidgets windows version / linux version difference (wxList
Replies: 16
Views: 10983

Re: wxWidgets windows version / linux version difference (wx

I have another problem (there is no problem on Linux, but on Windows). See the attached image that shows what I need. There is my code: (in Erlang, but it is quite easy to understand as it is just Wx :) ) ( TitleSz.add(NameBox) is the same as wxSizer:add(TitleSz, NameBox) ) wxSizer:add(TitleSz, Name...
by gabre
Tue May 07, 2013 8:24 am
Forum: Platform Related Issues
Topic: wx related GTK warnings
Replies: 1
Views: 2703

wx related GTK warnings

When I start my Wx app, I get the following: (Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13 (Erlang:5078): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 13 (Erlang:5078): Gtk-WARNING ...