LonkeroAdministrator
(KiX Master Guru)
2002-06-14 10:09 PM
kixforms - form positioning

shawn, is there a way to get form positioned just up from taskbar?

ShawnAdministrator
(KiX Supporter)
2002-06-14 11:56 PM
Re: kixforms - form positioning

Good question ... thats the neatest one I've heard yet. No, not that I know of. In fact, I can't ever recall a Windows app actually ever attempting to do that (anyone?) ...

The $form.screenheight and $form.screenwidth methods get you the physical screen dimensions (in pixels) and I suppose you could do some math and take "a guess" at where the taskbar might start. But if the user doubled the height of their taskbar - that may screw you up nicely, yeah ?

[ 18 June 2002, 12:35: Message edited by: Shawn ]


ShawnAdministrator
(KiX Supporter)
2002-06-15 12:55 AM
Re: kixforms - form positioning

Just had another thought Jooel, wonder if any of the TaskBar state information is contained in the registry ? Like a desktop state setting ?

LonkeroAdministrator
(KiX Master Guru)
2002-06-15 01:26 AM
Re: kixforms - form positioning

it has to be somewhere...
as an example, F-secure uses notification window which slider from the middle of the taskbar to just be over it.
it is shown for a while and then it slides back away.
if I've understood correctly they use java to code their apps, but still, they need to get the info from the machine...

it should be somewhere under HKCU if it's in registry...
as I think you shot correctly. it seems to be the place to search for the size value.
will hace to set up my new SMC card's kernel mod tomorrow to be back with 200Mb on my private lan.
then will start digging this up.

this just crossed my mind when thought of getting my bbchecker to new level of kix and -forms
the old one used ie and was buggy as...
have also so many new methods I'd like to investigate and BBchecker is so good for those thingies.

cheers,


ShawnAdministrator
(KiX Supporter)
2002-06-15 01:40 AM
Re: kixforms - form positioning

I have to wonder, is F-Secure IN the taskbar, or OVER the taskbar ?

LonkeroAdministrator
(KiX Master Guru)
2002-06-15 01:52 AM
Re: kixforms - form positioning

I don't know have you seen this kind of thingie.
it looks like it arises from the upper border of the taskbar.
like the start menu when sliding animation is on.
it can't be IN the taskbar.

I was thinking, isn't one able to get the current ie window size?
like, if you maximize it and read the height it will be screenheight-taskbarheight, right?
can this be done?
and still with hidden IE (visible=0) ?

it would be nice to have little bar of our own in the upper right corner of the taskbar.
in bbchecker there would be shown last submitted post and when wanted, could open ie window with that thread or open other form which shows some last 20 active topics on bb...
this would easy up the triggering to posts when they appear on bb if you are as an exampe, working at the same time...


ShawnAdministrator
(KiX Supporter)
2002-06-15 02:00 AM
Re: kixforms - form positioning

Yeah, think I know what you mean - I use (and love) that lightweight taskbar MP3 player thingy from MS - I chucked MediaPlayer and RealAudio out the window ... Anyways, there are buttons on the taskbar, and when you click on one of the buttons, a PLAYLIST pops up from the top of the taskbar ... slick ...

The maximize thingy ? Yeah, that would work in theory, so one would create a form, keep it HIDDEN, then MAXIMIZE it, then subtract the form HEIGHT from the SCREENHEIGHT, resize the form and make VISIBLE ... hmmm ...

{EDIT}

Can't think of a way to maximize the form though.

[ 15 June 2002, 02:04: Message edited by: Shawn ]


ShawnAdministrator
(KiX Supporter)
2002-06-15 02:05 AM
Re: kixforms - form positioning

I could ADD a function to maximize, if you want [Wink]

LonkeroAdministrator
(KiX Master Guru)
2002-06-15 02:18 AM
Re: kixforms - form positioning

thanks.
I was thinking as teasing the bad old ie.application for this.
creation invisible ie window is not that heavy on machine and it would not need to be killed either but the height value could be checked every 5 seconds...

