PDA

View Full Version : TAB Alpha Release 26



catventure
05-02-2008, 20:15
Hi,

A minor update today to the adventure project:

05 Feb 2008 (Release 26)
===========
* NEW Adventure Player now uses tb Statusbar commands.
* NEW Tab now uses icons in dialog window and Statusbar.
* Some minor fix.

http://tab.thinbasic.com/tab.zip (1.58mb)

Important: Latest preview 1.6.0.1 required.

*Also, Bundled version updated (TAB Player only + games to play; thinBASIC not required)

http://tab.thinbasic.com/tabdemo.zip (2.42mb)

Regards,
catventure.

matthew
06-02-2008, 06:35
Nice update cat :)

catventure
06-02-2008, 12:02
Hi Matthew,

Thanks for checking it out.

Could you, or anybody else for that matter, please tell me if the statusbar icons are appearing in the TAB Player when it is run?

http://tab.thinbasic.com/tabdemo.zip

Reason I'm curious is that I just downloaded the bundled version of TAB Player and ran it on a Windows Vista Home Premium machine that does not have thinbasic installed just to check it out, and although Dialog Set Icon OK, and Statusbar set text Ok, the Statusbar icons (the ones in Icons folder) are not showing up...

Don't know if problem with my code, bundled obfuscated script or issue with Vista Home Premium.
I should add it works perfectly on my Windows Vista Home Basic; but then I also have latest preview thinbasic 1.6.0.1 installed....

The icon sizes used for the dialog window was 32x32 whereas the ones used for statusbar icons are 72x72

I'd be grateful for any feedback or findings to this end.

Thanks,
catventure.

Michael Hartlef
06-02-2008, 14:31
On WinXP Professional here at my job it shows the icons fine.

Petr Schreiber
06-02-2008, 14:33
Hi,

thanks for nice update, TAB now got really nice look!
Also good idea to rename directory with games.

All seems working fine here, but I have XPs SP2.

I cannot find icons of 72x72 size, only 32x32 and 16x16 in both source and binary TAB distributions.

If you tried 72x72 and it did not worked than it is probable, as I think 32x32 is recommended size I think ( citation needed, but could not find one :) ). You could try 64x64, as it is power of two, which could matter ... for some reason, but this is wild guess.

It is pretty weird if script runs ok on Vista Home and not on Vista Premium, that would mean there are big differences internally between those two systems, which is thing I would not expect.


Thanks,
Petr

catventure
06-02-2008, 15:06
Good, Petr & Michael. I am glad it is working OK on yours as expected.
I think Eros used 128x128 for his example richedit002 script. Anyhow, not sure if size is the problem at all.
I will d/load the bundled demo again on the Home Premium machine and try again to see if any change or if I can fathom out a solution as to why the discrepancy persists.

Thanks again,
catventure

ErosOlmi
06-02-2008, 16:12
Hi all,

I will check this evening when at home.

Maybe the problem is when .ICO files are used.
Can you please see if using ProgressBar script example is working with Windows Vista Home Premium?

Ciao
Eros

matthew
06-02-2008, 16:22
Last week my XP laptop finally stopped working so I brought a new one which came with 'Vista Home Premium'.

I've attached an image of what the the tab player looks like when run.

I should also add that the bundled script and thinbasic script both look the same when used on my computer.

ErosOlmi
06-02-2008, 16:28
Great picture Matthew :D

Catventure, I noted in your source that when you handle %WM_SIZE message you also resize status bar.
The new native StatusBar control automatically adjust to window size, so there is no need to change size manually.
This should not be related to icon problem but increase window flickering.

I'm also checking your code to see if it could be possible to use CONTROL RESIZE ... to automatically adject controls position and size instead of handling %WM_SIZE.
Anyhow, thanks a lot to keep TAB updated with the latest UI additions. You are doing a great work for us!

Ciao
Eros

matthew
06-02-2008, 17:15
Great picture Matthew :D

Lol :D

Now I've got my new computer I want to show people how good it looks. 8)

catventure
06-02-2008, 19:50
Hi, Matthew.

Thanks for pic. Yes that is how it should be. Good.

@Eros
I have discovered the answer as to why icons not appearing on the statusbar... The 3 freeware icons I downloaded for use on the statusbar were flagged by Windows Vista Home Premium and also Vista Home Basic (and probably all versions of Vista) as coming from another computer and therefore might represent a potential threat. If used in applications like TAB they may get "blocked" by Vista depending on the security settings used and thus *may* not show up on the statusbar.

The answer to this was to "unblock" these icons as being safe to use by right-clicking the icons in question and selecting "Properties" and applying the "unblock" so that Vista will now use them without problems.

I have done this to the affected icons and uploaded a replacement tabdemo bundle and will do so for source scripts also. That should take care of that! :)

I have also deleted the unnecessary statusbar resize commands as you pointed out and it works OK without them as you rightly said. Thanks.

catventure

catventure
06-02-2008, 21:16
Well I was SO sure that would have solved the undisplayed icons - but NO! They still do not appear on the statusbar in the Vista Home Premium machine I tested it on!

Now I have come to the conclusion that the 'block/unblock' properties factor is not the reason for the no-show...

I made a duplicate of the 'traffic light' icon used in the dialog titlebar (see matthews pic above) and found I could get this 32x32 icon to show on the statusbar in the Home Premium version... So I'm thinking the problem is with the SIZE of the icons. The others are 72x72 and those are the ones not being displayed - so Petr's theory may be right on this... but that still does not explain why I and others (eg: matthew)CAN see these 72x72 icons on the statusbar in Xp, Vista Home Basic, Home Premium etc..

Will need to investigate further.

catventure.

catventure
06-02-2008, 23:18
Hi,

Problem resolved.

I downloaded a free icon editor from:

http://icofx.xhost.ro

Very nice too it is :)

I've changed all the icons TAB uses to 32x32 - 256 colours to be safe and re-uploaded the TAB files to the site.

That seems to have done the trick.

I'm pleased to report that the icons now show up on the particular Vista Home Premium computer I was testing on at long last

Eros: I'm glad to know it was not a problem with thinbasic, statusbar or tab code but with the dimensions and depth of the icons themselves... :)

catventure.
PS. Check out that Icon editor - could be useful.

catventure
07-02-2008, 17:40
Maybe the problem is when .ICO files are used.
Can you please see if using ProgressBar script example is working with Windows Vista Home Premium?



Hi Eros,
Sorry for delay. Had to get permission to install thinbasic on the person's Vista Home Premium....

It is a similar problem. The icons do not appear in Statusbar in the ProgressBar script example on this particular machine... They are 128x128.
No doubt reducing the dimensions of the icons will eliminate the problem - although it strange that works Ok on mine.

catventure.

Michael Hartlef
07-02-2008, 19:35
It is indeed strange.