Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-05-2015, 03:50   #136
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: OpenCPN for Android Alpha test 4.1.427

Dave
Ok. This is not a central point.
I like the compromise : move by either icon

Jean Pierre
Ptizef is offline   Reply With Quote
Old 28-05-2015, 07:27   #137
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: OpenCPN for Android Alpha test 4.1.427

Quote:
Originally Posted by Ptizef View Post
Anyway it has nothing to do with wxFormBuilder. What are the other adjustements you have to do?
wxFormBuilder generates buggy code for Mac OS X.
Please see the differences of same code for Windows and for Mac in these attachments.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	wxFormBuilderWindows.png
Views:	217
Size:	17.9 KB
ID:	102817   Click image for larger version

Name:	wxFormBuilderMac.png
Views:	166
Size:	75.8 KB
ID:	102818  

CarCode is online now   Reply With Quote
Old 28-05-2015, 12:37   #138
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: OpenCPN for Android Alpha test 4.1.427

Quote:
Originally Posted by CarCode View Post
wxFormBuilder generates buggy code for Mac OS X.
Please see the differences of same code for Windows and for Mac in these attachments.

Gerhard
Gerhard

Sorry but I still don't see what is the wrong code.
From your shot and the one attached from a W8.1 device ( but I get exactly the same with Vista and Linux), the only true difference except the specific OSX style is the spacer (line 789) you said having removed.

The reason of this spacer is to push back the transparency parameter to the bottom , whatever the numbers of parameters for the different data type assuming that the dialog has always the same hight related to the screen size. For example Pressure has less parameters than Wind so need less space. The extra space is taken by the spacer. I you use a big font size and there is not enough space, the dialog become scrollable.

wxFormBuilder is a complementary tool making very easy the dialogs definition, but don't focus on that, it must not be an obstacle.
Off course I'm ready to do my best but I really don't see what to do in this case.
Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	Wdialog.jpg
Views:	130
Size:	96.8 KB
ID:	102837  
Ptizef is offline   Reply With Quote
Old 29-05-2015, 05:01   #139
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: OpenCPN for Android Alpha test 4.1.427

JP,
I often have had problems with code generated by wxFormBuilder for some plugins. Examples:
- Using wxADJUST_MINSIZE results in a crash.
- Asserts with wrong numbers for rows and cols of wxGridSizer or wxFlexGridSizer which can be avoided if only cols are used.
The wxWidgets docs say:
Quote:
Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
However you are correct, here are some other issues as well. Please check e.g. GribSettingsDialog::SetSettingsDialogSize(). It doesn't work as expected for Mac OS X. The window is far higher as in Windows or Linux and it doesn't adjust to the different length of the 3 pages.

There is also a typo in line 536 of GribSettingsDialog.cpp
scroll() should be Scroll()
Otherwise the Mac OS X function scroll() is refererenced.

Gerhard
CarCode is online now   Reply With Quote
Old 29-05-2015, 14:27   #140
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: OpenCPN for Android Alpha test 4.1.427

Gerhard

1 ) there is no "wxADJUST_MINSIZE" in the plugin code
2 ) Please list the lines where you have problem with the sizer rows and lines number. I don't see what is different in the code and it has always been, and it is in the other part of O.
3) Please read carefully what I have written in #138 about the height of the setting dialog.
May be it's not satisfactory but for the moment it's not coded to adjust the height for each page but to adjust on the screen size (as it is in the option dialog)
4) Ok for line 536, I can suppress, it is useless. (old code)

Jean Pierre
Ptizef is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Android Anchor Drag Alarm for Android? phantomracer Marine Electronics 17 14-11-2021 09:33
OpenCPN for Android Alpha test 4.1.409 bdbcat OpenCPN 117 12-10-2015 01:28
OpenCPN for Android Alpha test 4.1.412 bdbcat OpenCPN 120 15-05-2015 12:12
S63_PI Alpha Test 0.3.0 bdbcat OpenCPN 25 07-04-2014 10:00
S63_PI Alpha Test 0.2.0 bdbcat OpenCPN 29 05-02-2014 10:26

Advertise Here


All times are GMT -7. The time now is 09:19.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.