mmm...
this is too tricky...
I'm just starting my laptop and will see if I can find the reg-entry for this hight value...


ShawnAdministrator
(KiX Supporter)
2002-06-15 02:22 AM
Re: kixforms - form positioning

Yeah, actually, you might have to try the ie thingy. One can MAXIMIZE a window when it gets shown, eg,

$form.show($MAXIMIZED)

or maximize a visible window, but having a tough time figuring out how to MAXIMIZE an invisible window, hmmm ... One of the MSDN articles I was reading posed the question ...

"What happens if the user has their taskbar at the TOP of the screen" [Wink]

-Shawn

Howard is being usually quite tonight - that makes me nervous [Wink]

[ 15 June 2002, 02:23: Message edited by: Shawn ]


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 02:35 AM
Re: kixforms - form positioning

mm...
nothing, then it is just displayed at heigth of the taskbar from the down as usual...

is this an issue... don't think so...

problem is that when after taking reg images before and after the taskbar resize compared the files and the difference is in hex code!

so can't be used without knowing what should be looked for...


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 02:39 AM
Re: kixforms - form positioning

mmm...
howie is one I can't make sense of...
(and cj is other one)

maybe he's predicting the weather with some new app and 'cause of that keeps his brains stucked on the issue, can't be alive to the rest of the world...


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 02:46 AM
Re: kixforms - form positioning

heh, looking from other thread shows up he is, should I say drinking something good and having a time of relaxation [Big Grin]

ShawnAdministrator
(KiX Supporter)
2002-06-15 02:49 AM
Re: kixforms - form positioning

Howard is a great guy ... smart too ... but don't tell him I said that, ok ?

[ 15 June 2002, 02:49: Message edited by: Shawn ]


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 02:51 AM
Re: kixforms - form positioning

I promise!
everything that you post to this thread is just between you and me [Roll Eyes]

have anything else deep and private you wanna talk about?


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 03:27 AM
Re: kixforms - form positioning

I was thinking of if mix is needed and didn't find use for it in my mind but with fullscreen option, that is different.
to have a kix installer script which simpler to kix coders to create than more complex installers which have been made for application developers.
fullscreen picture with sticky bit allways on top would give users text, images and such.
well. maybe easier to use ie...

have to test the forms functionality currently available before I can say what I need more.
but sure, I need more.
when having a editor as an example there should be system menus for open save and such to create the feeling of normal win app.
well.
not anymore just winapp.
I'm curious how this stuff could be also used to rock the unix-like systems such as linux.

remember, when java arrived, it was talked about of being the future for sw-writers but no thanks.

the c/c++ is portable to almost everywhere and even though it needs to be ported, its faster and more stable.
huh.
don't know anymore where my brains are going. too long work days this week have made me a tomato.
when re-reading my own post can't even myself keep track on what I'm mumbling about...


Les
(KiX Master)
2002-06-15 03:33 AM
Re: kixforms - form positioning

If you resize the taskbar, these are the reg writes.

1 22.05068829 explorer.exe:984 SetValue HKCU\SOFTWARE\MICROSOFT\Windows\CURRENTVERSION\Explorer\StuckRects2\Settings SUCCESS 28 00 00 00 FF FF FF FF ...

2 22.05348780 explorer.exe:984 SetValue HKCU\SOFTWARE\MICROSOFT\Windows\CURRENTVERSION\Explorer\Streams\Desktop\Taskbar SUCCESS 0C 00 00 00 08 00 00 00 ...

3 24.30736281 explorer.exe:984 SetValue HKCU\Software\Microsoft\Internet Explorer\Desktop\Components\0\Position SUCCESS 2C 00 00 00 2C 01 00 00 ...

4 24.30742846 explorer.exe:984 SetValue HKCU\Software\Microsoft\Internet Explorer\Desktop\Components\0\CurrentState SUCCESS 04 00 00 C0

