Page 5 of 7 « First<34567>
Topic Options
#86439 - 2002-07-10 06:23 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
shawn,
the popup will change anyway.
but normal borders I do not want as they look ugly.

something like:
if visible history or visible buddyes don't minimize.
neither can this way user minimize it.

and then when post comes, it will only popup if it's minimized.
that also would be a goodie to make shorter... like 5 secs.
or just slide other form up saying:
new post:
blaa blaa (lonkero)
then make it wait 0.2 seconds and slide down.
this way the popup can't disturb so much.

cheers,
_________________________
!

download KiXnet

Top
#86440 - 2002-07-10 07:16 PM Re: Kixforms - BBChecker II
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ok - so I owe you:

1) OnGotFocus

2) OnLostFocus

3) OnMouseOver and OnClick open for HTML enabled labels ...

I would like to help you finalize your BBChecker ASAP because as you are developing, I'm converting / porting your stuff over to KIXFORMS-TNG ... which I've decided to make as BACKWARD COMPATIBLE to KIXFORMS as possible ... plus, you(we) can finally get rid of those embedded INLINE()/DOEVENTS() calls ... no need to worry about refreshes anymore!

In preparation for the conversion, can you test something for me ? I'm getting rid of the SCREEN object, eg:

$ScreenHeight = $Form.Screen.Height

and making it:

$ScreenHeight = $Form.ScreenHeight

in the new build. But this should already be implemented in KIXFORMS1 ... can you give it a shot ?

