Page 1 of 2 12>
Topic Options
#91352 - 2003-02-05 10:48 PM Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Ok... so I am trying to build a form using kix forms just to take some user input. Things like username, password... basically all text input. I would also like to use a combo box that I populate the options from an ini file. Is this possible. I understand the basics about how to get the form visable but I dont know how to take input from it or use things like ** for passwords... can anyone point me to any good scripts that I can cheat from? Thanks in advance for your help. Also if you have any ideas you have done before and can copy to this message I would really appreciate it.

Have a good day.
_________________________
Austin Henderson

Top
#91353 - 2003-02-05 10:50 PM Re: Fun w/KixForms
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See for example http://www.kixforms.org/archive/index.htm

[ 05. February 2003, 23:00: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#91354 - 2003-02-05 10:55 PM Re: Fun w/KixForms
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Austin,

Have you looked at the User/Network Management tools from Ben?

http://www.rgcweb.org/kix/

Is this what are looking for?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#91355 - 2003-02-05 10:56 PM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Looking through the archives on kixforms right now.. will look at this link as well.

Thanks!
_________________________
Austin Henderson

Top
#91356 - 2003-02-06 11:54 PM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Trying to use a txt box to accept a date field.. is there anything like a calendar that I am missing or is there any way to verify the date that was entered is in fact a valid date that anyone knows?

Thanks for the help in advance.
_________________________
Austin Henderson

Top
#91357 - 2003-02-07 12:24 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I am not sure if I can post this correctly or not.. here is a sample of the code.

code:
$lblleft = 10

$Form = CreateObject("Kixtart.Form")

$fradetails = $FORM.Frame("Query Details")
$fradetails.HEIGHT = 265
$fradetails.Left = $fraLeft
$fradetails.TOP = 95
$fradetails.WIDTH = 355

$lblCurProcess = $fradetails.Label("Calling RAND to calculate routes...")
$lblCurProcess.HEIGHT = 19
$lblCurProcess.WIDTH = 300
$lblCurProcess.Left = $lblleft
$lblCurProcess.TOP = 170

What I am trying to do is within the function that is called from this form (not shown) I want to use $lblCurProcess as a status indicator. Basically I want to change the text... well whenever I try to change it it is printing under "Query Details" as well as in the correct position... any thoughts on why this is? Can post more code if needed.

Thanks
_________________________
Austin Henderson

Top
#91358 - 2003-02-07 12:31 AM Re: Fun w/KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hi Austin,

You dont show it but are you using the Text property of the label to change the message ? for example:

code:
Function OnSomeEvent()

$lblCurProcess.Text = "Doing something..."

EndFunction



[ 07. February 2003, 00:32: Message edited by: Shawn ]

Top
#91359 - 2003-02-07 03:34 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Thanks Shawn.. I guess I just was confused.. I was using
code:
 $lblCurProcess		= $fradetails.Label("Calling RAND to calculate routes...") 

To change the text...

I will use the correct method now.. ; )

Any ideas about the screen going white like that while the other process is running? I can switch between other apps and no problems... I would say that I could set a property of the form but since I am using shell and need to because I need to wait for the program to complete before moving on.. I can do that.

Anyways thanks so much.
_________________________
Austin Henderson

Top
#91360 - 2003-02-07 04:21 AM Re: Fun w/KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
The white screen thingy is more a problem with Kixtart than with Kixforms ... because we have to use the "shell" command (and the shell command waits for the process to finish) and because there is only one thread of execution in a kixscript ... the GUI refreshing suffers.

To solve this, i have started working on a Kixforms version of the SHELL command - it behaves just like the Kixtart shell command except that it also keeps the form fresh and alive. Its already been coded but needs some more work and testing, it looks like this:

$rc = $Form.Shell("%comspec% /c dir *.*")

Thats the current way anyways - all I can say about this is stay tuned for the next release.

-Shawn

