Starting a main stack into full screen mode and improving UI

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Starting a main stack into full screen mode and improving UI

Post by pkmittal » Fri Apr 04, 2008 9:44 am

Hello,

I would like to start a main stack into full screen mode. Is there any way to achieve this without using heavy external utilities?

On another point , I would like to improve the interface of my revolution application. Any tutorials which provides better insights to create rich interface using rev?

I am having 3 tables on the main screens ( one table contain 15 rows, another contain 3 rows and the last one also 3 rows) and I have implemented drag and drop functionalities to swap the positions in those tables.

However The tables in run time revolution have many limitations especially for the cells where the content have size limitatons when cell size is small and the particular Cell can not have multiple lines too.

Is there any other UI elements I should use instead of tables? Are there any sample examples which can provide some insights on how to create good interface while using drag and drop functionalities to support 18 rows and 9 columns.

Thanks for your insights.

Cheers
Pradeep

Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith » Fri Apr 04, 2008 4:32 pm

Pradeep, I haven't done this sort of thing, myself, but I'd think you could check the 'screenRect' at startup, and set the size of your stack accordingly.

As far as tables go, you're right, the built-in object is not all that usable, I find. If your tables are to be fixed sizes, as you describe, I think my approach would be to create the the tables as groups of fields, and do all the work myself. Depending on the complexity of what you want to do, this could probably work well.

Best,

Mark

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Screen Rect gives the current resolution

Post by pkmittal » Sat Apr 05, 2008 5:42 am

Hey mark,

Thanks for your response. You are right that we can use screenrect() to know the screen size and set the main stack size accordingly.

Is there any way in rev ( without using heavy external utilities) that can also change the resolution on client machine and when I close the application then change the resolution according to his previous settings.

Using many fields to replace table will generate many complexities, However I will explore it in greater details.

Thanks.

Cheers
Pradeep

martinjzu
Posts: 4
Joined: Mon Jul 28, 2008 6:09 am

full screen mode

Post by martinjzu » Wed Sep 17, 2008 8:57 am

Open a stack in full screen mode? I just figured out:

on openStack
set the fullScreen of this stack to true
end openStack

returning to the original size:

on mouseUp
set the fullScreen of this stack to false
end mouseUp

Is this the easiest way, or is there a simpler solution?

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Wed Sep 17, 2008 10:42 am

If I understand pradeep correctly he wants to change the screen resolution on startup, not the dimensions of his stack. I am afraid this does not work with revs built in commands.. You might be able to do something with the shell, but that is just a wild guess.

All the best,

Malte

Post Reply