Search found 12 matches

by manggae
Wed Jul 29, 2015 12:07 pm
Forum: Component Writing
Topic: If the frame size is changed, drawing energy value is delete
Replies: 8
Views: 4251

Re: If the frame size is changed, drawing energy value is delete

Thanks to you, I've solved the problem.!!!!!!! thank you!!!! void testdrawFrame::OnDrawEnergyClick(wxCommandEvent& event) { if ( little_endian() ) { m_byteOrder = MY_LITTLE_ENDIAN; m_swapByte = 0; } else{ m_byteOrder = MY_BIG_ENDIAN; m_swapByte = 1; } const char* tag =NULL; if(tag){ //태그 있으면 읽기 ...
by manggae
Wed Jul 29, 2015 11:14 am
Forum: Component Writing
Topic: If the frame size is changed, drawing energy value is delete
Replies: 8
Views: 4251

Re: If the frame size is changed, drawing energy value is delete

I've uploaded the source, i click the button("draw energy") and draw energy value, but Source gave you is taught, Let the program starts as soon as the figure is drawn. How do I transfer the event? void testdrawFrame::OnDrawEnergyClick(wxCommandEvent& event) { if ( little_endian() ) { ...
by manggae
Wed Jul 29, 2015 10:16 am
Forum: Component Writing
Topic: If the frame size is changed, drawing energy value is delete
Replies: 8
Views: 4251

Re: If the frame size is changed, drawing energy value is delete

this code
" Panel1->Connect(wxEVT_PAINT,(wxObjectEventFunction)&testdrawFrame::OnPaint);" is include the testdrawFrame::testdrawFrame(wxWindow* parent,wxWindowID id) ?

so stop the program......
by manggae
Wed Jul 29, 2015 8:54 am
Forum: Component Writing
Topic: If the frame size is changed, drawing energy value is delete
Replies: 8
Views: 4251

Re: If the frame size is changed, drawing energy value is delete

Can you give an example concerning wxEVT_PAINT? i make the source, but it is not action...... How do I fix it? Connect(ID_PANEL1,wxEVT_PAINT,wxPaintEventHandler(testdrawFrame::OnPaint)); void testdrawFrame::OnPaint(wxPaintEvent& event) { wxClientDC cdc(Panel1); wxBufferedDC dc(&cdc); dc.Clea...
by manggae
Wed Jul 29, 2015 7:12 am
Forum: Component Writing
Topic: If the frame size is changed, drawing energy value is delete
Replies: 8
Views: 4251

If the frame size is changed, drawing energy value is delete

I was able to complete the program. Giving a lot of help from this site. Features of the program is playing wav file, extract energy and draw energy value. However, there are problems. If the frame size is changed, drawing energy value is delete.... void testdrawFrame::OnDrawEnergyClick(wxCommandEve...
by manggae
Wed Jul 22, 2015 2:22 pm
Forum: Component Writing
Topic: How do draw a line for the data?
Replies: 3
Views: 4783

Re: How do draw a line for the data?

i make source in mfc about connect CRect with CClientDC. CStatic* stc = (CStatic *)GetDlgItem(IDC_STATIC_ENERGY); CRect rect; CClientDC dc(stc); stc->GetClientRect(&rect); hm....Perhaps, if i connect wxRect and wxclient, i can draw data.. wxRect rect; wxClientDC dc(Panel1); but I failed to find ...
by manggae
Wed Jul 22, 2015 1:20 pm
Forum: Component Writing
Topic: How do draw a line for the data?
Replies: 3
Views: 4783

How do draw a line for the data?

i painted the line using a and b by mfc. for example, CStatic* stc = (CStatic *)GetDlgItem(IDC_STATIC_ENERGY); // i want to draw in ID_PANEL1, instead of IDC_STATIC_ENERGY CRect rect; CClientDC dc(stc); stc->GetClientRect(&rect); CBrush brush; brush.CreateSolidBrush(RGB(255, 255, 255)); FillRect...
by manggae
Tue Jul 21, 2015 11:34 am
Forum: C++ Development
Topic: I can not select an item in the list.
Replies: 4
Views: 1443

I can not select an item in the list.

Through a lot of teaching, Use the InsertItem was able to add items to the list. but It is not easy to play by selecting an item from the list. void testdrawFrame::OnButton1Click(wxCommandEvent& event) { wxFileDialog FileDialog1(this); if(FileDialog1.ShowModal() == wxID_OK) { strfile = FileDialo...
by manggae
Wed Jul 15, 2015 3:33 am
Forum: Component Writing
Topic: I don't know how to link "wxfiledialog" and "wxlistctrl"
Replies: 6
Views: 3803

Re: I don't know how to link "wxfiledialog" and "wxlistctrl"

#include "testdrawMain.h" #include <wx/msgdlg.h> #include <wx/filedlg.h> #include <wx/wx.h> #include "openfile.h" #include <wx/msgdlg.h> #include <wx/msw/dialog.h> #include <stdio.h> #include "wx/listctrl.h" //(*InternalHeaders(testdrawFrame) #include <wx/intl.h> #incl...
by manggae
Tue Jul 14, 2015 3:40 pm
Forum: Component Writing
Topic: I don't know how to link "wxfiledialog" and "wxlistctrl"
Replies: 6
Views: 3803

Re: I don't know how to link "wxfiledialog" and "wxlistctrl"

please show me the example............i don't know.. :oops:
by manggae
Tue Jul 14, 2015 10:25 am
Forum: Component Writing
Topic: I don't know how to link "wxfiledialog" and "wxlistctrl"
Replies: 6
Views: 3803

I don't know how to link "wxfiledialog" and "wxlistctrl"

i don't know how to link "wxfiledialog" and "wxlistctrl".... select the wav file(use wxfiledialog) and add to wxlistctrl..., but i'm beginner about wxwidgets.... please help me...please!!! :oops: void testdrawFrame::OnButton1Click(wxCommandEvent& event) { wxFileDialog* FileDi...