Search found 96 matches

by Tony0945
Fri Aug 13, 2010 11:11 pm
Forum: C++ Development
Topic: Bridging Windows/Linux differences
Replies: 5
Views: 644

Yes, you are right, it is documented. Also, that page explains Item 1 in my list. void TonysTVplayerFrm::CreateGUIControls() { //Do not add custom code between //GUI Items Creation Start and GUI Items Creation End //wxDev-C++ designer will remove them. //Add the custom code before or after the block...
by Tony0945
Wed Aug 11, 2010 2:21 am
Forum: C++ Development
Topic: Bridging Windows/Linux differences
Replies: 5
Views: 644

wxGTK version 2.8.11
With out the RESIZE_BORDER attribute, no maximize button.
by Tony0945
Tue Aug 10, 2010 1:16 am
Forum: C++ Development
Topic: Bridging Windows/Linux differences
Replies: 5
Views: 644

Bridging Windows/Linux differences

Reposted from the wxDev-C++ forum: When compiling the same wxFrame based code under Windows 2000 and GNOME 2.8, I find the following differences: 1. Windows opens minimized, GNOME opens half-size (correct). 2. Windows has a functional Maximize Button (correct), GNOME has no Maximize button. 3. Windo...
by Tony0945
Tue Aug 10, 2010 1:11 am
Forum: wxDev-C++
Topic: Bridging Windows/Linux differences
Replies: 4
Views: 1434

BTW, I found that adding WX_RESIZE_BORDER fixed the missing Maximize button in Linux. It was not necessary in Windows. Sounds like a bug or just a difference that should be documented
by Tony0945
Tue Aug 10, 2010 1:03 am
Forum: wxDev-C++
Topic: Bridging Windows/Linux differences
Replies: 4
Views: 1434

Thanks! Will do.
by Tony0945
Thu Aug 05, 2010 10:54 am
Forum: wxDev-C++
Topic: Bridging Windows/Linux differences
Replies: 4
Views: 1434

Frame style is:

wxTAB_TRAVERSAL | wxCAPTION | wxSYSTEM_MENU | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE_BOX
by Tony0945
Mon Aug 02, 2010 2:15 am
Forum: wxDev-C++
Topic: Bridging Windows/Linux differences
Replies: 4
Views: 1434

Bridging Windows/Linux differences

When compiling the same wxFrame based code under Windows 2000 and GNOME 2.8, I find the following differences: 1. Windows opens minimized, GNOME opens half-size (correct). 2. Windows has a functional Maximize Button (correct), GNOME has no Maximize button. 3. Windows sizer-sized buttons show full te...
by Tony0945
Wed Jul 07, 2010 9:53 pm
Forum: wxDev-C++
Topic: wxdev-c++无法在Windows7中安装
Replies: 2
Views: 1655

What font and encoding are these posts? About 80% of the characters are square boxes with hex code. I might be able to help if I knew the question.

The problem is probably my system, so let's help each other. If you can answer my question, I'll try to answer yours.
by Tony0945
Fri Jun 11, 2010 1:03 am
Forum: wxDev-C++
Topic: Porting to MacIntosh
Replies: 3
Views: 1031

I don't have a Mac available for development, just for testing, but your mention of Linux sparked an idea. I may be able to use crossdev to build on Linux for Mac.
by Tony0945
Thu Jun 03, 2010 2:07 am
Forum: wxDev-C++
Topic: Porting to MacIntosh
Replies: 3
Views: 1031

Porting to MacIntosh

Do any guides exist for porting a wx-devcpp project to Macintosh? Something like flags to change, cross-compiler to specify? I mean specifically for wx-devcpp?
by Tony0945
Thu May 27, 2010 10:11 pm
Forum: C++ Development
Topic: Problem with Sizers
Replies: 2
Views: 514

The calls to SetMinSize() did the trick. The Platform is Windows 2000. I put some debug code in to display the minimum sizes. The original min size for the bar was 18h 543w. The original size of the left panel was -1,-1. The original size of the right panel was also -1,-1. The actual sizes were set ...
by Tony0945
Wed May 26, 2010 9:49 pm
Forum: C++ Development
Topic: Can't Add Widgets to wxDialog
Replies: 4
Views: 904

I missed that you are explicitly destroying the dialog. You don't have to do that if it's on the stack. Don't know what happens if you try to delete memory that wasn't allocated with "new", but it can't be good.

The stack frame object will go away when the function returns.
by Tony0945
Wed May 26, 2010 9:45 pm
Forum: C++ Development
Topic: Can't Add Widgets to wxDialog
Replies: 4
Views: 904

The dialog "help" is created on the stack. The TextCtrl constructor wants a pointer to a window and you are passing the whole object. You want: wxTextCtrl textarea(&help, -1, wxEmptyString); or wxDialog *help = new wxDialog(this, -1, _T("Help"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STY...
by Tony0945
Wed May 26, 2010 9:37 pm
Forum: C++ Development
Topic: Problem with Sizers
Replies: 2
Views: 514

Problem with Sizers

My app is based on wxFrame and has a Toolbar and two panels (different colors) arranged in a "T" with the Toolbar sitting above the two panels. I don't want any space between the widgets, but I am getting some kind of border because the frame background shows through between the toolbar and panels a...
by Tony0945
Mon May 24, 2010 1:20 am
Forum: wxDev-C++
Topic: Changing dialog properties
Replies: 1
Views: 759

Does the variable change while the Dialog is active? If you are just looking at the variable when the dialog is created, just put some conditional code in Create_GUI_controls(). If the variable changes as a result of actions in the dialog, just delete or new the appropriate buttons in the Onwhatever...