5 24.30750081 explorer.exe:984 SetValue HKCU\Software\Microsoft\Internet Explorer\Desktop\Components\0\RestoredStateInfo SUCCESS 18 00 00 00 10 03 00 00 ...

6 24.30785952 explorer.exe:984 SetValue HKCU\Software\Microsoft\Internet Explorer\Desktop\Components\GeneralFlags SUCCESS 0x5


Les
(KiX Master)
2002-06-15 03:35 AM
Re: kixforms - form positioning

So Shawn, is tonite the nite you break 3K? It's been a slice sharing the MM with you. I will catch you sooner or later. Maybe in MMM. [Big Grin]

LonkeroAdministrator
(KiX Master Guru)
2002-06-15 04:01 AM
Re: kixforms - form positioning

les, yes they are.
but they are hexacodes and how do you know what is the size stuf in it and how to interprete it?


ShawnAdministrator
(KiX Supporter)
2002-06-15 04:16 AM
Re: kixforms - form positioning

No, im going to retire at 2999, then Im going to create a new account called OLE-Fart and start posting under that [Wink]

{EDIT}

Don't make a big deal about me hitting 3000, 500 of those posts was playing KiXGolf last weekend.

[ 15 June 2002, 04:21: Message edited by: Shawn ]


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 04:19 AM
Re: kixforms - form positioning

mmm...
howard is reading this thread but not posting anything...


Howard Bullock
(KiX Supporter)
2002-06-15 04:26 AM
Re: kixforms - form positioning

I'm here, but not sur {{edit} now I'm slurring my typing.} what post. I do appreciate the earlier compliment.

[ 15 June 2002, 04:32: Message edited by: Howard Bullock ]


LonkeroAdministrator
(KiX Master Guru)
2002-06-15 04:43 AM
Re: kixforms - form positioning

shawn...
found this one:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconsysinfoscenario2adjustingtochangesinscreensizeresolution.asp

for VB


ShawnAdministrator
(KiX Supporter)
2002-06-15 04:55 AM
Re: kixforms - form positioning

I didn't write any event handlers for that in Kixforms. I was thinking about it, but decided that would hardly ever happen. You know, when you resize the desktop, or change the Windows color/font scheme, Windows sends a notification to all the running apps, and they supposed to rescale and adapt accordingly, yeah ...

LonkeroAdministrator
(KiX Master Guru)
2002-06-16 02:04 AM
Re: kixforms - form positioning

I checked some of those reg binarys...
anyone under IE keys are not consistent.
can't trust it.

under streams\desktop is info about quicklaunch and such so abandoned that one.
under stucrects2 (stucted rectangles?) there is change that caught my eye.
changing the taskbar in height of 1,2,3,4 and five lines returned:
30,55,80,105,130

I think this is the entry.
if you look at it in regedit it's third line and fifth element.
can't post image now since using linux.

if someone could check this out and verify this is giving the same value for them.
I'll then make it into nice little udf!

cheers,


Les
(KiX Master)
2002-06-16 04:25 AM
Re: kixforms - form positioning

Jooel,
I get different values. 1e 37 50

1 Lines - "Settings"=hex:28,00,00,00,ff,ff,ff,ff,02,00,00,00,03,00,00,00,3f,00,00,00,1e,00,00,00,fe,ff,ff,ff,e4,03,00,00,02,05,00,00,02,04,00,00
2 Lines - "Settings"=hex:28,00,00,00,ff,ff,ff,ff,02,00,00,00,03,00,00,00,3f,00,00,00,37,00,00,00,fe,ff,ff,ff,cb,03,00,00,02,05,00,00,02,04,00,00
3 Lines - "Settings"=hex:28,00,00,00,ff,ff,ff,ff,02,00,00,00,03,00,00,00,3f,00,00,00,50,00,00,00,fe,ff,ff,ff,b2,03,00,00,02,05,00,00,02,04,00,00

Screen = 1280 x 1024


LonkeroAdministrator
(KiX Master Guru)
2002-06-16 04:58 AM
Re: kixforms - form positioning

