It is currently 04 Dec 2009, 23:24

Welcome
Welcome to the SDB Engine Forum!
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!


Post a new topicPost a reply Page 1 of 1   [ 13 posts ]
Author Message
 Post subject: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 07 Aug 2008, 10:38 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
Hello guys,
in this thread I will post changes done in ScuiLib since the 0.5 Beta version.

LISTVIEW
Now listviews use only one switch for every row and not anymore a switch matrix for every field, this change will give an extra speed boost during the creation and handling of the Listviews.

TEXT STRUCT
Added the following fields to the basic Text Structure
- MultiCol
Can be True or False and is used to chnage the rendering mode from vertical to horizontal, this means that if you have a text struct with four rows, these rows will be renderend horizontal in virtual columns.
- ColSizes
Used if MultiCol=True
This is a table with the columns width expressed in percentual.
- ColBreak
Used if MultiCol=True
This is another table used to render vertical lines used to separate the columns, it should have the following fields:
° DrawLines = True|False
° Color = { r = red, g = green, b = blue, Contrast = contrast }

SWITCH
Now the switch objects can eccept in the table 'Params' the following tags:
- MultiCol
- ColSizes
- ColBreak
See the TEXT STRUCT above for a description of these tags.

NEW FUNCTIONS
Added two functions to track brush usage, now you can obtain and release brush id without worring of which are free and which are in use.
- helpers.GetBrushID()
- helpers.FreeBrush()

Added two functions to pause automatic rendering of the objects during the creation. This was done because when you are creating complex gadgets like tabs or FWin you have to set the flag NoDraw manually to avoid flickering.
Now it's no more needed you can use scui.PauseObjectRendering() just before the gadgets definition and resume the rendering with scui.ResumeObjectRendering() when you have done.

TABS
Fixed a bug that caused useless screen redrawing and flickering.


Report this post
Top
 Profile  
 
 Post subject:
PostPosted: 21 Aug 2008, 08:20 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
LISTVIEW
Fixed a bug that was causing unecessary object redrawing

STRINGBOX
Now the InputMode #GETKEY_ALPHABETIC will accept the Space along the athor characters.

FWIN
Fixed a bug that was causing wrong behaviour when a button was linked to an FWin_Open command, at the window close the calling button was locked.


Report this post
Top
 Profile  
 
 Post subject:
PostPosted: 21 Aug 2008, 22:33 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
LISTVIEW
Completed and tested all Get & Set tags


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 25 Sep 2008, 18:59 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
Hello guys,
this post is just to let you now that the project is alive and I'm working on two major improvements of the library, the first one is a new class called Virtual Area.
This object is something like a viewport, for example you can have a complete gui large 600x600 within a Virtual Area of 400x200, and you can scroll the contents with a scroller (or two).
Essentially it's like a viewport.

The second feature is a mechanism that give the ability to add childs to any object of the gui, in this way you can create your custom gui tree with all benefits that a design like this can have: you resize an object and all childs will be resized as well, you move an object and all childs will be moved with it.
A very handy feature of this system is that you can tell the system to arrange the childs automatically in vertical or horizontal layouts, you can even tell the system that a child must have a fixed width, or height, or both dimensions...

Well, it' s quite difficult to explain with may weird english but the importanti thing is that it works! :P
I hope to complete soon this release so you can see what I mean with a working example.

Now, building a gui that resize with the Hollywood main window is possible and easy!


Happy coding!
P.S.: Have you heard of the new hardware SAM440 where OS4.1 can run? :wink:
The wait is over!


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 26 Sep 2008, 15:36 

Joined: 27 May 2008, 19:38
Posts: 67
Location: Dresden / Germany
Oh, especially the 2nd feature is very welcomed by me!!! Yeah, that is cool! Really need that!

Looking forward to 0.6. Good work, Fabio!


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 27 Oct 2008, 21:17 

Joined: 27 May 2008, 19:38
Posts: 67
Location: Dresden / Germany
Hey Fabio,

it would be great if you could post the screenshot you sent over the mailinglist these days here in the forum and/or at the hollywood yahoo site! Unfortunately the file seem not to be available at imageshack anymore ... :-(

EDIT: Sorry, now it works. But you could post the screenshot at yahoo and here nevertheless. :-)