Top
#91361 - 2003-02-07 04:49 AM Re: Fun w/KixForms
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Shawn... Will your Shell, mimic the functionality of WSHPipe(). Lonk was looking to do something like that.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#91362 - 2003-02-07 04:57 AM Re: Fun w/KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
You mean have the ability to redirect stdout to a internal array, or into a property that returns an array, to be read back into the script ?
Top
#91363 - 2003-02-07 04:57 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Wow.. Shawn that would be great.. I will stay tuned.. is there a mailing list I can subscribe to for KixForms?

Also is there an editor for kixforms that is graphical.. any talk of one?

Thanks and GOOD WORK
_________________________
Austin Henderson

Top
#91364 - 2003-02-07 04:14 PM Re: Fun w/KixForms
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The best KiXForms Mailing list is the KiXtart BBS with the BBChecker Add-on [Wink]

And, yes, there's the Visual KixForms Designer Version 0.9.

[ 07. February 2003, 16:15: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#91365 - 2003-02-07 05:33 PM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I love it.. ! Very sassy...

Ok next forms question. Got everything working like a charm just wondering how I might do something that I just thought of. I am using this app for reporting out of SQL. I am writing the report to a txt file then opening the txt file with notepad. Wondering if I might be able to return that text file to a form so that it isnt just running in word.. would look nicer I think... any thoughts on that one? How would I control print dialog or save dialog?

Also anyone ever seen anything like a calendar deal where I can use a data field but allow user to see calendar to pick?

Just thiking out loud.

Thanks for the dialog so far.
_________________________
Austin Henderson

Top
#91366 - 2003-02-09 07:16 PM Re: Fun w/KixForms
Crazy Eddie Offline
Starting to like KiXtart

Registered: 2002-11-20
Posts: 105
Loc: Sacramento, CA USA
Shawn,

Having the full functionality of this would be AMAZING:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wslrfscriptexecobject.asp

The key is (as I see it) having sperate properties for STDIn and STDErr. If KIXFORMS could provide this, it would overcome a MAJOR limitation I see in Kix vs. VBS/WSH. Most all Kix wrappers for VBS/WSH seem to be related to this limitation. Also, most KIX shell command piping output to files then reading the files are also related to this limitation.

Also, about the calendar control that has been asked for, perhaps this stuff would make sense to you:

http://home.att.net/~geekStuff/wshCreatingControlsOnTheFlyPage.htm

It seems that you could hook comctl32.dll to display the calendar. Since Version 4.70 (IE 3.x or better), it is available. See this for details:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/monthcal/monthcal.asp

NOTE: I don't know enough about this stuff to know how hard it is, or if it is worth including in KixForms.DLL. I am just finding what appear to be relavent links that look attractive as a potential user of the capabilities. Please excuse any ignorance displayed on my part. [Smile]
_________________________
{Insert your favorite Witty Tag Line here}

Top
#91367 - 2003-02-09 10:48 PM Re: Fun w/KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Crazy - no, your not crazy at all. Les and I were just discussing this Kixforms version of WSHpipe today ... in fact, its not a matter of IF - but of WHEN this will happen. It will kill two birds with one stone actually .. the "white screen" problem and the piping feature.

In terms of the calendar control - this is just yet another control that can be implemented.

-Shawn

Top
#91368 - 2003-02-10 12:05 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I like the direction I see this conversation headed... you say for the calendar it is yet another control.. is there a way I can do it now?

Regarding the shell thing I will look forward to when that is supported.

Thanks for the converstation.
_________________________
Austin Henderson

Top
#91369 - 2003-02-10 12:22 AM Re: Fun w/KixForms
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Austin,
While I haven't looked into the comctl32.dll yet, if you were to download the Type Library Viewer from http://www.itripoli.com/typelib.htm you should be able to expose the properties and methods.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#91370 - 2003-02-10 02:03 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Downloading it now... thanks so much for the help thus far.. will try to figure it out.

Later
_________________________
Austin Henderson

Top
#91371 - 2003-02-10 02:11 AM Re: Fun w/KixForms
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Sorry to ask a dumb question but this type viewer says that it does not contain valid type information when I try to open comctl32.dll. Am I doing something wrong? If so how should I use the viewer?

Thanks
_________________________
Austin Henderson

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 1003 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.072 seconds in which 0.026 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