Discussion:
Enter Full Screen
Jim Wagner
2016-07-26 16:30:14 UTC
Permalink
Greetings, NUG

I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?

Many thanks
Jim

James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home



_______________________________________________
Unsubscribe by sending a message to:
<nug-lea
Keith DeLong
2016-07-26 18:05:45 UTC
Permalink
Hi Jim,

This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.

Perhaps others form Xojo can further clarify the rules.

Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-
Jim Wagner
2016-07-26 18:23:04 UTC
Permalink
Thanks,

I will try that.

Jim

James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Hi Jim,
This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.
Perhaps others form Xojo can further clarify the rules.
Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <listhelp@
Jim Wagner
2016-07-26 20:10:21 UTC
Permalink
Making the maximum less than the available sizes of screen(0) did nothing. When I disable the Full Screen button, the menu entry is not enabled but is still present. I have the feeling that I need to change the menu to something other than “View” to get rid of it.

Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Hi Jim,
This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.
Perhaps others form Xojo can further clarify the rules.
Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List He
Keith DeLong
2016-07-26 20:37:37 UTC
Permalink
Jim, I’m sorry I don’t have more details and can’t seem to find a forum post I read on the topic.

Here’s a few workarounds you can try:

Try hiding/removing the menu in the window constructor or open event. If this doesn’t work you might be able to override the automatically added menu by creating your own. You could then hide/remove your menu item.

Finally, in macOSLib there is an NSWindow class with a property NSWindow.FullscreenAllowed. I use the following in window constructors to prevent fullscreen mode. I don’t know what it may do for the auto added View menu items:

#IF TargetMacOS Then
dim ns as New NSWindow
ns = Self
ns.FullscreenAllowed = False
#ENDIF

HTH,
Keith DeLong
Post by Jim Wagner
Making the maximum less than the available sizes of screen(0) did nothing. When I disable the Full Screen button, the menu entry is not enabled but is still present. I have the feeling that I need to change the menu to something other than “View” to get rid of it.
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Hi Jim,
This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.
Perhaps others form Xojo can further clarify the rules.
Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <listh
Jim Wagner
2016-07-26 20:49:48 UTC
Permalink
Thanks, Keith!

Jim

James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Jim, I’m sorry I don’t have more details and can’t seem to find a forum post I read on the topic.
Try hiding/removing the menu in the window constructor or open event. If this doesn’t work you might be able to override the automatically added menu by creating your own. You could then hide/remove your menu item.
#IF TargetMacOS Then
dim ns as New NSWindow
ns = Self
ns.FullscreenAllowed = False
#ENDIF
HTH,
Keith DeLong
Post by Jim Wagner
Making the maximum less than the available sizes of screen(0) did nothing. When I disable the Full Screen button, the menu entry is not enabled but is still present. I have the feeling that I need to change the menu to something other than “View” to get rid of it.
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Hi Jim,
This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.
Perhaps others form Xojo can further clarify the rules.
Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.com>

List Help: <***@xojo
Jim Wagner
2016-07-30 21:30:24 UTC
Permalink
The simple solution is to change the menu name to something other than “View”. Changed to “Windows” and the menu item “Enter Full Screen” is gone.

Jim

James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Jim, I’m sorry I don’t have more details and can’t seem to find a forum post I read on the topic.
Try hiding/removing the menu in the window constructor or open event. If this doesn’t work you might be able to override the automatically added menu by creating your own. You could then hide/remove your menu item.
#IF TargetMacOS Then
dim ns as New NSWindow
ns = Self
ns.FullscreenAllowed = False
#ENDIF
HTH,
Keith DeLong
Post by Jim Wagner
Making the maximum less than the available sizes of screen(0) did nothing. When I disable the Full Screen button, the menu entry is not enabled but is still present. I have the feeling that I need to change the menu to something other than “View” to get rid of it.
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
Post by Keith DeLong
Hi Jim,
This is a semi-auotomagic setting. I believe generally the menuitem is included if the window is resizable to larger than the screen size. Setting the maxheight/maxwidth to something less than the screen size should do it for you.
Perhaps others form Xojo can further clarify the rules.
Keith DeLong
Post by Jim Wagner
Greetings, NUG
I have a View menu associated with a window. Its purpose is to open various subsidiary windows to present data in detail that is displayed in low resolution in the main window. Works nice but the View menu has an item I did not add: “Enter Full Screen”. I DO NOT WANT that bloody item. How do I get rid of it. (current Xojo release)?
Many thanks
Jim
James Wagner
Oregon Research Electronics
https://sites.google.com/site/oregonresearchelectronics/home
_______________________________________________
_______________________________________________
_______________________________________________
_______________________________________________
_______________________________________________
Unsubscribe by sending a message to:
<nug-***@lists.xojo.c

Continue reading on narkive:
Loading...