Search found 67 matches

by Morfio
Mon Oct 03, 2005 2:07 pm
Forum: C++ Development
Topic: Unicode and wxHtmlParser
Replies: 1
Views: 755

Unicode and wxHtmlParser

Hi, I've got an problem with wxHtmlParser and Unicode. If I want to open an URL, I just get a null pointer. Have I to convert the string and how can I do this? int IGFrame::getPictureUrls(const wxString &url) { IGHtml hpParser; if(hpParser.OpenURL(wxHTML_URL_PAGE, url) != NULL) printf("jo\n"); else ...
by Morfio
Wed Sep 14, 2005 9:40 am
Forum: C++ Development
Topic: Problems with ListCtrl (ListItem GetData) on Windows
Replies: 3
Views: 860

Thank you. It works. I spend 4 hours on this problem (: ...
by Morfio
Wed Sep 14, 2005 9:21 am
Forum: C++ Development
Topic: Problems with ListCtrl (ListItem GetData) on Windows
Replies: 3
Views: 860

Problems with ListCtrl (ListItem GetData) on Windows

Hello, I've got a problem on my windows system. I want to save pointers to a wxListItem using the method SetData. With GetData (in an other method) I want to get the pointer back. On Mac OS X my code works perfectly. On windows I get a segmentation fault. What have I to do? Here's the code: void wri...
by Morfio
Thu Sep 01, 2005 1:42 pm
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

Now this works pretty good. Thank you all! void VAddress::editBank(wxListEvent &event) { wxListItem bank; bank.SetMask(wxLIST_MASK_TEXT); bank.SetId(event.GetIndex()); bank.SetColumn(0); lcLiquiditaetBanken ->GetItem(bank); cbLiquiditaetBank->SetValue(bank.GetText()); bank.SetColumn(1); lcLiquiditae...
by Morfio
Thu Sep 01, 2005 12:51 pm
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

Yes: void VAddress::editBank(wxListEvent &event) { cbLiquiditaetBank->SetValue(event.GetText()); wxListItem bank = event.GetItem(); bank.SetId(event.GetId()); bank.SetColumn(1); lcLiquiditaetBanken->GetItem(bank); tcLiquiditaetBlz->SetValue(bank.GetText()); bank.SetId(event.GetId()); bank.SetColumn(...
by Morfio
Thu Sep 01, 2005 12:16 pm
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

Now I've got an other problem. If I only want to get one column, it works realy fine. But if I want to get the next, I always get the same text: void VAddress::editBank(wxListEvent &event) { cbLiquiditaetBank->SetValue(event.GetText()); wxListItem bank = event.GetItem(); bank.SetId(event.GetId()); b...
by Morfio
Thu Sep 01, 2005 11:14 am
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

No it works fine. Thank you very much :D
by Morfio
Thu Sep 01, 2005 11:03 am
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

As I see in the wiki is a tutorial. I just try this out.
by Morfio
Thu Sep 01, 2005 10:52 am
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

It doesn't work, here is my code:

Code: Select all

void VAddress::editBank(wxListEvent &event) {
	wxListItem bank = event.GetItem();
	
	bank.SetId(0);
	bank.SetColumn(2);
	
	cbLiquiditaetBank->SetValue(bank.GetText());
}
I want to get the third column, but I get always the first.
by Morfio
Thu Sep 01, 2005 10:35 am
Forum: C++ Development
Topic: ListCTRL in Report-Mode - Get text of second or third column
Replies: 11
Views: 1814

ListCTRL in Report-Mode - Get text of second or third column

Hi, on doubleclicking a row in a listctrl I want to get the strings of all columns. After reading the docs and the examples I've no idea how to do this. It's no problem to get the first column. I'd created an event (EVT_LIST_ITEM_ACTIVATED). But how can I get the other columns? Thank you, Morfio ...
by Morfio
Tue Aug 09, 2005 7:57 am
Forum: C++ Development
Topic: Disable single Notebookpages
Replies: 1
Views: 547

Disable single Notebookpages

Hi,

I want to disable single notebookpages. With notebookpage->Disable() it only disables the panel, but I want that the user is not able to click on the register card.

Is this possible?

Thank you,

Morfio ...
by Morfio
Fri Jul 29, 2005 12:32 pm
Forum: C++ Development
Topic: wxListCtrl and unvisible strings
Replies: 4
Views: 806

Thank you.

Am I able to do thinks like:

Code: Select all

...
myItem.SetData("hello world");

wxString test = myItem.GetData();
Without any objects, just a string? Is there a method?
by Morfio
Fri Jul 29, 2005 12:22 pm
Forum: C++ Development
Topic: wxListCtrl and unvisible strings
Replies: 4
Views: 806

wxListCtrl and unvisible strings

Hi, I'm filling a wxListCtrl in report mode with data from a database (name, street, zip, etc.). Now I want to save in every row an id. I tried to use SetData and GetData from wxListItem, but it does not work ... I tried the following: // pseudo-code wxListItem myItem; myItem.SetText("Hello World");...
by Morfio
Wed Jul 27, 2005 2:00 pm
Forum: C++ Development
Topic: Unicode problems with arguments
Replies: 6
Views: 1129

Hi,

if I use _T(), wxT() or _() I get the error, that Ltest could not be found.

Morfio ...
by Morfio
Wed Jul 27, 2005 1:44 pm
Forum: C++ Development
Topic: Unicode problems with arguments
Replies: 6
Views: 1129

Unicode problems with arguments

Hi I have a function wich has wxStrings as arguments: void myFunction(const wxString &hello, const wxString &world) ... If I want to pass a wxString, I get a compiler error: wxString test = "hello"; myFunction(test); // same error myFunction("hello"); ind.cpp:44: error: conversion from `const char[1...