Vertical slide with PHPOffice - presentation

I'm using PHPOffice to generate a presentation based on DB data. It's a great library. Does anyone know how to set a presentation to vertical? On the features it says it does support it, but I can't seem to find a way to do it. Any guidance will be greatly appreciated.

The original developers answered my question:
$oDocumentLayout = new DocumentLayout();
$oDocumentLayout->setDocumentLayout(DocumentLayout::LAYOUT_A4, false);
$oPresentation = new PhpPresentation();
$oPresentation->getLayout($oDocumentLayout);

Related

Slide-out panel using Swift/OS X

Not sure there's a better way to describe this. It's almost like presentViewControllerAsSheet(vc) but presented non-modally, and not sliding out from the top of the window frame. I've searched and searched for solutions, but can't find anything that works. I think it's possible, since Apple's Mail 'Connection Doctor' window uses one for the Log Viewer, but I can't find any way to do it.
If anyone has any suggestions or pointers to tutorials on how to accomplish such a thing, I'd appreciate it!

How do I hide the west-Area on a borderlayout?

When I hide the borderlayout I do not want a frame displayed, is there anyway to do this?
You can hide the frame/border on the parts of a borderlayout by setting border="none".
&ltborderlayout&gt
&ltwest border="none"&gt
&lt/west&gt
&lt/borderlayout&gt
It's in the ZK borderlayout example, though not very explicit. Notice the "Here is a non-border" panel.
PS: Welcome to StackOverflow. In the future please be more specific with your questions; you'll get much better interest and more useful responses.
If you set the west-Area to '0px' how you will get it back to the original width?
west.setWidth("0px");

Change the text of UISwitch

I want to change the switch control text YES/NO in place of ON/OFF , i am not know is it possible or not. if its possible and any one know about it please help me?
Thanks
I think its not possible to change the text of switch in proper way, but every problem has minimum one solution so for your problem you have to create the custom switch control
for help download the code from
here
1 : http://www.xprogress.com/post-30-uiswitch-tutorial-example-how-to-use-the-switch-in-xcode-for-iphone-sample-included/
2 : http://www.catamount.com/blog/1063/uicustomswitch-customizing-uiswitch-color-it-change-labels/
3 : help check this also http://www.xprogress.com/post-30-uiswitch-tutorial-example-how-to-use-the-switch-in-xcode-for-iphone-sample-included/
Thanks,
Raj
There is no way to change this two values in easy way.
You can look here: http://www.catamount.com/blog/1063/uicustomswitch-customizing-uiswitch-color-it-change-labels/
but this solution make custom UISwitch which got other graphics
I currently use this open source library called RCSwitch . Much more robust than the others mentioned.

Remove minimize/maximize buttons from window, OpenTK

I need to disable/remove the minimize and maximize buttons in window form.
I don't know how to access the form from my OpenTK.GameWindow, any help is appreciated.
This is deceptively easy:
WindowBorder = WindowBorder.Hidden;
GameWindow does not use WinForms, it p/invokes the underlying platform directly (performance!)
Edit: or do you mean keep the close button but remove minimize/maximize? The closest to this is:
WindowBorder = WindowBorder.Fixed;

Silverlight Navigation using Mvvm-light(oobe)+MEF?

What is the best approach for navigating between UserControls/Pages(out of browser experience)? I'm fairly new to Silverlight and even newer to the mvvm pattern.
How well does the Navigation Framework Integrate with the MVVM Light Toolkit? A snippet for general application flow control with the two would be great.
The plan was to use the Navigation Framework for general flow or using Jeremy Likeness's approach to region management(http://csharperimage.jeremylikness.com/search/label/regions) and swapping out regions as needed. I've seen a few places mention replacing the Visual Root, but that sounded like a hack to me.
Any advice, snippets, or a nudge in the general direction would be greatly appreciated.
Thank you.
You may find the following post useful:
SL4 Navigation Template with MVVM Light
I had the same problem and found this link (applies to Silverlight too):
Windows Phone 7 — Navigation between pages using MVVM Light Messaging
I'm struggling with the same thing, However, I am kinda steered away from the "NavigationService" because allegedly the journal keeps the object reference in memory or something I read somewhere.
I've been trying to utilize a frame in the main window, and using mvvm light to send navigation messages to the window to change the frame.
Edit: I figured it out.
In the main window (code behind, not viewmodel) I added a Messenger.Default.Register(Of NotificationMessage(Of NavMsg))...
Then in ANY view model I do a Messenger.Default.Send(Of Notificationmessage(Of NavMsg))...
And then I created a NavMsg class which accepts a string uri or an object to navigate to.
Here's some T4 code templates to generate you the code for your view/viewmodel to work with mvvmlight and it demonstrated the closing window message above. http://dl.activeaspsoftware.net/dl.aspx?f=MvvmLightCodeTemplates.zip