Page 1 of 1

wxSimpleBook problems

Posted: Wed Oct 17, 2018 3:59 pm
by Parduz
I'm using wxWidgets 3.0.4, debugging on Windows and releasing on a BeagleBone Black with a Debian image.

While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong?

Also, i never see the PageChanged and PageChanging events fired... why?

Re: wxSimpleBook problems

Posted: Wed Oct 17, 2018 4:28 pm
by doublemax
While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong?
I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux.
Also, i never see the PageChanged and PageChanging events fired... why?
Do you catch wxEVT_BOOKCTRL_PAGE_CHANGING / wxEVT_BOOKCTRL_PAGE_CHANGED? If yes, this sounds like bug. Can you try with the latest wxWidgets version?
this class reuses wxEVT_BOOKCTRL_PAGE_CHANGING and wxEVT_BOOKCTRL_PAGE_CHANGED events for the events it generates if the program calls SetSelection().

Re: wxSimpleBook problems

Posted: Wed Oct 17, 2018 5:26 pm
by ONEEYEMAN
Hi,
Can you try the notebook sample?
Also, it would be nice if you can develop on Debian {VM}. Remember wxWidgets using native sets of widgets where available and so it is possible that platform differences exists.

Thank you.

Re: wxSimpleBook problems

Posted: Thu Oct 18, 2018 8:55 am
by Parduz
ONEEYEMAN wrote:Also, it would be nice if you can develop on Debian {VM}. Remember wxWidgets using native sets of widgets where available and so it is possible that platform differences exists.
I'm trying to setup a Debian PC to debug on it and cross-compile to release on the BBB, but this is something for a new thread alone :?

Re: wxSimpleBook problems

Posted: Thu Oct 18, 2018 8:56 am
by Parduz
doublemax wrote:
While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong?
I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux.
It is the "Show Effect" property, using wxSHOW_EFFECT_xxx values :

Code: Select all

m_mySimpleBook->SetEffect(wxSHOW_EFFECT_ROLL_TO_LEFT);
doublemax wrote:
this class reuses wxEVT_BOOKCTRL_PAGE_CHANGING and wxEVT_BOOKCTRL_PAGE_CHANGED events for the events it generates if the program calls SetSelection().
Geez! :shock:

wxWiki wrote:virtual int wxBookCtrlBase::ChangeSelection ( size_t page )
Changes the selection to the given page, returning the previous selection.
This function behaves as SetSelection() but does not generate the page changing events.
I've called ChangeSelection in my whole program, did'nt get to check the the differences between the two functions. Sorry :oops:

Re: wxSimpleBook problems

Posted: Mon Oct 22, 2018 7:57 am
by Parduz
Parduz wrote:
doublemax wrote:
While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong?
I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux.
It is the "Show Effect" property, using wxSHOW_EFFECT_xxx values :

Code: Select all

m_mySimpleBook->SetEffect(wxSHOW_EFFECT_ROLL_TO_LEFT);
er.... i've found no clues that tells this is a Windows only feature. Could someone confirm that instead it is, or help me understand why it did'nt work on my BBB Debian?

Re: wxSimpleBook problems

Posted: Mon Oct 22, 2018 3:51 pm
by doublemax
Could someone confirm that instead it is, or help me understand why it did'nt work on my BBB Debian?
Build and run the "shaped" sample that comes with wxWidgets. It's the only one that uses these effects.