Search found 111 matches

by beneficii
Wed Aug 27, 2014 9:01 pm
Forum: The Code Dump
Topic: Road Maker 5
Replies: 4
Views: 2633

Re: Road Maker 5

I want to be able to create paths that can take the cross-sections easily. Like the below. I want to be able to set up the paths just right, so that when I set up each of the cross-sections, for the main road, when the road exists, the cloverleaf, everything. Here is an example interchange I wanted ...
by beneficii
Wed Aug 13, 2014 5:46 pm
Forum: The Code Dump
Topic: Road Maker 5
Replies: 4
Views: 2633

Re: Road Maker 5

Hi beneficii You call your app "roadmaker". Wich is your mind for this app? Ambitious? Something simple or very complex? Where do you think it should be profitable? Something simple, just to create cross-sections/patterns that can be used in apps like Inkscape. I've always wanted to design my own r...
by beneficii
Wed Aug 13, 2014 2:54 am
Forum: The Code Dump
Topic: Road Maker 5
Replies: 4
Views: 2633

Re: Road Maker 5

TODO: Making the periodicity, width, and length options be >= 0.

Just make sure not to use negative numbers for periodicity, width (actually, that might be OK), and length.
by beneficii
Wed Aug 13, 2014 2:29 am
Forum: The Code Dump
Topic: Road Maker 5
Replies: 4
Views: 2633

Road Maker 5

This creates a cross-section/pattern of road and puts it in SVG format, which you can then do things like Generate Pattern from Path in Inkscape to create results like the below: http://i58.tinypic.com/2wrffrs.png Compiled with wxWidgets 3.0.1. If anyone wants a guide on how to use it, just ask. Als...
by beneficii
Sun Aug 10, 2014 3:13 am
Forum: The Code Dump
Topic: Points, lines, angles, and offsets
Replies: 0
Views: 1362

Points, lines, angles, and offsets

Got something working. In point.h, static angle() method returns the unit circle angle (from 0 degrees to approaching 360 degrees), which can then be used to find the offset of the point at the given angle, setting off perpendicularly from the given angle. The offset() method uses the unit circle an...
by beneficii
Thu Aug 07, 2014 7:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Re: Compiling Project in Visual Studio 2013 for Windows Desk

doublemax wrote:Use a different name. winbase.h conflicts with the name of a VS header file.
That solved the problem. I'm guessing having a file named winbase.h in the project directory messes up the compilation.

Thanks, as always!
by beneficii
Thu Aug 07, 2014 7:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Re: Compiling Project in Visual Studio 2013 for Windows Desk

I then added the roadmaker and winbase files to the new project and it was the same situation as before, errors galore. Even after removing roadmaker and winbase from the project and going with the simple AppMain like before, the project seems to have been irrecoverably damaged, as even just with Ap...
by beneficii
Thu Aug 07, 2014 7:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Re: Compiling Project in Visual Studio 2013 for Windows Desk

Well, I created a new project with the AppMain.cpp and AppMain.h. That seemed to eliminate the errors.

I guess something happened to the project's configuration.
by beneficii
Thu Aug 07, 2014 6:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Re: Compiling Project in Visual Studio 2013 for Windows Desk

Where do these japanese error messages come from? Are you on a japanese system? As usual, the first test should be to build the "minimal" sample using the provided VS project files. Depending on if this works or not, you know in which direction to look for the problem. Yes, I am on a Japanese syste...
by beneficii
Thu Aug 07, 2014 6:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Re: Compiling Project in Visual Studio 2013 for Windows Desk

Where do these japanese error messages come from? Are you on a japanese system? As usual, the first test should be to build the "minimal" sample using the provided VS project files. Depending on if this works or not, you know in which direction to look for the problem. Yes, I am on a Japanese syste...
by beneficii
Thu Aug 07, 2014 10:28 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling Project in Visual Studio 2013 for Windows Desktop
Replies: 8
Views: 3580

Compiling Project in Visual Studio 2013 for Windows Desktop

I have this project here written in wxWidgets 3.0.1: AppMain.h: #ifndef APPMAIN_H #define APPMAIN_H #include <wx/wx.h> class AppMain : public wxApp { public: bool OnInit(); }; wxDECLARE_APP(AppMain); #endif AppMain.cpp: #include "AppMain.h" #include "roadmaker.h" bool AppMain::OnInit() { roadmaker* ...
by beneficii
Thu Aug 07, 2014 7:49 am
Forum: The Code Dump
Topic: Reading SVG into a path
Replies: 0
Views: 1233

Reading SVG into a path

Z/multiple M/and arcs are not supported, but this otherwise loads an SVG path: void read_svg(wxString path, fill_path& fpaths) { bool not_started_flag = true, last_cubic = false, last_quad = false; for (std::size_t i = 0; i < path.Length; ++i) { switch (static_cast<char>(path[i])) { case 'M': case '...
by beneficii
Sun Aug 03, 2014 3:17 am
Forum: Compiler / Linking / IDE Related
Topic: Setting font for wxTextCtrl in wxFormBuilder
Replies: 0
Views: 845

Setting font for wxTextCtrl in wxFormBuilder

Every time I try setting the font for a wxTextCtrl object in wxFormBuilder, I get this error:

ObjectBase is Null!

What is happening here?
by beneficii
Thu Jul 10, 2014 3:51 am
Forum: C++ Development
Topic: Question on wxListCtrl Documentation
Replies: 7
Views: 1273

Re: Question on wxListCtrl Documentation

Update: I tested this out, on MSW at least. Apparently, the Selection Event in a virtual wxListCtrl/wxListView subclass gets called when either only a single item is selected or you hold down Ctrl to make multiple selections. If you use Shift to make multiple selections (starting at 2), however, the...
by beneficii
Thu Jul 10, 2014 12:18 am
Forum: C++ Development
Topic: Question on wxListCtrl Documentation
Replies: 7
Views: 1273

Re: Question on wxListCtrl Documentation

OK. When it said the selections won't be sent, does that mean under some circumstances the control will refuse to allow multiple selection? I haven't tried it myself, but as far as i understood it, it just means that no selection events are sent. The items themselves will be selected. That could be...