Search found 126 matches

by Nunki
Mon Oct 09, 2017 4:05 pm
Forum: C++ Development
Topic: Treeview and rightclick
Replies: 1
Views: 29

Treeview and rightclick

Hi to you all, I have a little issue with a treeview and using a rightclick. The code I use for handling the right click is: void tcAangiftes::OnTreeContext( wxTreeEvent& event ) { wxTreeItemId hItem, hParent; wxString sParentLbl, sLbl; wxTreeCtrl *hTree; hTree = XRCCTRL(*this, "AG_AG_TREE&...
by Nunki
Sun Sep 10, 2017 6:45 pm
Forum: C++ Development
Topic: wxString input
Replies: 4
Views: 112

Re: wxString input

Hi,
Perhaps the following link to the wiki helps you out.

https://wiki.wxwidgets.org/Converting_everything_to_and_from_wxString

regards,
Nunki
by Nunki
Mon Aug 21, 2017 10:26 pm
Forum: Platform Related Issues
Topic: crash in wxmsw30u_gcc48.dll with code: 0xc0000005
Replies: 9
Views: 326

Re: crash in wxmsw30u_gcc48.dll with code: 0xc0000005

Hi Rob, Am I correct that you have an application which uses your library (which is a dll) which uses the wx-dll. Now I don't know your program but what I would do for starters is to put everything into one big application, no dll's or static libraries. And see how that works out, just to rule out p...
by Nunki
Wed Aug 16, 2017 7:14 pm
Forum: C++ Development
Topic: How to get data from a selected item?
Replies: 3
Views: 128

Re: How to get data from a selected item?

Hi Azrael, First of all you can find the documentation on wxListCtrl here http://docs.wxwidgets.org/3.1/classwx_list_ctrl.html As far as I can see (haven't used wxListCtrl yet, mostly wxComboBox) you have two possibilities: 1) You act upon a selection of an item in the List and store - temporarily -...
by Nunki
Sun Aug 13, 2017 9:21 pm
Forum: Platform Related Issues
Topic: crash in wxmsw30u_gcc48.dll with code: 0xc0000005
Replies: 9
Views: 326

Re: crash in wxmsw30u_gcc48.dll with code: 0xc0000005

Hi Rob,

Code: Select all

 ErrList->CreateGrid( 0, 3 );

So you create a grid with no rows and three columns, right ?

Now, if you do any action before you add a row with

Code: Select all

ErrList->InsertRows(1,ErrList->Count(),false);


You will get such an access violation error.

Regards
Nunki
by Nunki
Sun Aug 13, 2017 9:09 pm
Forum: C++ Development
Topic: One scrollbar around wcTextCtrl and wxGrid
Replies: 6
Views: 210

Re: One scrollbar around wcTextCtrl and wxGrid

Hi Neil, I would strongly advise against that kind of behaviour. An interface should be intuitive and logical. Sliders are introduced with windows. A way to say you page is of size A4 but your window is size A5, so you can only seen 1/2 of your page. That's why your vertcal slider will show a slider...
by Nunki
Sat Aug 12, 2017 9:16 am
Forum: C++ Development
Topic: swaping a panel for another?
Replies: 2
Views: 143

Re: swaping a panel for another?

Hi Fru- I create my dialogs with DialogBlocks and use the XRC layout, but that doesn't matter, the idea's the same. So I create a dialog and add a wxPanel on it with a horzontal or vertical sizer in it. First I get a handle to that panel and its sizer hPanel = XRCCTRL(*this, "ID_PANEL18", ...
by Nunki
Sat Aug 12, 2017 8:49 am
Forum: Platform Related Issues
Topic: crash in wxmsw30u_gcc48.dll with code: 0xc0000005
Replies: 9
Views: 326

Re: crash in wxmsw30u_gcc48.dll with code: 0xc0000005

Rob, Usually that error code tells me I have a null pointer, or at least some uninitialised pointer. You also have to be aware that you may ignore warnings of your compiler, but they may point you to the fact that this may happen. It will compile your program into executable code, but you may run in...
by Nunki
Sun Jul 30, 2017 11:07 pm
Forum: C++ Development
Topic: wxGrid deleting multiple rows [SOLVED]
Replies: 2
Views: 92

Re: wxGrid deleting multiple rows [SOLVED]

Thanks Doublemax,
I was also thinking to go for the second option. Using GetSelectedRows() in a loop.

regards,
Nunki
by Nunki
Sun Jul 30, 2017 7:09 pm
Forum: C++ Development
Topic: C++ wxWidgets panel set Background coloru
Replies: 4
Views: 348

Re: C++ wxWidgets panel set Background coloru

Hi Harshdeep, Like Doublemax said, you need to be sure your using the method on the right object. For that you first need to get the pointer to your wxPanel, and then use the method SetBackgroundColour. wxPanel *hPnl; hPnl = XRCCTRL(*this, "FIMG_PANEL",wxPanel); hPnl->SetBackgroundColour(w...
by Nunki
Sun Jul 30, 2017 6:56 pm
Forum: C++ Development
Topic: How to open and view office files in a window?
Replies: 2
Views: 110

Re: How to open and view office files in a window?

Hi Cicydos, In my ERP application I have all kinds of documents linked to a client or dossier. The way to display them is simply by loading them from the server to the user's pc into a temporary directory and then ask the operating system to start the default application for that type of document. I...
by Nunki
Sun Jul 30, 2017 6:23 pm
Forum: C++ Development
Topic: wxGrid deleting multiple rows [SOLVED]
Replies: 2
Views: 92

wxGrid deleting multiple rows [SOLVED]

Hi, I want to delete multiple rows from a wxGrid. Normally you would use the code: hGrid = XRCCTRL(*this, "MY_MY_GRID", wxGrid); anSel = hGrid->GetSelectedRows(); for (nIdx=0; nIdx<static_cast<int>(anSel.GetCount()); nIdx++) { nRow = anSel.Item(nIdx); to get the list of selected rows to de...
by Nunki
Fri Jul 21, 2017 8:37 pm
Forum: Platform Related Issues
Topic: How to disable system menu for windows application
Replies: 4
Views: 325

Re: How to disable system menu for windows application

Remove the wxSYSTEM_MENU flag from the style option of your application's frame while creating or from the resource file if you're using XRC files.

regards,
Nunki
by Nunki
Fri Jul 21, 2017 8:30 pm
Forum: C++ Development
Topic: Trouble converting wxString to Double
Replies: 12
Views: 260

Re: Trouble converting wxString to Double

I often use the equivalent functions of wx like wxAtoi, wxAtol and wxAtof. Works fine for me. There a lot of other functions too that are wrappers of the CRT. Check this link out:

http://docs.wxwidgets.org/trunk/group__ ... __crt.html

regards,
Nunki
by Nunki
Tue Jun 20, 2017 9:33 am
Forum: C++ Development
Topic: How to disable pages of wxWidgets? [SOLVED]
Replies: 12
Views: 1168

Re: How to disable pages of wxWidgets? [SOLVED]

Hi, If you want to disable a TAB page, simply disable all controls on that tab, the user may go to that TAB page, but cannot perform any action. Now disabling all controls on a tab, I think you can do that by placing them all into a panel and then disabling that panel. If you want to completely remo...

Go to advanced search