help hiding SIP "triangle"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

does anyone know how to do either of the following:

1) Hide the small triangle that appears next to the SIP icon (it brings up
the menu of input types

or

2) Remove the "Options..." from the input selection group that pops up when
you click that small triangle!

I would appreciate any help....
 
I don't know of a way for that level of control. If you use SHFullscreen you
can remove the button completely (and you'll need to call the function
whenever your form is restored as the setting doesn't persist). Then you
could apply your own method to raise/lower the sip using the InputPanel
control e.g. with a ToolBar or Menu option, or automatically on text
controls receiving focus.

Peter
 
Hi,

Thanks very much for your response.

I have had limited luck with SHFullScreen. So a few questions:

1) Can you still have a menu bar along while not having the SIP icon?
2) Do you have a working example/link where someone may have done this?

Thanks again, I really appreciate it!
 
So basically what I am saying

I have a set of menu items. So my PDA would look like this:


------------------------------


screen/content


-------------------------------
File Edit Format [SIP ICON WITH TRIANGLE] <---- MENU BAR


So are you saying I can remove just the Sip Icon (and along with it the
triangle?)

I just wanted to be totally clear!
 
Yes use the SHFS_HIDESIPBUTTON constant with SHFullScreen, your menu bar
will still be displayed but with no SIP button e.g. for VB.NET:-

Declare Function SHFullScreen Lib "aygshell" ( _
ByVal hwnd As IntPtr, _
ByVal dwState As FullScreenFlags) As Boolean

<Flags()> _
Public Enum FullScreenFlags
ShowTaskbar = &H1
HideTaskbar = &H2
ShowSipButton = &H4
HideSipButton = &H8
ShowStartIcon = &H10
HideStartIcon = &H20
End Enum

usage:-

SHFullScreen(yourhwnd, FullScreenFlags.HideSipButton)

Peter
 
Thanks again Peter,

Any working examples floating around out there, especially if they are in C#?

Let me know. Thank again for all your help!
 
All right! One step closer, everything seems to be working fine.

Where do you reccomend putting a call for the function in a form since it
doesn't subsist. My app has multiple forms and you can go back and for
between them, is there a good place to continuously call the function?

Thanks!
 
I am having a very strange problem.

Basically, when I try calling this function in the load even/activate event
of the form it does not hide the SIP button.

However, if I precede it with a message box after I click the "ok" of the
message box, it works? I think this as to do with the form focusing or
something as I try and get the pointer.

Very wierd, any ideas?
 
I would suggest storing the hwnd of your form so you only have to get it
once this will remove the problems getting the focus at the right time to
get the hwnd. Within your Form Load handler use
this.Capture = true;
hwnd = GetCapture();
this.Capture = false;

Peter
 
Hi Peter,

I am doing exactly what you said:

Form Load Event:

this.capture true;
ptr = GetCapture();
this.capture = false;

SHFullScreen(ptr, SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);

Then I run SHFullscreen (as seen above there). I already went ahead and did
the dllimport and defined the SHFS things) It successfully hides the start
button but fails to hide the SIP Icon.

Why would that be? Am I calling the SHFullScreen in the wrong place? Where
should I call it? Daniel suggested the activate form event but that didn't
seem to work. The only way I get it to work is using the MessageBox after the
call. Then the message box pops up and then I click OK and the SIP button
disappears...I'm at a loss.

Any ideas would be a great help
 
Perhaps a call to Refresh() within your Activate method would cause the
menubar to redraw

Peter
 
Yeah, it's very strange,

I have tried refreshing, updating, focusing my form, etc.

I can't figure this one out. I have scoured the web and found multiple
examples and they are all very similar. I just can't understand why it
doesn't work/why adding in a messagebox makes a difference.

I will continue to search, if you have any other ideas, that would be helpful.

Thanks!
 
Hi Peter -

I still have problems getting it to persist but I posted it in a new thread
since it is kind of a new topic. If you have any ideas, let me know.

Thanks!
Reef
 
Back
Top