Page 1 of 1 1
Topic Options
#91144 - 2003-01-22 03:16 AM Kixforms Issues
KIXKicks Offline
Starting to like KiXtart

Registered: 2002-07-26
Posts: 177
Loc: Vancouver, WA
I am using the Kixforms 2.2.0.37. The issues I am having have occurred since I started using Kixforms, so in other words it is not a problem with this version of Kixforms but either a problem with Kixforms in general or more likely the way I am coding Kixforms.

Issue 1: The form loses focus when another program runs after the form is shown. Is there a way to keep the focus (active window)?

Issue 2: The form loses the information on it when another window pops up in front on it. At some point, Kixforms refreshes the window and the information is restored but it seems like it is a blank white window forever.

You probably want some code, ok here it is: sorry for the long labels...

code:
$FORMMAIN=CREATEOBJECT("KIXTART.FORM")
$FORMMAIN.SIZE=600,490
$FORMMAIN.BACKCOLOR=255,255,255
$FORMMAIN.SYSMENU=0
$FORMMAIN.TEXT="KiXtart Network Login Script 2.10"
$FORMMAIN.CENTER

$FRAMEWELCOME=$FORMMAIN.FRAME
$FRAMEWELCOME.SIZE=580,70
$FRAMEWELCOME.CENTER
$FRAMEWELCOME.TOP=0
$FRAMEWELCOME.TEXT="Welcome:"

This is just a section of the code...but I think it should be enough...

[ 22. January 2003, 03:18: Message edited by: KIXKicks ]

Top
#91145 - 2003-01-22 03:25 AM Re: Kixforms Issues
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See KiXForms: Always on top?
_________________________
There are two types of vessels, submarines and targets.

Top
#91146 - 2003-01-22 04:09 AM Re: Kixforms Issues
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
The blank form is symptomatic of the fact that there is only one thread of execution in a kixscript. In other words, at any given time your script can either be working the GUI (by calling properties and doing DoEvents) or performing a lengthy operation (like installing something). But not both at the same time. You see this white screen behavior even in some "real" windows applications.

Things you can do about it is (like jens said) apply the TopMost property or even Hide or Minimize the form while its performing these lengthy ops.

Im currently working an idea to create a special Kixforms version of the Shell command. One that will operate in a multi-threaded fashion and keep the GUI fresh and alive at the same time. All I can say about that is stay-tuned.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.135 seconds in which 0.071 seconds were spent on a total of 12 queries. Zlib compression enabled.

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