wxSimpleBook problems

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
Parduz
Experienced Solver
Experienced Solver
Posts: 79
Joined: Fri Jan 30, 2015 1:48 pm
Location: Bologna, Italy

wxSimpleBook problems

Post by Parduz » Wed Oct 17, 2018 3:59 pm

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?

User avatar
doublemax
Moderator
Moderator
Posts: 15173
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSimpleBook problems

Post by doublemax » Wed Oct 17, 2018 4:28 pm

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().
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4423
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxSimpleBook problems

Post by ONEEYEMAN » Wed Oct 17, 2018 5:26 pm

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.

User avatar
Parduz
Experienced Solver
Experienced Solver
Posts: 79
Joined: Fri Jan 30, 2015 1:48 pm
Location: Bologna, Italy

Re: wxSimpleBook problems

Post by Parduz » Thu Oct 18, 2018 8:55 am

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

User avatar
Parduz
Experienced Solver
Experienced Solver
Posts: 79
Joined: Fri Jan 30, 2015 1:48 pm
Location: Bologna, Italy

Re: wxSimpleBook problems

Post by Parduz » Thu Oct 18, 2018 8:56 am

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:

User avatar
Parduz
Experienced Solver
Experienced Solver
Posts: 79
Joined: Fri Jan 30, 2015 1:48 pm
Location: Bologna, Italy

Re: wxSimpleBook problems

Post by Parduz » Mon Oct 22, 2018 7:57 am

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?

User avatar
doublemax
Moderator
Moderator
Posts: 15173
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSimpleBook problems

Post by doublemax » Mon Oct 22, 2018 3:51 pm

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.
Use the source, Luke!

Post Reply