Search found 54 matches

by mxoliveira73
Fri Jun 21, 2019 8:05 am
Forum: C++ Development
Topic: wxSlider custom
Replies: 2
Views: 138

Re: wxSlider custom

New Pagodi... You were amazing.... I have no words to thank you man....
by mxoliveira73
Fri Jun 21, 2019 4:01 am
Forum: C++ Development
Topic: wxSlider custom
Replies: 2
Views: 138

wxSlider custom

I'm planning to create a custom wxSlider. I'm thinking load a icon, drag it, and create a event custom to get x position and then link this value for my necessities.... Ok, I'm a little bit lost... but, could someone give tips about thi process, the steps that i have follow to this? First image is a...
by mxoliveira73
Thu Jun 13, 2019 11:49 am
Forum: C++ Development
Topic: Change instance of other frame
Replies: 5
Views: 212

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: 212

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: 1446

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: 413

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: 413

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: 413

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: 413

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: 413

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: 413

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: 413

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: 203

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: 203

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: 238

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...