Search found 164 matches

by Nunki
Fri Jul 13, 2018 10:16 am
Forum: C++ Development
Topic: wxXML header
Replies: 1
Views: 24

wxXML header

Hi All, Using wxXml I get an xml file like this <?xml version="1.0" encoding="UTF-8"?> <vcs-pos:financialTrxRequest xmlns:vcs-pos="http://www.vibek.com/pos" xmlns:vcs-device="http://www.vibek.com/device"> from XmlRoot = new wxXmlNode(wxXML_ELEMENT_NODE ,PAYWOR...
by Nunki
Mon Jun 18, 2018 6:03 am
Forum: C++ Development
Topic: Invalid wxFrame pointer address thrown during initialization [SOLVED]
Replies: 5
Views: 144

Re: Invalid wxFrame pointer address thrown during initialization [SOLVED]

Hi dark.... You don't have to apologise, you tried to give us as much information as you could. And in that way we can actually help you. There is some code above your main frame, isn't it ? The basic framework you can find on several wxWidgets sites as the example to start building your application...
by Nunki
Mon Jun 18, 2018 5:49 am
Forum: C++ Development
Topic: XRC error [SOLVED]
Replies: 2
Views: 336

Re: XRC error [SOLVED]

Yes, you're right doublemax ! I already changed some settings (I use DialogBlocks for drawing the screens and use the XRC) and saw that the error number changed too, so I was guessing this to be the line number, not an error number. Apparently by copying a part of another dialog into the dialog I wa...
by Nunki
Sun Jun 17, 2018 9:50 pm
Forum: C++ Development
Topic: can I split single grid cell to have multiple values?
Replies: 1
Views: 81

Re: can I split single grid cell to have multiple values?

Hi Murali, I suppose we're talking about wxGrid ? Then I think you cannot set the value of a cell to two values. It's not logical. You can either use two columns and if wxGrid had the ability to merge cells, you could have one header cell above these two columns. Or make one value out of the two wit...
by Nunki
Sun Jun 17, 2018 9:30 pm
Forum: C++ Development
Topic: XRC error [SOLVED]
Replies: 2
Views: 336

XRC error [SOLVED]

Hi guys,

Has anyone encountered the error: XRC error 1126, unknown style flag 0 yet ?

thanks,
Nunki
by Nunki
Thu Mar 22, 2018 10:12 am
Forum: C++ Development
Topic: Call to SetMenuBar() Results in Segmentation Fault
Replies: 23
Views: 643

Re: Call to SetMenuBar() Resutls in Segmentation Fault

Hi Spflanze, Just a thought, since I cannot make that conclusion from your code snippet. I use a base class of type wxMDIParentFrame, does not really matter what, this is the basic frame to which I want to link my menu. class tcBaseFrame: public wxMDIParentFrame After creation of this frame, I call ...
by Nunki
Tue Mar 20, 2018 10:10 pm
Forum: C++ Development
Topic: Show/Hide controls [SOLVED]
Replies: 7
Views: 274

Re: Show/Hide controls [SOLVED]

Hi OneEyeMan, Perfectly clear, thanks. Indeed doublemax has a point, I already tried using the layout after showing the control but have forgotten about the wxRESERVE_SPACE_EVEN_IF_HIDDEN flag. Will try and test your as well as doublemax's solution. Which makes me wonder, there is no real book on ma...
by Nunki
Tue Mar 20, 2018 8:13 pm
Forum: C++ Development
Topic: Show/Hide controls [SOLVED]
Replies: 7
Views: 274

Re: Show/Hide controls [SOLVED]

Hi OneEyeMan, I'll try to highlight the flow for you. So to answer your question, The constructor is tcDossier::tcDossier which calls BuildScreen() which calls SetTab1() That calls the AdjustMcReno() method that does the actual hiding. So as it is now, Layout() is called in BuildScreen() after SetTa...
by Nunki
Tue Mar 20, 2018 2:25 pm
Forum: C++ Development
Topic: Best list, combo, or choice control for my needs
Replies: 5
Views: 159

Re: Best list, combo, or choice control for my needs

WidgetWhich, I too used to program on win32 with the C-api (not C++) and listbox you seek is in wxWidgets the wxChoice control. A single line height control that drops down on selection and after selecting an item this item is displayed in the visible part of the control. And I don't want to have to...
by Nunki
Tue Mar 20, 2018 9:20 am
Forum: C++ Development
Topic: Show/Hide controls [SOLVED]
Replies: 7
Views: 274

Show/Hide controls [SOLVED]

Hi Guys, Little struggle with show & hide of controls. I start with the xrc file that contains two checkboxes which are - for alignment reasons - in a vertical box sizer, which is part of a gridbag sizer on a panel. Based on the data after display of the mdi window, I hide the checkboxes that ar...
by Nunki
Sat Mar 17, 2018 11:46 am
Forum: C++ Development
Topic: How to code a custom "console" within a GUI?
Replies: 5
Views: 266

Re: How to code a custom "console" within a GUI?

Hi Buttonsrtoys, I don't use wxFormbuilder but DialogBlocks instead, sorry. But as with all widgets, you can add them in code. You only have to provide a wxPanel with a sizer in your form where you want the scrolled window to be. Then youoy can add some code like this snippet: hPnl = XRCCTRL(*this, ...
by Nunki
Wed Mar 07, 2018 10:08 pm
Forum: C++ Development
Topic: Setting the size of the wxComboBox dropdown
Replies: 4
Views: 148

Re: Setting the size of the wxComboBox dropdown

Hi OneEyeMan,

Maybe this is possible with a wxChoice control that has the size parameter on create or use the SetSize(width,height) method. Though you may need to set the size before you call the layout and show methods.

regards,
Nunki
by Nunki
Wed Mar 07, 2018 9:57 pm
Forum: C++ Development
Topic: How to code a custom "console" within a GUI?
Replies: 5
Views: 266

Re: How to code a custom "console" within a GUI?

Hi Buttonsrtoys,

I would use a scrolledwindow for output and a wxTextctrl for input of a command. So you could echo the given command on the surface of the scrolledwindow and then add the resulting output beneath after typing RETURN.

Hope this puts you on your way,
regards,
Nunki
by Nunki
Sun Feb 11, 2018 6:14 pm
Forum: C++ Development
Topic: wxGrid events [SOLVED]
Replies: 2
Views: 188

Re: wxGrid events [SOLVED]

Thanks Doublemax,

you're a lifesaver ! Makes me realise the more I use wxWidgets, the more I see there's still a lot to learn. :)

Regards,
Nunki
by Nunki
Sun Feb 11, 2018 2:33 pm
Forum: C++ Development
Topic: wxGrid events [SOLVED]
Replies: 2
Views: 188

wxGrid events [SOLVED]

Hi all, I'm having a slight problem with wxGrid. I have done two bindings one for a doubleclick and another for a single click hGrid->Bind(wxEVT_GRID_CELL_LEFT_DCLICK,&tcTBbrowse::GChange,this); hGrid->Bind(wxEVT_GRID_CELL_LEFT_CLICK,&tcTBbrowse::GSelect,this); I also turn row selection mode...

Go to advanced search