[08 Apr 2008] SCUI Update!

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[08 Apr 2008] SCUI Update!

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Apr 2008 16:27:46 -0000

Hello! I've uploaded a new screenshot of scui featuring DropDown gadgets and ListView!

Code: Select all

FEATURES
DropDown
- Scroller automatically added if needed

ListView
- Scroller automatically added if needed (only vertical atm)
- Clicking on the header columns will sort the listview contents,
ascending the first click, descending the second click)
- User can select only one row or multiple rows depending on the
listview type
- Column size defined passing % of the ListView width
Here is a cut & paste of the code needed for the ListView definition:

Code: Select all

x = scui.NewObject( #IFOCLASS_LISTVIEW,
                     { x =  10, y = 404 },
                     { x = 460, y = 100 },
                     nil,
                     { FieldNames = { "Name", "Surname", "Age" },
                       Sizes      = { 40, 40, 20 },
                       Entries    = { { "Fabio",  "", "37" },
                                      { "Johnny", "Mnemonic", "36" },
                                      { "Clark",  "Kent",     "38" },
                                      { "Peter",  "Pan",      "14" },
                                      { "Takaya", "Todoroky", "23" },
                                      { "Aran",   "Benjo",    "24" },
                                      { "Mickey", "Mouse",    "??" }
                                     }
                       },
                      nil )
I hope to release the library soon, the code need some optimization and some more testing and some handy functions to set & get data to/from the gadgets, stay tuned! [;)]
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[08 Apr 2008] Re: SCUI Update!

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 8 Apr 2008 11:29:04 -0700 (PDT)

It looks like you are making great progress.

This seems like a very useful project. I look forward to using it in the future.

Keep up the great work!
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[08 Apr 2008] Re: SCUI Update!

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Apr 2008 23:01:20 +0200

This looks very cool!

How did you implement the edit gadgets? Using InKeyStr() or are you listening to OnKeyDown / OnKeyUp event handlers?
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[08 Apr 2008] Re: SCUI Update!

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Apr 2008 21:29:58 -0000

Thanks :) For the edit gadget I've used <IsKeyDown> because with this function I can trap almost every key like cursor keys, escape, function keys, enter, ecc... I've used a custom routine to simulate autorepeat. It's a bit brutal but seems to work well :) I'm planning to use handlers, but first I want to code all my ideas before they vanish from my mind ^^ ... like Tabs :)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[08 Apr 2008] Re: SCUI Update!

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Apr 2008 21:30:58 -0000

Thank you :)
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[10 Apr 2008] Re: Re: SCUI Update!

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 10 Apr 2008 21:16:38 +0200
Thanks :) For the edit gadget I've used <IsKeyDown> because with this function I can trap almost every key like cursor keys, escape, function keys, enter, ecc... I've used a custom routine to simulate autorepeat. It's a bit brutal but seems to work well :) I'm planning to use handlers, but first I want to code all my ideas before they vanish from my mind ^^ ... like Tabs :)
Ok. Keep in mind that polling loops are no good programming practice (especially in GUI applications!). If you really have to call IsKeyDown() in a loop make sure that it does not raise the cpu usage to 100% because that will definitely annoy the user :)
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

[11 Apr 2008] Re: SCUI Update!

Post by Allanon »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 11 Apr 2008 12:46:19 -0000

I know it's a bad practice, and it's absolutely against the Amiga philosophy, anyway thank you for the advise, :) When the core will be completed I will change this for sure, maybe I can still use this method calling the function with a timer event.

Regards, Fabio
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
Locked