Thanks a lot in advance!
Micha


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 27 Oct 2008, 22:58 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
Here it is! The new Menu Class screenshot :)
Image


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 29 Oct 2008, 12:17 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
Well, this post is to list some new features that are coming up with 0.6 version:
STRING BOX
- New Event OnClick (Suggested by Tipsi). Now you can assign a function that will be executed every time the String Box is activated
- Fixed a bug that was causing bad MaxLen handling (thank you Clyde & Tipsi :) )

MENU
- This is a new class that can be used to create DropDown menu in your applications, actually every item can be assigned to a submenù or to a function call. There are no limits in the submenu structure, you can have hundreds of nested submenus. This class can be used to build command tool bar easily setting a switch during the creation process (actually is not fully working but will be in this or at least next update).
You can create one or more Menu object in every FWin or in the main screen (Hollywood main window).

FWIN
- Added the event OnClose, you can assign a function to this event that will be called when the window is closed, by its close gadget or manually with the command FWin_Close()

EDIT:
Changed credits to Tipsi for the OnClick event support on StringBox :wink:


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 29 Oct 2008, 21:05 

Joined: 27 May 2008, 19:38
Posts: 67
Location: Dresden / Germany
Hehe, cool! But to be honest, the OnClick event for string box was suggested by Tipsi, so he should get the credit! :-)

Did you receive my mail concerning Tipsi and 0.6 WIP?

EDIT: Just received you email! *LOL* Thanks a lot, mate!

Cheers!


Report this post
Top
 Profile  
 
 Post subject: Image buttons
PostPosted: 04 Dec 2008, 21:30 

Joined: 27 May 2008, 19:38
Posts: 67
Location: Dresden / Germany
Hi Fabio,

I am not sure whether you mentioned it before, but will it be possible with 0.6 to have image buttons? This means that I can put any image that I want on a button (or the image [b]is[/b] the button)?

Would be great!

Greetings


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 04 Dec 2008, 22:33 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
In this release there is the IMAGE CLASS, something different from support for images inside buttons.
With image class you can have pictures inside a box that can react to mouse click (up and down sepaqrately), the control will handle for you resizing if you need it. You can use this control to a basic primitive free-hand drawing control.

Images in buttons are planned in the next release (or sooner with a wip if you need it), it's a huge work because this feature is supposed to be for every single class that use the BevelStruct, in few words, all of them :D
With support for images will come support for vector2d too, the main library is almost complete, then, again, I have to modify all BevelStruct used by every single class.
:wink:


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 04 Dec 2008, 22:38 

Joined: 27 May 2008, 19:38
Posts: 67
Location: Dresden / Germany
Hm, sounds good so far. :-) So that means, that I can fake a button with the new image class? Could you post a little screenshot how it looks that the image is inside a box? Would be great!

Well, a friend of mine who uses Hollywood for his university project needs the image button ... This weekend ... :-) Or: Do you think it would be better/easier for now not to use ScuiLib but "just" plain Hollywood? So he would just load a brush and this could react to mouse events?

Thanks, mate!


Report this post
Top
 Profile  
 
 Post subject: Re: SCUI: Work in progress 0.5 Beta --> 0.6 Beta
PostPosted: 05 Dec 2008, 00:20 
Site Admin
User avatar

Joined: 22 Mar 2007, 22:50
Posts: 111
Well, you can simulate image buttons with image class but you can't have the same buttons behaviour... I mean that buttons have normal, hilighted, pushed and disabled states while image class can display an image without states because it's not a button :D

If your friend needs only image buttons I suggest to go for plain Hollywood, at least until the 0.7 :P , otherwise if he needs a complete gui, well... you know :wink:

Anyway I've just discovered 2 more bugs in TABS class, after I've fixed them I will release ScuiLib.
I've decided to release the library with the tutorials and the reference manual, the guide will come the next week since I don't want to delay the release anymore.
In a separated package I will release the tutorials precompiled for all platforms so anyone just curious to see how I looks like can download the executables and try.

cya and good night
:wink:


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 13 posts ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron