PDA

View Full Version : AutoSkinControl questions


John Perkins
04-09-2005, 02:10 PM
In the AutoSkinControl section of the tscript docs:

The following specifies how regions stretch and what sub-controls are hooked to what colors…
SetStretchyRegion(uchar R, uchar G, uchar B, char* stretchDesc, char* controlDesc)
stretchDesc: use "h", "v", "hv", or "0". No need for quotation marks
controlDesc: looks for the characters
Examples:
SetStretchyRegion(255,255,255,hv,0)
SetStretchyRegion(71,193,130,h,m)
SetStretchyRegion(31,23,29,0,c)
SetStretchyRegion(9,0,178,0,ul)

controlDesc is not found anywhere else in the doc.

What do these do and what are the options?
It looks like "c" is for close, but how are these defined and can you define your own?

Thanks

John Perkins
04-13-2005, 01:28 PM
I got the answer:

The docs don't say what ul, c, m, 0 etc are.
UL = drag upper left
L = drag left
R = Drag right

C = close gadget
M = move (drag with mouse
0 = no effect (null)
H = horizontal stretch area
V = vertical starch area
HV = both directions stretch area



We should really try to post answers to our own questions too. That way others can find the info quicker.

PIZAZZ
04-13-2005, 05:09 PM
I got the answer:

The docs don't say what ul, c, m, 0 etc are.
UL = drag upper left
L = drag left
R = Drag right

C = close gadget
M = move (drag with mouse
0 = no effect (null)
H = horizontal stretch area
V = vertical starch area
HV = both directions stretch area



We should really try to post answers to our own questions too. That way others can find the info quicker.

I laughed out loud when I saw your last sentence. It seems us 3rd party guys have a very small 3rd party. Let's get together in Vegas if you are coming.

John Perkins
04-13-2005, 05:39 PM
I'm just digging into this so a lot of the things I get stuck on are simple. The sad thing is that it isn't written down anywhere, so I fIgured this was as good a place as any.

I'm not going to NAB this year, I decided at the last minute to make a few dollars rather than spending even more.

You guys have fun and buy Aussie and Andrew a couple of shots for me. Their nerves will be shot. Blame it on of all my tscript and SDK questions.