Search found 144 matches

by Nunki
Wed Dec 13, 2017 6:08 pm
Forum: C++ Development
Topic: wxFrame custom Title bar
Replies: 7
Views: 98

Re: wxFrame custom Title bar

Hi Priya, You could go for the custom made window and do the handling yourself. To construct what you want would be like the next image. structure.jpg So basically a vertical sizer with two panels on it, the top panel being set to a fix height op 40px e.g. The latter with a stretch factor=1. Both of...
by Nunki
Mon Dec 11, 2017 2:09 pm
Forum: C++ Development
Topic: wxXmlDocument, UTF-8 and special characters [SOLVED]
Replies: 6
Views: 94

Re: wxXmlDocument, UTF-8 and special characters [SOLVED]

Hi DoubleMax, You were absolutely right, the file contained oddly enough, the string NO xCB L while meaning NOËL. The latter being perfectly possible to process. So it was the person who originally created the xml file that made some mistake. Or that the FTP had an impact on this special character....
by Nunki
Sun Dec 10, 2017 4:14 pm
Forum: C++ Development
Topic: Create a texte editor [SOLVED]
Replies: 6
Views: 97

Re: Create a texte editor [SOLVED]

Hi gtafan, Based on not seeing any code :-) As for your first question, you need to set for the textcontrol the expand flag to horizontal alignment - providing the control is placed into a wxBoxSizerV. and also set the stretch factor=1. Only then your text control will fill up the entire space of th...
by Nunki
Sun Dec 10, 2017 2:47 pm
Forum: C++ Development
Topic: wxXmlDocument, UTF-8 and special characters [SOLVED]
Replies: 6
Views: 94

Re: wxXmlDocument, UTF-8 and special characters [SOLVED]

Hi DoubleMax, You were absolutely right, the file contained oddly enough, the string NO xCB L while meaning NOËL. The latter being perfectly possible to process. So it was the person who originally created the xml file that made some mistake. Or that the FTP had an impact on this special character. ...
by Nunki
Sun Dec 10, 2017 2:36 pm
Forum: Compiler / Linking / IDE Related
Topic: wxString::Format(wxT("%d"), ijk) error [SOLVED]
Replies: 2
Views: 47

Re: wxString::Format(wxT("%d"), ijk) error [SOLVED]

Hi, First of all, I think the wxT macro is obsolete, or wil become so. Note that since wxWidgets 2.9.0 you shouldn't use wxT() anymore in your program sources (it was previously required if you wanted to support Unicode). (taken from the wxWidgets 3.0.3 online documentation. Second, you work on a Ma...
by Nunki
Sun Dec 10, 2017 2:21 pm
Forum: C++ Development
Topic: wxGrid and Cell overflow
Replies: 5
Views: 83

Re: wxGrid and Cell overflow

Hi OneEyeMan, As a developer I'm focused on developing my application. So using wxWidgets means to me having a clean directory with only the DLL's, libs and header files. I did not install the full package with sample projects and the like. I have the online documentation and - very grateful - this ...
by Nunki
Thu Dec 07, 2017 10:04 pm
Forum: C++ Development
Topic: wxXmlDocument, UTF-8 and special characters [SOLVED]
Replies: 6
Views: 94

wxXmlDocument, UTF-8 and special characters [SOLVED]

Hi Guys, Ran into some peculiar situation with the loading of an xml file that has encoding='utf-8' and contains characters like Ë or Ö wxXmlDocument XmlDoc; bOk = true; bOk = XmlDoc.Load(sFName,"UTF_8"); if (!bOk) Tell("ReadXML","XML file niet opgeladen"); It seems tha...
by Nunki
Thu Dec 07, 2017 8:08 pm
Forum: C++ Development
Topic: wxGrid and Cell overflow
Replies: 5
Views: 83

Re: wxGrid and Cell overflow

I run win10 pro and use the Visual Studio 2010 Express to compile my code.
I've never used the wx samples before.

regards,
Nunki
by Nunki
Thu Dec 07, 2017 2:23 pm
Forum: C++ Development
Topic: wxGrid and Cell overflow
Replies: 5
Views: 83

wxGrid and Cell overflow

Hi guys, Just ran into some weird effect with wxGrid and cell overflow. After creating the wxGrid is set the overflow with hGrid->SetDefaultCellOverflow(false); Now this works as long as the adjacent cell is filled with data, if not the overflow is seen in the adjacent cell (see images) view2.jpg vi...
by Nunki
Sun Nov 26, 2017 8:53 am
Forum: C++ Development
Topic: [SOLVED]: wxCoice/wxComboBox doc conflict
Replies: 2
Views: 71

Re: wxCoice/wxComboBox doc conflict

Hi OneEyeMan, A wxChoice control is not a wxComboBox ! A wxChoice is used when having a fixed list of values a user may choose, nothing else. A combobox is used when you need to add values to the list. When creating a multi-user, database application (you need to store the user's data anyway) then i...
by Nunki
Thu Nov 16, 2017 9:16 pm
Forum: Compiler / Linking / IDE Related
Topic: add string to wxChoice [SOLVED]
Replies: 5
Views: 140

Re: add string to wxChoice [SOLVED]

Hi Hinet, I think you need to look for the possibility to store handles in the class so that you can access them from your code. m_choice4 = new wxChoice( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choice4NChoices, m_choice4Choices, 0 ); instead of a local variable (m_ch...
by Nunki
Wed Nov 15, 2017 11:53 pm
Forum: C++ Development
Topic: Add multiple panel objects in a sizer [SOLVED]
Replies: 1
Views: 59

Re: Add multiple panel objects in a sizer [SOLVED]

Hi,
I think you only need to add one vertical sizer to your window. Then add 1 panel to this vertical sizer containing a horizontal sizer for the buttons. Then on About simply add a new panel to the basic vertical sizer like the Test dialog in the next screenshot.

sizers.jpg


regards,
Nunki
by Nunki
Wed Nov 15, 2017 11:36 pm
Forum: C++ Development
Topic: wxGrid background color extends to outside of grid display
Replies: 3
Views: 93

Re: wxGrid background color extends to outside of grid display

Hi Spflanze, To my knowledge the white area is in the grid, meaning you don't have a border on your grid. The borders you see are simply the borders of the cells. Or, you have a panel with a white background on which you placed a wxGrid. The reason why I believe it's the first and not the latter is ...
by Nunki
Wed Nov 15, 2017 11:22 pm
Forum: Compiler / Linking / IDE Related
Topic: add string to wxChoice [SOLVED]
Replies: 5
Views: 140

Re: add string to wxChoice [SOLVED]

Hi Hinet, That's why I'm such an advocate of the XRC system. Then you can separate the screens from your code. It's worthwhile to look into that part of wxWidgets. Though not everything is possible, you do get pretty far without having to add some extra coding. If you want some more information on u...
by Nunki
Wed Nov 15, 2017 11:12 pm
Forum: C++ Development
Topic: wxTreeCtrl weird events
Replies: 6
Views: 188

Re: wxTreeCtrl weird events

Hi guys, aangifte.jpg as you can see, the root level is expanded, so you see the first level of branches. When I click on the + sign of a period, while debugging the code I see that I receive a select event for the root item. Strange, and a bit of a problem cause that means there will be a big resul...

Go to advanced search