Search found 153 matches

by Bundy
Mon Sep 04, 2006 7:52 am
Forum: C++ Development
Topic: wxHtmlEasyPrinting problem with border size
Replies: 1
Views: 643

wxHtmlEasyPrinting problem with border size

Hello I need to print wxGrid content so I decide that the easiest way will be to make a string contains html file with this grid convert to a table. It was very easy. Problem shows when I needed to increment size of border. I try this <table border=5 style="border-collapse: collapse; border: 5px sol...
by Bundy
Tue May 16, 2006 9:19 am
Forum: Compiler / Linking / IDE Related
Topic: Can't debug in VS Express Edition
Replies: 5
Views: 1425

Ok, I find it. Option "Debug Information Format" in c/c++->General must be set to "Program Database for Edit & Continue (/ZI)". Maybe I turn it off when I start fun with VS Express Edition, I don't remamber. Anyway thank for Your time

Regards
Bundy
by Bundy
Tue May 16, 2006 8:43 am
Forum: Compiler / Linking / IDE Related
Topic: Can't debug in VS Express Edition
Replies: 5
Views: 1425

nothing change :(
by Bundy
Wed May 10, 2006 7:19 am
Forum: C++ Development
Topic: Problem with wxSpinCtrl->GetValue() and STL
Replies: 2
Views: 783

Thanks, About uninitializet pointer i know already. Compiler return me error when i buid simple console application. I'm wondering why compiler didn't say me about uninitializet pointer when I build simple application with wxWidgets. Anyway thanks for this and thanks for others tips. I will use them...
by Bundy
Wed May 10, 2006 6:44 am
Forum: Compiler / Linking / IDE Related
Topic: Can't debug in VS Express Edition
Replies: 5
Views: 1425

Can't debug in VS Express Edition

I set everything like was in some topic on this forum and I still have info when i run application: Debugging application for "myprogram.exe" cannot be found or does not match. Binary was not built with debug information. Do you want continue debugging? YES | NO When I click YES on breakpoint a have...
by Bundy
Wed May 10, 2006 6:27 am
Forum: C++ Development
Topic: Problem with wxSpinCtrl->GetValue() and STL
Replies: 2
Views: 783

Problem with wxSpinCtrl->GetValue() and STL

I have simple class to read line from file. It use only STL: #include <fstream> class ReadLine { public: ReadLine(char* path) { file = new std::ifstream(path); } char* getLine(int number) { skipLine(number-1); char * linia; file->getline(linia,50); return linia; } void skipLine(int number) { while(n...
by Bundy
Thu Mar 09, 2006 10:47 am
Forum: C++ Development
Topic: How to create two rows of columns labels in wxGrid?
Replies: 8
Views: 2231

How to create two rows of columns labels in wxGrid?

I can't find way to create two rows of columns labels. It is simple in Borland (for example). Is it something similar in wxGrid? I need something like this: +--------------------------------------------------------------+ | row id | first execution | second execution | +-----------------------------...
by Bundy
Tue Jan 31, 2006 9:03 am
Forum: C++ Development
Topic: wxSpinCtrl issue ?
Replies: 3
Views: 979

Yep, this control is very poor when You want to create program that check what user put into field. On windows You can catch EVT_TEXT and in function reacting on event get text by event.GetText() - but this only works on windows. Unfortunatly it is no function that return string from field, only num...
by Bundy
Thu Jan 26, 2006 11:09 am
Forum: C++ Development
Topic: wxBusyCursor and wxSafeYield
Replies: 6
Views: 1675

I had this same proble and I had to use wxWindowDisabler disable; instead of ::wxSafeYield(); Aha, I have problem with wxBusyCursor on linux so I create my own class #ifndef WXWAITCURSOR_HPP #define WXWAITCURSOR_HPP #include <wx/cursor.h> #include <wx/window.h> class wxWaitCursor { public: wxWaitCur...
by Bundy
Thu Jan 26, 2006 11:01 am
Forum: C++ Development
Topic: How many items can a wxListCtrl contain?
Replies: 2
Views: 679

I don't think that wxListCtrl has memory Limit because I add whan time 30MB text data and it works fine but very slow. So now I put so big file into memory and create wxListCtrl with parameter virtula, this mean that ListCtrl will automaticaly get data from memory and show them only when it will be ...
by Bundy
Tue Jan 24, 2006 7:52 am
Forum: C++ Development
Topic: Associating an Icon with a wxFrame
Replies: 10
Views: 3084

First: To add icon try this: #include "icon.xpm" //icon.xpm contains a icon bitmap in xpm format then i constructor: this->SetIcon(wxIcon(icon_xpm)); Notice: Some converter make not in xpm file a table named 'fileName'+ '_xpm' just simple ''fileName' so if you don't have icon in left upper corner tr...
by Bundy
Tue Jan 24, 2006 7:40 am
Forum: C++ Development
Topic: wxPanel -> Refreshing issue.
Replies: 2
Views: 705

outer_panel->Refresh() don't work?

Bundy
by Bundy
Mon Jan 23, 2006 1:37 pm
Forum: C++ Development
Topic: wxlistctrl SetItemBackgroundColour problems
Replies: 1
Views: 933

To set another column use: WxListCtrl1 = new wxListCtrl(strona1, ID_WXLISTCTRL1,wxDefaultPosition,wxSize(300,-1), wxLC_REPORT | wxLC_SINGLE_SEL);//wxPoint(25,85+50) WxListCtrl1->InsertColumn(0,_("Port"),wxLIST_FORMAT_LEFT,-1 ); WxListCtrl1->InsertColumn(0,_("IP address"),wxLIST_FORMAT_LEFT,-1 ); and...
by Bundy
Wed Jan 11, 2006 11:25 am
Forum: C++ Development
Topic: Trapping "Ctrl + F1" in a Dialog based application
Replies: 1
Views: 536

Maybe this example helps You: BEGIN_EVENT_TABLE(myframe,wxDialog) EVT_KEY_DOWN(myframe::on_escape) END_EVENT_TABLE() void myframe::on_escape(wxKeyEvent& event) { if( event.GetKeyCode() == 27 ) { EndModal(wxID_CANCEL); Destroy(); } event.Skip(); } You can change 27 to WXK_F1 for intercepting F1 butto...
by Bundy
Wed Jan 11, 2006 11:06 am
Forum: C++ Development
Topic: Logging messages
Replies: 3
Views: 845

The easiest way is to put wxLogMessage in #ifdef LOGBUILD / #endif. Just define this LOGBUILD into Your program in log build.

Regards, Bundy