Top
#86441 - 2002-07-10 07:21 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
sure.
not in next 10 hours though (didn't have time to bring windows machine to home).

it actually is better as it's shorter and easier to remember dor ppl not used to jscript.

so, am I going to have other goodies too at the time of next build?
_________________________
!

download KiXnet

Top
#86442 - 2002-07-10 08:42 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
still, the variable where one can set the refresh loop...
I don't like someone needing to set variables.
I don't like ini's either.

if there has to be setup in tool that uses forms I think it has to be gui too.

but then again, I would add there also ability to do other settings too...

like bb address and version and...
and make it exe.
and post it on tucows.com or something similar. [Big Grin]

but, still.
main goal is to do a script for this bb exclusively.

about the xmlhttp... it will slow down progress of the devel of this version and I quess you don't want it to be released on winter.

anyway, it's pretty much in my head and the "release canditate" should be ready this week.

so, what is your schedule on tng?

if it's not in 3-6 months but sooner I'll sees my checker devel on the first canditate until I get some tng code from you to test.
_________________________
!

download KiXnet

Top
#86443 - 2002-07-10 10:29 PM Re: Kixforms - BBChecker II
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I hear yeah bud. plan is to continue enhancing forms1 until your satisfied with BBChecker2, then I would like the opportunity to port over to TNG ... but like I said, I'm kinda following along with you, as you develop it further ...

Sleep and options settings ? Maybe as a headstart, here's a bastardized version of the optionbox from that PiXaso Paint script a while back ... with a few mods for setting a sleep value ... guess you could save state in the Registry with an optionbox strategy ?

code:
break on

$sleep = 20

$form = createobject("kixtart.form")
$form.width = 300
$form.height = 300

$setup = $form.commandbutton("Options",,,75,25)
$setup.center
$setup.onclick = "Options()"
$setup.default = 1

$form.center
$form.show
while $form.visible
$=execute($form.doevents)
loop

?"sleep=" $sleep

exit 1

function options()

dim $form,$delay,$ok,$cancel
dim $okayed $okeyed = 0
dim $canceled $canceled=0

; Changes global variable $sleep

$form = createobject("kixtart.form")
$form.caption = "Options"
$form.width = 250
$form.height = 150

$form.printxy(20,20,"Enter delay value:")

$delay = $form.textbox($sleep,20,40,100,20)

$ok = $form.commandbutton("OK",150,20,75,20)
$ok.onclick = "$$okayed=1"

$cancel = $form.commandbutton("Cancel",150,$Ok.Bottom+10,75,20)
$cancel.onclick = "$$canceled=1"
$cancel.default = 1

$form.center
$form.show
while $form.visible and not $okayed and not $canceled
$=execute($form.doevents)
loop
if $okayed
$sleep = val($delay.text)
endif
endfunction

Actually, if one obeys proper Kixtart SCOPING rules, you can actually have TWO forms named $FORM ... a GLOBAL one, and a local one ... the UDF $FORM gets created and properly destroyed and recreated with each invocation ... but when doing this, have to insure that ALL $CONTROLS are dimmed LOCALLY to UDF ... else, no worky ...

Top
#86444 - 2002-07-10 11:27 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
I have to re-read your post...
but, the dimming, it's nothing but easy.
it can be hard for someone to understand what my script is doing, but that's normal [Big Grin]
_________________________
!

download KiXnet

Top
#86445 - 2002-07-10 11:30 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
yeah...
that looks ok.
but it feels strange for me to create options section with only one setting.

maybe something but it still seems awfull...
like I don't even understand wait times of 60 seconds or under 5...

and then can be dynamic wait time.
if last time it had change, update sooner. if not keep longer update time.

[ 10 July 2002, 23:31: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#86446 - 2002-07-11 04:53 AM Re: Kixforms - BBChecker II
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
okee-dokee Jooel, OnGotFocus and OnLostFocus is implemented ... was testing using this script:

code:
Break On

$Form = CreateObject("Kixtart.Form")

$Form.Caption = "Kixforms..."
$Form.Width = 300
$Form.Height = 200

$Form.OnGotFocus = '$$Form.Caption = "GOT FOCUS"'
$Form.OnLostFocus = '$$Form.Caption = "LOST FOCUS"'

$Exit = $Form.CommandButton("Exit",,,100,25)
$Exit.OnClick = "Quit()"

$Exit.Center

$Form.Show(1)

While $Form.Visible
$=Execute($Form.DoEvents)
Loop

Exit 1

As one shifts the keyboard focus from window-to-window, watch the Kixforms titlebar for focus change information ...

Kixforms available here:
Kixforms Build 19

Top
#86447 - 2002-07-11 05:37 AM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
so your owe list has changed.
some entries as taken away.
one need to add:
showState
_________________________
!

download KiXnet

Top
#86448 - 2002-07-11 08:52 AM Re: Kixforms - BBChecker II
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3164
Loc: Houston TX
A quick note about the $obj = createobject("microsoft.xmlhttp")

It comes with IE5.

code:
$Obj = createobject("microsoft.xmlhttp")

if @Error <> 0
exit(@error)
endif

$obj.open("GET", "http://www.yahoo.com", -1)
$obj.send
while $obj.readystate <> 4 sleep(0.2) loop

? $obj.responsetext

Bryce

Top
#86449 - 2002-07-11 08:55 AM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
so, does it work better with files than ie instance...

have to look. if it does, may skip the winhttp-part, or add support for both...

like install and if ie ver 5.0 or higher do not use winhttp...

I quess I have to test it now.

thanks bryce.
_________________________
!

download KiXnet

Top
#86450 - 2002-07-12 12:15 AM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
this is wonderfull.
trying to something what can't do.
the lines:
$ie=readvalue("HKEY_CLASSES_ROOT\htmlfile\shell\opennew\command","")
$=execute('$_Object.on_click="run '+"'"+substr($ie,2,len($ie)-2)+' "$_Target"'+"'"+'"')

produce a error:


mmm...
not going to give up.

if I leave some quotes of, the ie opens 2 windows.

[ 11 July 2002, 12:15: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#86451 - 2002-07-11 01:43 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
shawn, could you check the new one.

I can't get the ie to open just one window.
it opens two of them with the same address!

also, the popup style has changed a little. [Big Grin]

continuing...
_________________________
!

download KiXnet

Top
#86452 - 2002-07-11 03:59 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
shawn, can we get the window state info with build 19?
_________________________
!

download KiXnet

Top
#86453 - 2002-07-11 04:20 PM Re: Kixforms - BBChecker II
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel,

yip - will be adding $Form.WindowState to Forms later tonight ... was going to call it ShowState, but like you, changed my mind because WindowState is more VB .NET like ...

-Shawn

[ 11 July 2002, 16:21: Message edited by: Shawn ]

Top
#86454 - 2002-07-11 04:28 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
other thing...
how should the setfocus work?
or should it work at all?

trying my slider later with show, but could not get it to show with setfocus.
_________________________
!

download KiXnet

Top
#86455 - 2002-07-11 07:45 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
I don't know why but, for labels the onclick happens twice on click. but for buttons only seems to happen once.
that was the problem with my udf, did use onclick when it needed onmouseup.

thinking of applying the form now for setting the loop time but not much more can be done...

maybe also sendprivatemessage button...
_________________________
!

download KiXnet

Top
#86456 - 2002-07-11 07:51 PM Re: Kixforms - BBChecker II
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
well, I would "save some space" on your options form ... maybe for things like:

1) Enable/disable the auto-show/hide feature. Some folk might like the form to be always on top.

2) Turn "the beep" on/off

3) Maybe change the font - maybe add a splash of color down-the-road.

I'm just reaching here - I know - but different strokes for different folks.

[ 11 July 2002, 19:51: Message edited by: Shawn ]

Top
#86457 - 2002-07-11 07:54 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
shawnie...

if you would have any version from todays builds you would know that there is no autominimize.

the beep one... sounds good.
_________________________
!

download KiXnet

Top
#86458 - 2002-07-11 08:52 PM Re: Kixforms - BBChecker II
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22332
Loc: OK
shawnie, that does not somehow function properly.

check it. (same place)

cheers,
_________________________
!

download KiXnet

Top
Page 5 of 7 « First<34567>


Moderator:  Shawn, ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (adamlevine) and 165 anonymous users online.
Newest Members
katherinknul, phamthuy, xuantu075, skygreen2031, amelindarķe
17629 Registered Users

Generated in 0.184 seconds in which 0.119 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org