Search found 56 matches

by mxoliveira73
Sun Jun 23, 2019 12:48 pm
Forum: C++ Development
Topic: Transparency PNG
Replies: 5
Views: 315

Re: Transparency PNG

One more time, big big thanks, New Pagodi!!!!
by mxoliveira73
Sat Jun 22, 2019 1:35 am
Forum: C++ Development
Topic: Transparency PNG
Replies: 5
Views: 315

Transparency PNG

I'm trying create a image png with transparency. Very basic... But.. in the example bellow, i created a wxPanel black, and over it there are a image PNG with transparency. In true, part white in the image is a PNG transparent, it's no white... I don't understand what is wrong. It's so basic.... Coul...
by mxoliveira73
Fri Jun 21, 2019 8:05 am
Forum: C++ Development
Topic: wxSlider custom
Replies: 2
Views: 213

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

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

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

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

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

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

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

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

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

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

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

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

Re: Concatenate name of instance object

Thanks! Doublemax