Search found 141 matches

by coderrc
Fri Jan 26, 2018 4:08 pm
Forum: C++ Development
Topic: On the random code problem of wxHtmlWindow
Replies: 5
Views: 2632

Re: On the random code problem of wxHtmlWindow

i doubt its the html, I'd wager that its an issue with the way the file is read. reading line by line likely invokes wxString's implicit utf-8/wstring/string conversion while the LoadFile() does not. Possibly , LoadFile will interpret the file correctly if the utf-8 file signature is present, but ot...
by coderrc
Fri Jan 05, 2018 1:17 pm
Forum: C++ Development
Topic: wxURI and URL encoding
Replies: 5
Views: 1633

Re: wxURI and URL encoding

in general, I would expect URL "parts" (eg username, password, etc) to come from somewhere external to the final url consumer either as user input or from some generator function. It should really be up to those inputs to properly format their output. blah blah unit testing blah separation...
by coderrc
Thu Dec 21, 2017 6:46 pm
Forum: Compiler / Linking / IDE Related
Topic: How to create Visual Studio solution using GTK+?
Replies: 6
Views: 2551

Re: How to create Visual Studio solution using GTK+?

Assuming your goal is to make a linux app, my preference is to use the Visual C++ for linux plugin and a linux vm.

this way I can work in visual studio and build/test on a linux machine.
by coderrc
Fri Dec 15, 2017 1:16 pm
Forum: C++ Development
Topic: Best practice: Linking GUI to function code.
Replies: 6
Views: 2023

Re: Best practice: Linking GUI to function code.

it sounds like what youre looking for is MVVM
by coderrc
Tue Dec 12, 2017 1:14 pm
Forum: C++ Development
Topic: wxObjArray and pointers to elements
Replies: 2
Views: 808

Re: wxObjArray and pointers to elements

If I understand correctly, you are doing something like wxArray<T> objs; T obj; objs.AddAt(obj,0); T* objptr=&objs[0]; in which case the answer is, no. absolutely not. wxArrays are dynamic, meaning they will resize themselves when needed. "resize" may be a bit misleading. what it reall...
by coderrc
Fri Dec 08, 2017 1:35 pm
Forum: Compiler / Linking / IDE Related
Topic: how to cross-compile the wxWidgets in linux
Replies: 2
Views: 2003

Re: how to cross-compile the wxWidgets in linux

I dont know anything about codeblocks as I do all my builds from command line, but for me, I had to patch a bunch of stuff related to wxconfig NOTE: it may not be this complicated, but as soon as I got it to work, I quit working on it and moved on with my life. for whichever git commit of wx3.1 im u...
by coderrc
Wed Nov 29, 2017 8:48 pm
Forum: C++ Development
Topic: Tool bar button PNG issues
Replies: 22
Views: 5837

Re: Tool bar button PNG issues

FWIW after deleting the color correction chunk the image works fine for me. It starts at 0x36 and has size 0xA5B.
not sure of a tool that will do it for you though.

eta: I got an assert error too when running the xrc demo. adding wxInitAllImageHandlers(); fixed that.
by coderrc
Mon Nov 27, 2017 1:30 pm
Forum: Compiler / Linking / IDE Related
Topic: WIN10 Simple sample from outside WXW environment available?
Replies: 14
Views: 3475

Re: WIN 10 - WXW 3.0.3 MSVC2015 (WAS: WIN10 Simple sample from outside WXW ...)

COMPILER OPTIONS: ================== /GS /analyze- /W4 /Zc:wchar_t /I"D:\_02_A_PROGS\_06_CODING\_00_IDEs\_03_wx_WIDGETS\3.0.3_exe \include\msvc\D:\_02_A_PROGS\_06_CODING \_00_IDEs\_03_wx_WIDGETS\3.0.3_exe\lib\vc_lib\mswu" just want to point out that D:\foo\D:\bar is never going to be a va...
by coderrc
Mon Nov 27, 2017 1:07 pm
Forum: wxDev-C++
Topic: Color change wxNotebook.
Replies: 1
Views: 11221

Re: Color change wxNotebook.

under windows my gut tells me that you cant. It will default to the system's control color.

if it really bothers you to death, you might goof around with the solutions offered here.
https://stackoverflow.com/questions/280 ... background
by coderrc
Tue Nov 21, 2017 5:23 pm
Forum: Compiler / Linking / IDE Related
Topic: vc++ project template?
Replies: 11
Views: 2647

Re: vc++ project template?

or just create a new project template ...

open up a wxwidgets minimal sample
file -> export template
follow the wizard, call it "wxWidgets Project"

file -> new -> project
templates | Visual C++ | -> "wxWidgets Project"
by coderrc
Fri Nov 17, 2017 3:03 pm
Forum: C++ Development
Topic: Storing button pointers on wxWidget?
Replies: 6
Views: 1543

Re: Storing button pointers on wxWidget?

Code: Select all

 while (b2[row][col]->GetLabel() == temp) {

            col++;
Let col=2 and b2[row][col]->GetLabel() == temp
col++
b2[row][col]->GetLabel()

womp womp
by coderrc
Tue Nov 14, 2017 1:11 pm
Forum: C++ Development
Topic: Tab Key being eaten
Replies: 20
Views: 4291

Re: Tab Key being eaten

I tried the sample you provided, and it appears to work correctly. Tab characters are inserted into the text box when the tab key is pressed. windows 10 wxwidgets 3.1 x64 unicode build visual studio 2015 if you arent using wxw-3.1, you might try diffing the STC stuff with whatever version you're using
by coderrc
Mon Nov 13, 2017 7:38 pm
Forum: C++ Development
Topic: Tab Key being eaten
Replies: 20
Views: 4291

Re: Tab Key being eaten

wxSTC derives from wxTextEntry right? does the wxTE_PROCESS_TAB style work?
by coderrc
Fri Nov 03, 2017 1:33 pm
Forum: C++ Development
Topic: wxbutton
Replies: 6
Views: 1440

Re: wxbutton

try this h ///////////////////////////////////////////////////////////////////////////// // Name: complexdialog2.h // Purpose: // Author: Anthemion Software Ltd // Modified by: // Created: 03/11/2017 09:04:27 // RCS-ID: // Copyright: (c) Anthemion Software Ltd // Licence: ///////////////////////////...
by coderrc
Thu Nov 02, 2017 7:52 pm
Forum: C++ Development
Topic: wxbutton
Replies: 6
Views: 1440

Re: wxbutton

why not just make 4 different buttons "test|calculate|exit|cancel" then show and hide them as you see fit?