PDA

View Full Version : Dialog gradient background



ErosOlmi
18-01-2008, 15:44
ATTENTION: use only if you have already installed current thinBasic preview version 1.6.0.1
_________________________________________________
Here another experiment: gradient backgrounds in window client area.
Attached new modules to substitute your current one (thinCore.dll in \thinBasic\ dir and thinBasic_UI.dll in \thinBasic\Lib\ dir) and a test script.
Dialog gradient is persistent so something like "set it and forget it"

Let me know.
Eros

UPDATES:

reduced flickering



UPDATES:
Attached file removed. Functionality now present in current thinBasic preview version 1.6.0.1

Petr Schreiber
18-01-2008, 19:43
Hi Eros,

works very well here.
Only minor problem is flicker during resizing, but rest is fine.


Thanks,
Petr

ErosOlmi
18-01-2008, 21:25
Yes, you are right. I didn't notice on my laptop because it is too fast but on home computer it is very bad.
I've updated above attached file. This version should be flicker free.

Ciao
Eros

Petr Schreiber
18-01-2008, 23:37
Fantastic job,

now it is as smooth as the image samples.


Thanks a lot,
Petr

kryton9
19-01-2008, 00:01
Worked very well maximized and normal window!

Michael Hartlef
19-01-2008, 08:09
Eros, is the mirrored version of TB not uptodate? I get a missing token error about GRADIENT.

ErosOlmi
19-01-2008, 08:24
Yes, it is updated but you need to replace thinCore.dll with the one attached in the forst post of this thread.

All those new features (gradient, splitter bar, others will come) are developed separatelly. They will be together only when a new preview will be released. So, in order to test them you need latest official preview plus the files I attach. I know, it seems confusing, but I'm developing many new things. Sometimes I made a lot of changes just to discover lately that I need to go back and restart again. In order to not bad influence main engine, I keep them separated. The thinCore.dll attached into SplitterBar tests is not the same as the one in this thread. The same for thinBasic_UI.dll. You need to replace always the one I attach. Pro/Cons, you know.

When features will be released officially, I usually remove all those attached different versions.

Let me know.
Eros

Michael Hartlef
20-01-2008, 22:39
Weird, as I run it directly from the directory and usally it loads the modified core and ui first. With the splitter
control it work.

Michael Hartlef
20-01-2008, 22:41
I guess only the libs inside the LIB folder behave like that. CORE will be allways loaded from the main folder first.

P.S: It works great!

ErosOlmi
20-01-2008, 22:56
Yes, thinCore.dll is always loaded from the directory where thinBasic.exe or thinBasicc.exe are located. It is static linked into the exe so it is Windows that takes care on how to load it. Usually Windows check first the EXE folder than search all along the %PATH% list.

All other modules have a dynamic loading logic managed from inside thinCore.dll. Is thinCore.dll that takes care of modules loading.
Loading sequence is described here: http://www.thinbasic.com/public/products/thinBasic/help/html/uses.htm

If your script uses UI module, it first try to load from the script directory. So if you place thinBasic_UI.dll in your script directory it will be loaded from there and not from \thinBasic\Lib\

Maybe not simple at first but it save what is commonly called dllhell

Ciao
Eros

ErosOlmi
21-01-2008, 16:53
UPDATES:
Attached file removed. Functionality now present in current thinBasic preview version 1.6.0.1