Search found 65 matches

by Nelson Joseph
Mon Sep 10, 2012 5:14 pm
Forum: C++ Development
Topic: event id of a disabled button
Replies: 7
Views: 2437

Re: event id of a disabled button

Hi Ebe:

wxWindowID theId = myDisabledButton->GetId();
by Nelson Joseph
Wed Aug 29, 2012 1:09 pm
Forum: C++ Development
Topic: Event Handling in wxDataViewListCtrl
Replies: 11
Views: 3859

Re: Event Handling in wxDataViewListCtrl

Jeeva: This code will solve your problem. First connect dynamically. m_dataViewListCtrl->Connect( wxID_DATAVIEW_CTRL, wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( MyFrame::OnItemValueChanged ), NULL, this ); Add the following to OnItemValueChanged m_dataViewListCtrl->Disconnect...
by Nelson Joseph
Tue Aug 28, 2012 7:21 am
Forum: C++ Development
Topic: Event Handling in wxDataViewListCtrl
Replies: 11
Views: 3859

Re: Event Handling in wxDataViewListCtrl

Hi Mr.Doublemax,

Whenever I call SetTextValue, EVT_DATAVIEW_ITEM_VALUE_CHANGED will be processed.
Is there any way to Stop event generated by SetTextValue?

Thanks
by Nelson Joseph
Thu Aug 02, 2012 1:00 pm
Forum: Component Writing
Topic: Custom control with transparent parent
Replies: 3
Views: 7691

Re: Custom control with transparent parent

Sir,

Try to create a Shape class which is derived from wxObject and also use wxMemoryDC.
Also see the dragimag example code in wxWidgets' samples directory.
by Nelson Joseph
Sun Jul 29, 2012 7:44 am
Forum: Platform Related Issues
Topic: wxDirDialog - strange problem
Replies: 3
Views: 3461

Re: wxDirDialog - strange problem

Jacek,

Have you did like this? If not, please post your code snippet.

Code: Select all

wxString path;

if( dialog->ShowModal() == wxID_OK )
{
  path = dialog->GetPath();
}
by Nelson Joseph
Sun Jul 22, 2012 4:56 pm
Forum: Component Writing
Topic: Custom control with transparent parent
Replies: 3
Views: 7691

Re: Transparent control with transparent bitmap

Rajan sir,

Have you tried with wxTRANSPARENT_WINDOW|wxBORDER_NONE option in your class Transparent?
by Nelson Joseph
Wed Jun 20, 2012 2:29 am
Forum: C++ Development
Topic: Buttons scrolling without scrollbar
Replies: 10
Views: 3796

Re: Buttons scrolling without scrollbar

Mikey Boy wrote: like looping 20 (say) times, and each time scrolling by 1 pixel, possibly adding some sort of delay after each scroll to achieve the desired speed.
Thanks MiKey. Problem solved. :D
by Nelson Joseph
Tue Jun 19, 2012 4:41 pm
Forum: C++ Development
Topic: Buttons scrolling without scrollbar
Replies: 10
Views: 3796

Re: Buttons scrolling without scrollbar

@Mikey: Thank you Mikey. I have applied your suggestion. but still I am trying to get the effect something like wxSHOW_EFFECT_SLIDE_TO_RIGHT Any suggestions? I'm afraid I'm not familiar with the wxWindow effects, so I can't help you - sorry! @Mikey: Thank you for your help. Is there any way to move...
by Nelson Joseph
Tue Jun 19, 2012 4:28 pm
Forum: C++ Development
Topic: Buttons scrolling without scrollbar
Replies: 10
Views: 3796

Re: Buttons scrolling without scrollbar

@Mikey:

Thank you Mikey. I have applied your suggestion. but still I am trying to get the effect something like wxSHOW_EFFECT_SLIDE_TO_RIGHT
Any suggestions?
by Nelson Joseph
Tue Jun 19, 2012 4:10 pm
Forum: C++ Development
Topic: Buttons scrolling without scrollbar
Replies: 10
Views: 3796

Re: Buttons scrolling without scrollbar

@doublemax

Thanks for your reply.
Please find attached picture. Is there any built-in class?
I tried with wxSHOW_EFFECT_SLIDE_TO_RIGHT But I need the scrolling effect. Totally I have 10 buttons.

Thanks
by Nelson Joseph
Tue Jun 19, 2012 12:43 pm
Forum: C++ Development
Topic: Buttons scrolling without scrollbar
Replies: 10
Views: 3796

Buttons scrolling without scrollbar

Hi All,

Is it possible to scroll a set of buttons inside the pannel without using scroll bar(similar to jQuery sliding effect)
Instead of scroll bar I will have left and right navigation buttons.

Thanks in advance
by Nelson Joseph
Wed Feb 29, 2012 4:48 am
Forum: C++ Development
Topic: wxString to const char*
Replies: 1
Views: 1230

wxString to const char*

Hi All,

My function gets string from wxTextCtrl and process it and returns a wxString.
Another third-party library function needs const char* as input. If I use wxString::c_str(), it does not return valid char*

I am using wxWidgets 2.9.3, Windows 7, UNICODE build

Any suggestion?
by Nelson Joseph
Fri Jan 06, 2012 8:00 am
Forum: C++ Development
Topic: adding code to detect memory leak debugging shows error
Replies: 1
Views: 883

adding code to detect memory leak debugging shows error

Hi All, I am using wxVTKRenderWindowInteractor in my application. I just add the following code to detect memory leak #ifdef __WXMSW__ #include <wx/msw/msvcrt.h> #endif But when I build my application, it shows the following error : error C2660: 'vtkObject::operator new' : function does not take 4 a...
by Nelson Joseph
Mon Jan 02, 2012 4:16 pm
Forum: C++ Development
Topic: wxAutomation and Excel 2007
Replies: 3
Views: 2768

Re: wxAutomation and Excel 2007

Hi PB:

Thank you for your help.
I can understand the issues in VBA macro.
Is there any way to create chrat other than excuting VBA macro i.e using excel.PutProperty etc.?
by Nelson Joseph
Sun Jan 01, 2012 8:04 am
Forum: C++ Development
Topic: wxAutomation and Excel 2007
Replies: 3
Views: 2768

wxAutomation and Excel 2007

Hi All:

Can anyone please tell me how to create chart (x and y data) in Excel 2007 using wxAutomation. I am having VBA code to generate chart. Is there any class or procedure in wxWidgets to trigger VBA code?

Thanks in advance.