Search found 79 matches

by Parduz
Tue Mar 10, 2020 10:47 am
Forum: Component Writing
Topic: Making a PNG animation control: what's the best approach?
Replies: 1
Views: 660

Making a PNG animation control: what's the best approach?

I want to make a control that works with PNGs but looks like the wxAnimation (same exposed functions, so i can replace it with mine); so basically the animation is a single long PNG "strip" of frames, and the control show a portion of it as a "frame". What should be the best approach? Should i start...
by Parduz
Wed Feb 26, 2020 10:11 am
Forum: Compiler / Linking / IDE Related
Topic: wxCrafter and GIF files for wxAnimation
Replies: 1
Views: 213

wxCrafter and GIF files for wxAnimation

My app UI is "assembled" using wxCrafter, either as a standalone program on Windows or as plugin in Debian, then i develop and compile using Code::Blocks and g++. wxCrafter creates a cpp files containing all the bitmaps (icons and images) i put in the controls with it, but does'nt do that with the G...
by Parduz
Mon Feb 24, 2020 10:26 am
Forum: C++ Development
Topic: EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?
Replies: 3
Views: 283

Re: EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?

Mhm, this looks quite odd to me from the user view point. Anyway, did you try in the page changing event handler just vetoing the change and then calling wxNotebook::ChangeSelection() with CallAfter()? I'm a bit lost, as it seems i'm not able to write a CallAfter() call which compiles. CallAfter( [...
by Parduz
Fri Feb 21, 2020 4:04 pm
Forum: C++ Development
Topic: EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?
Replies: 3
Views: 283

EVT_NOTEBOOK_PAGE_CHANGING: can i change the new page?

I need to "intercept" a page change and "redirect" it to another page (as example, it is changing to page 1 and i want it to land on page 9). The Page Changing event seemed the right place to do it by using the event->SetSelection, but the wxBookCtrlBase::DoSetSelection ignores the values of the eve...
by Parduz
Fri Feb 07, 2020 10:22 am
Forum: C++ Development
Topic: Unwanted/unexpected event: what should i look for?
Replies: 2
Views: 198

Unwanted/unexpected event: what should i look for?

I understand that this will be a difficult question, as my project is pretty big and i cannot share it here... still i think it worth a try: My UI app is a "kiosk" app that runs on a BeagleBone Black with a touchscreen and a custom keyboard. It is "based" on wxSimpleBooks: on the main wxFrame i have...
by Parduz
Tue Jan 14, 2020 4:58 pm
Forum: C++ Development
Topic: Problems with wxScrolledWindow with wxWidgets 3.1.2
Replies: 10
Views: 740

Re: Problems with wxScrolledWindow with wxWidgets 3.1.2

Raising this thread again, 'cause found an useful clue i really need to solve it The clue is that the problem does not appears if i let the control to show the vertical scrollbar, which is done by commenting out this line from my sample code: m_ScrollFiles->ShowScrollbars(wxSHOW_SB_NEVER,wxSHOW_SB_N...
by Parduz
Thu Jan 09, 2020 3:59 pm
Forum: C++ Development
Topic: Command to force system reboot
Replies: 4
Views: 667

Re: Command to force system reboot

I would like to update the given link (which is dead): https://docs.wxwidgets.org/3.0/group__group__funcmacro__procctrl.html#ga3177c2a68564921806525f8fefa7e5c8 ...then ask: there's an example about how to get the access rights under Linux to use this function to reboot? (sorry for the necrothreading...
by Parduz
Fri Dec 13, 2019 4:56 pm
Forum: C++ Development
Topic: How to dinamically enable/disable borders?
Replies: 9
Views: 569

Re: How to dinamically enable/disable borders?

how do i get a pointer to Sizer3? You store it in a member variable when you create it. ow do i get a pointer to the Panel3 wxSizerItem? You store the result of the wxSizer::Add() call when you put the panel into its sizer. Well, i "can't" 'cause the creating function is "automated" by wxCrafter, s...
by Parduz
Fri Dec 13, 2019 4:05 pm
Forum: C++ Development
Topic: How to dinamically enable/disable borders?
Replies: 9
Views: 569

Re: How to dinamically enable/disable borders?

Sorry to seems pedantic, but i'm struggling with this... if i have a tree like this: mainform | +---- Sizer1 | +---- Sizer2 | | | +---- Panel1 | +---- Sizer3 | +---- Panel2 | +---- Panel3 how do i get a pointer to Sizer3? Or how do i get a pointer to the Panel3 wxSizerItem?
by Parduz
Fri Dec 13, 2019 3:09 pm
Forum: C++ Development
Topic: Proper sizing at start problem.
Replies: 8
Views: 448

Re: Proper sizing at start problem.

nope, no changes.
by Parduz
Fri Dec 13, 2019 3:07 pm
Forum: C++ Development
Topic: How to dinamically enable/disable borders?
Replies: 9
Views: 569

Re: How to dinamically enable/disable borders?

If i've right understood, as i'd need to change the borders depending on the page the simplebook is showing, i should: manage the simplebook pagechange event and there create a new sizer, assign it to the existing parent, and then add the existing simplebook to this new sizer setting the borders as ...
by Parduz
Fri Dec 13, 2019 12:01 pm
Forum: C++ Development
Topic: How to dinamically enable/disable borders?
Replies: 9
Views: 569

Re: How to dinamically enable/disable borders?

The post you linked talks about borders in the sense of gaps, not visible borders. Which ones do you mean? The gaps, specified along alignment, expand etc... You can also specify how much pixel they are. wxCrafter calls them "sizer flags", and are that "blueish" buttons on this picture: https://i.s...
by Parduz
Fri Dec 13, 2019 10:52 am
Forum: C++ Development
Topic: How to dinamically enable/disable borders?
Replies: 9
Views: 569

How to dinamically enable/disable borders?

Sorry if this have been already answered, but I google and searched but all i can find is this question and i can't get what it means. I need to enable or disable some of the borders of a panel (well, a simplenotebook really, but i think it is the same) and i can't find how to access them. So, suppo...
by Parduz
Thu Dec 12, 2019 4:37 pm
Forum: C++ Development
Topic: Proper sizing at start problem.
Replies: 8
Views: 448

Re: Proper sizing at start problem.

doublemax wrote:
Thu Dec 12, 2019 10:51 am
Try executing SendSizeEvent after ShowFullScreen has been processed and all events handled:

Code: Select all

ShowFullScreen();
CallAfter( [this] {
  SendSizeEvent();
});
No changes; also, the ShowFullScreen happens only under the __arm__ define, so in the PC it does'nt happens.