[SOLVED] Some one can help me

Answered Closed
0
0

How to Full Screen and Restore Full Screen in Wisej by using button click?

Thank you.

 

  • You must to post comments
Best Answer
0
0

Hi Huynh,

good news:

The next Wisej release will contain an easy to use Application.RequestFullScreen() implementation
that you can use in your ToolbarButton.Click event without any additional wiring of events or coding.

I´ll inform you when it´s available.

Best regards
Frank

 

  • Huỳnh Tấn Phát
    I think so good for deveoloper. Application.RequestFullScreen() and Application.CancelFullScreen() are what we need. Thank you so much.
  • You must to post comments
0
0

Huynh,

please find extended sample where the FullScreen mode is toggled by a ToolbarButton.

Best regards
Frank

Attachment
  • Huỳnh Tấn Phát
    I see… but my toolbar has ToolBarButton1, ToolBarButton2, ToolBarButton3… . How to use ToolBarButton1.Click event to FullScreen?
  • Frank (ITG)
    See the code in InitializeComponent. Regards, Frank
  • Huỳnh Tấn Phát
    when click any on ToolBarButton1, ToolBarButton2 or ToolBarButton3.. All FullScreen. I only want to use ToolBarButton1.Click. Thank you.
  • You must to post comments
0
0

Huynh,

I modified your sample to use a ClientEvent, see attachment.

Best regards
Frank

Attachment
  • Huỳnh Tấn Phát
    Hi Frank, so I can not use Application.Call(“JavaScript functionName”,””) to FullScreen. I have to use clientEvents to FullScreen?
  • Frank (ITG)
    Yes.
  • Huỳnh Tấn Phát
    My application uses ToolBarButton. It has’nt ClientEvents to call JavaScript. How to fullScreen using ToolBarButton.Click event?
  • Frank (ITG)
    Change the javascript code in the Toolbars Client event to: ClientEvent2.JavaScript = “if (e.getData().getName() == “”ToolBarButton1″”) FullScreen(); ” Best regards, Frank
  • You must to post comments
0
0

Hi Huynh,

you have to call it on the client and connect it to a user event.

See attached sample.

Best regards
Frank

Attachment
  • Huỳnh Tấn Phát
    HI Frank, I want to use Application.Call(“JavaScript functionName”,””) to FullScreen. You can see my wisej_js_test.zip. it’s not done. Thank you.
  • You must to post comments
0
0

Hi Frank,

Can you help me to see my demo?

How to use Application.Call JavaScript to FullScreen?

Thank you so much.

Attachment
  • You must to post comments
0
0

Hi Huynh,

you can query if your Application is running in FullScreenMode by reading the
Application.Browser.IsFullScreen

To change it into FullScreenMode you have to attach to a client side event
(e.g. a button click).

An easy way is to use the ClientEvents collection and add a client event like this:

 

clientevent

This enters the FullScreenMode. If you want to cancel it, add a client event with

fullScreenApi.cancelFullScreen()

Best regards,
Frank

Attachment
  • You must to post comments
Showing 6 results