sorry, forgot to mension.
did not use it the way you did.
i use decimal values.
try with:
$x=readvalue(the key dont remember,"stuck2")
$x=substr($x,41,42) ;maybe not correct. check
? val("&$x")

memorizing the values i have in there. laptops battery is dead...


Les
(KiX Master)
2002-06-16 05:10 AM
Re: kixforms - form positioning

You're a bit off with the code, but the following yeilds the same results you posted.

break on
$RegLoc = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"
$x=readvalue($RegLoc ,"Settings")
$x=substr($x,41,2) ;maybe not correct. check
? val("&$x")
get $_


LonkeroAdministrator
(KiX Master Guru)
2002-06-16 05:19 AM
Re: kixforms - form positioning

good.
so I thought.
so will use it as world wide truth of getting the required info.


cj
(MM club member)
2002-06-17 08:29 AM
Re: kixforms - form positioning

What did I do.. hey, you have no evidence.. Did I comment that code? I am like the Candyman, but if you say my name once, I hear [Big Grin]

cj


LonkeroAdministrator
(KiX Master Guru)
2002-06-17 09:04 AM
Re: kixforms - form positioning

CJ (trying...)

LonkeroAdministrator
(KiX Master Guru)
2002-06-17 09:05 AM
Re: kixforms - form positioning

I did not quite follow that "did I comment that code" thing...

cj
(MM club member)
2002-06-18 02:30 AM
Re: kixforms - form positioning

haha, I was joking. I noticed my name in yoyur post and was saying that I didn't do it [Big Grin]

cj


LonkeroAdministrator
(KiX Master Guru)
2002-06-19 09:31 PM
Re: kixforms - form positioning

ok shawn...

no we have udf which can get me the taskbar info.
so, I query the height and side and desice where to popup or slide the checker window.

but, can I hide the system bar in form-window?
it has to have no other thing than little room for text and button for opening ie.
or hyperlink the text (possible?) in such way that it opens ie in that thread...

so no bars nor extra borders...


ShawnAdministrator
(KiX Supporter)
2002-06-19 09:46 PM
Re: kixforms - form positioning

Hey Jooel, might try this style:

$form.borderstyle = 0

-Shawn


LonkeroAdministrator
(KiX Master Guru)
2002-06-19 10:00 PM
Re: kixforms - form positioning

you seem to be checking for your name -> shawn <- cause you post when someone says it, otherwise pretty silent.

ok, I'll try it out.

cheers,


ShawnAdministrator
(KiX Supporter)
2002-06-19 11:39 PM
Re: kixforms - form positioning

Jooel, I'm not checking for my name, my friend. Im involved in a relatively serious production problem at work right now. Been working on it since Sunday night, straight through to today, without much sleep. I've been checking the board on and off, whenever I get a free minute. So haven't been too active over last few days.

[ 19 June 2002, 23:40: Message edited by: Shawn ]


LonkeroAdministrator
(KiX Master Guru)
2002-06-20 12:13 AM
Re: kixforms - form positioning

sad.
well, I'm drinking beer for you!

just tomorrow and then will be out of work and town and this BB for 4 days...

ah, holidays!


NTDOCAdministrator
(KiX Master)
2002-06-20 03:34 AM
Re: kixforms - form positioning

Don't you dare take a Holiday Lonkero. Your post rating will take a dive. [Eek!]

How will you pass Les by the end of July if you take vacation?


LonkeroAdministrator
(KiX Master Guru)
2002-06-20 10:26 AM
Re: kixforms - form positioning

doc, I surely am sad about that.
and probably you will get ahead of me too!
tomorrow maybe...

but, you see, we have this thing called juhannus.
it's pagan celebration and can't be just at home.
I'm going to drink something, which color is the same as the waters color, and as much as I normally drink water. you get the picture.
so, I can't be posting here (it'd be catastrophy!)

I don't even have to drive, cause my little brother is my driver starting from this evening.
yippiyayee!

anyway, be sure that I'm coming back with lots and lots of posts to offer!

cheers,