Search found 19 matches

by burnertje
Wed Jun 04, 2008 6:28 am
Forum: C++ Development
Topic: WxListCtrl edit second column
Replies: 2
Views: 3931

WxListCtrl edit second column

Is it possible, when you have 2 columns, to edit the second column in a wxListCtrl?

so when you select an item, the first column you can edit very easy, but I can't get it to work to edit my second column.

greetz
by burnertje
Wed Jun 04, 2008 6:25 am
Forum: C++ Development
Topic: How embed icon into application executable in linux.
Replies: 5
Views: 2517

if I understand it correctly you want to replace the standard icon with an xpm that you want to load into your executable. I known it is possible to load an XPM into an exe file. Dunno if you can replace the frame icon. you can implement the xpm using the following code #include "icon.xpm"...
by burnertje
Fri May 30, 2008 10:24 am
Forum: C++ Development
Topic: TextCtrl on wxNotebook
Replies: 2
Views: 767

Nope that is not the problem

greetz
by burnertje
Fri May 30, 2008 9:53 am
Forum: C++ Development
Topic: TextCtrl on wxNotebook
Replies: 2
Views: 767

TextCtrl on wxNotebook

Well I have a textCtrl on a wxNotebook tab. When I enter text there is nothing wrong with it. When I selected text and hit delete or I have no text selected it generates an error. Here is some code Notebook: AddPage( Panel, wxT(skelet->GetComponentName()), false ); wxTextCtrl wxTextCtrl* Edit = new ...
by burnertje
Thu May 15, 2008 1:18 pm
Forum: C++ Development
Topic: Memory leaks
Replies: 1
Views: 690

oke found the solution

I have this in my project

Code: Select all

#ifdef WIN32
    #include "vld.h"
#endif
when I place it in comments I have no leaks anymore. Quess I need an update for vld or need to link it with a dll

greetz
by burnertje
Thu May 15, 2008 12:51 pm
Forum: C++ Development
Topic: Memory leaks
Replies: 1
Views: 690

Memory leaks

Hello, I have a strange problem. When I compile my project with dll loaded into the exe I have no memory leaks. When I compile and build my project with dlls that needs to be located near the exe I get a lot of memory leaks. Is there an explanation for? And maby also a solution? For example. I have ...
by burnertje
Thu May 08, 2008 2:27 pm
Forum: C++ Development
Topic: Sorting problem
Replies: 4
Views: 1017

ah well I have writed my own sort function

now i need to implemend it into my listctrl

greetz
by burnertje
Thu May 08, 2008 1:39 pm
Forum: C++ Development
Topic: Sorting problem
Replies: 4
Views: 1017

Nope that does not work I have tried that already.

It seems when I have the same Name or value, it has then problem sorting. so I quess when it is even it needs to skip it or something

greetz
by burnertje
Thu May 08, 2008 12:16 pm
Forum: C++ Development
Topic: Sorting problem
Replies: 4
Views: 1017

Sorting problem

I have the following code std::vector<TTreeDataObject> *TreeDataListCmp; TTreeDataObject TreeDataObjectCmp1; TTreeDataObject TreeDataObjectCmp2; int wxCALLBACK MyCompareFunction(long item1, long item2, long sortData) { // inverse the order TreeDataListCmp = CrossReferenceForm->GetTreeDataList(); Tre...
by burnertje
Tue Apr 29, 2008 8:26 am
Forum: C++ Development
Topic: again on png transparency
Replies: 24
Views: 7972

What I did to get a nice picture is the following First you need to convert you picture to a vector. I used bin2cgui for it. It can be found even here or google for it. Next I copy the vector into a file. The file can be hello.pic or something else. then you need to include it into your file. #inclu...
by burnertje
Mon Apr 28, 2008 8:28 am
Forum: C++ Development
Topic: wxDragimage and wxTreeCtrl
Replies: 4
Views: 1170

ah thx it is working now :D

greetz
by burnertje
Fri Apr 25, 2008 6:42 am
Forum: C++ Development
Topic: wxDragimage and wxTreeCtrl
Replies: 4
Views: 1170

Thx for the help but it is not working. Still my text is staying in the corner of my screen. No movement at all.

Is it possible that the wxTreeCtrl onbegindrag event does not update the mouse position? What I mean is that the event only takes place 1 time?

greetz
by burnertje
Fri Apr 25, 2008 6:37 am
Forum: C++ Development
Topic: Move window when right mouse key is pressed
Replies: 6
Views: 1666

I quess you could use the right down mouse event and a wxframe. Wxframe is derrived from a wxwindow. wxwindow has a move command. So you could get the mouse location from the mouse event and then use that coordinates to move the wxframe. I quess you need to play with the styles from wxFrame and wxWi...
by burnertje
Thu Apr 24, 2008 1:33 pm
Forum: C++ Development
Topic: wxDragimage and wxTreeCtrl
Replies: 4
Views: 1170

wxDragimage and wxTreeCtrl

Hello, I have a class derived from wxTreectrl. This clase is a dockable pane. I have also a wxPanel class. This is also a dockable pane. What I want is from the treelist drag an item onto the wxPanel. This works, only I want, when i am dragging, that there is a little text or image along with the cu...
by burnertje
Wed Apr 09, 2008 6:59 am
Forum: C++ Development
Topic: PNG handling
Replies: 1
Views: 702

PNG handling

Hello, I have a simple question. Is it possible to add a png image to a C++ project? So that when I compile my project, it compiles my png images into the exe file, so that i dont need to copy a folder with images when I place my project on an other machine. I know it works with xpm files but xpm do...