Search found 37 matches

by mxoliveira73
Thu Jun 13, 2019 11:49 am
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 82

Re: Change instance of other frame

mainFrame * __mainFrameInstance = new mainFrame(0);

void NewDialog::OnButtonZClick(wxCommandEvent& event){
__mainFrameInstance->Button_mainFrame->SetLabel("lalala");
}


this code compile whitout errors;

but clicking in the ButtonZ, Button_mainFrame don't SetLabel("lalala");
by mxoliveira73
Thu Jun 13, 2019 3:10 am
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 82

Change instance of other frame

Orientation about change object in other frame, please.

newDialog ( ButtonZ -click ) ----- (Setlabel of object in mainFrame)


something like this:


void NewDialog::OnButtonZClick(wxCommandEvent& event){

mainFrame::Button1->Setlabel("lalala");

}
by mxoliveira73
Mon Jun 10, 2019 8:56 pm
Forum: C++ Development
Topic: How to change style of scrollbar
Replies: 8
Views: 1056

Re: How to change style of scrollbar

I'm looking for a simple way to change color of Scrollbar.... someone help me, please?
by mxoliveira73
Tue Jun 04, 2019 6:30 pm
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

It seems that yoy are absolutelly right!!!!!!!!!!!!!!!!

Works fine now....

Thanks a lot...
by mxoliveira73
Tue Jun 04, 2019 12:32 pm
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

wxWidgets-3.1.2\include\wx\ event.h|374| error: no matching function for call to 'wxEventFunctorMethod<wxEventTypeTag<wxMouseEvent>, MyFrame, wxCommandEvent, MyFrame>::CheckHandlerArgument(wxEventFunctorMethod<wxEventTypeTag<wxMouseEvent>, MyFrame, wxCommandEvent, MyFrame>::EventClass*)'| event.h li...
by mxoliveira73
Tue Jun 04, 2019 12:07 am
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

For oneeyeman, I don't now if I can explain... but is that. Evt_Button is a little bit diferent: if you click in the button and hold, the action don't happens; it only happens when you release the button(left mouse). using left_down in the exact moment that you down the button left mouse, the action...
by mxoliveira73
Mon Jun 03, 2019 11:50 pm
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

******************method 1 ************************************************************************ void OnDown(wxCommandEvent & event); btn->Bind( wxEVT_LEFT_DOWN, &MyFrame::OnDown, NULL, this ); void MyFrame::OnDown(wxCommandEvent & event) { muteChannel1(); btn->SetBackgroundColour(*wxRED); } ERRO...
by mxoliveira73
Mon Jun 03, 2019 11:48 am
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

Doesn't work. Where can i search and study. Tips or links please... I really don't understand, maybe the wrong it's mine, but 3 examples on this page https://docs.wxwidgets.org/3.0/overview_events.html works fine with wxEVT_COMMAND_MENU_SELECTED etc.. but adapt to wxEvt_LEFT_DOWN doesn't work.... wh...
by mxoliveira73
Mon Jun 03, 2019 6:27 am
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Re: Left Down in button

Ok, lets go to Bind. I'm studying hard. Consulting the documentation event.h I found: void Bind(const EventTag &eventType, void (Class::*method)(EventArg &), EventHandler *handler, int winid = wxID_ANY,int lastId = wxID_ANY, wxObject *userData = NULL) Then, i could make this: btn->Bind( wxEVT_LEFT_D...
by mxoliveira73
Sun Jun 02, 2019 9:58 pm
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 180

Left Down in button

resarching in foruns here, I learn handle the left button down event, this form: BEGIN_EVENT_TABLE(MainFrame, wxFrame) EVT_BUTTON(ID_Of_Action_Object, MainFrame :: CalledMethod) END_EVENT_TABLE(); btn = new wxButton(this, BUTTON_ID, "Button", wxDefaultPosition, wxDefaultSize); btn->Connect(BUTTON_ID...
by mxoliveira73
Sun Jun 02, 2019 7:09 pm
Forum: C++ Development
Topic: Concatenate name of instance object
Replies: 2
Views: 62

Re: Concatenate name of instance object

Thanks! Doublemax
by mxoliveira73
Sun Jun 02, 2019 3:01 pm
Forum: C++ Development
Topic: Concatenate name of instance object
Replies: 2
Views: 62

Concatenate name of instance object

Hi, I have one doubt and give some idea what is my problem. I need create 70 wxChoice; Then, I have a idea to do something like this ( it's only a idea): first, of corse, is it possible generate them dynamically, in Runtime? for (int i = 1, i < 70, i++) { wxChoice* Choice(i) = new wxChoice(panel, ID...
by mxoliveira73
Thu May 30, 2019 1:45 am
Forum: C++ Development
Topic: Change property object in other class
Replies: 2
Views: 85

Change property object in other class

For two weeks I'm trying change one property of object call that by other class. I would like to know where I'm wrong... I follow the steps, search in foruns, in manuals, but i'm not having sucess. Situation: In the class MyFrame there are one botton and one ScrolledWindow. Other class is a wxThread...
by mxoliveira73
Thu May 23, 2019 3:28 am
Forum: C++ Development
Topic: Event react change variable
Replies: 2
Views: 76

Event react change variable

is it possible create events that reacts to change of variable int? Problem: I have other part of program, that change numbers of one variable "int num". Can I create one event that react to this change? For example, if int num = 1, position of StaticText1 is 10,10; if int num =2, position of Static...
by mxoliveira73
Tue May 21, 2019 12:57 am
Forum: C++ Development
Topic: How to acces property of object in function outside of the Frame?
Replies: 6
Views: 176

How to acces property of object in function outside of the Frame?

How to acces property of object in function outside of the Frame? class MyFrame: public wxFrame { public: MyFrame(wxWindow* parent,wxWindowID id = -1); virtual ~MyFrame(); private: //(*Handlers(MyFrame) //*) //(*Identifiers(MyFrame) static const long ID_SCROLLEDWINDOW1; //*) //(*Declarations(MyFram...