»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 05-03-2004, 06:18 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 4
SWarrior2k is on a distinguished road
Kids DVNT1 ?? RE: wshLWForm & Turning on chkBox by Default

A while back, you had posted in the TechIMO forum about your find of "wshLWForm" I have been using this for a little while. The original support site has been taken down. This must have happened recently. I was wondering if you might be able to assist me with something that I can't figure out. I know how to have a default option set for the 'optBtn' but can not get a chkBox to default with a check mark in it. I was HOPING that you might be able to help me with this.

Many Thanks in advance if you could help.

-SWarrior

SWarrior2k is offline   Reply With Quote
Old 05-03-2004, 06:23 AM   #2 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Adelaide, Australia
Posts: 5,267
Mickwish is on a distinguished road
I'll send DVNT1 a PM so he sees this post, and hopefully he can help you.

Cheers
Mick

edit: after finding the original thread, also sent a PM to vass0922. He might know, too.

Oh, and BTW, Welcome to TechIMO!
__________________
Testing, testing....

Last edited by Mickwish; 05-03-2004 at 06:34 AM.
Mickwish is offline   Reply With Quote
Old 05-03-2004, 06:58 AM   #3 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
Here's an example:
Code:
Const vbUnchecked = 0  ' Unchecked
Const vbChecked = 1  ' Checked
Const vbGrayed = 2  ' Grayed (aka disabled)

  Call Create_TestFormObject_Form

  Set oForm = oLWF.frmDialog
        
  ' attempt to pre-set a check into the checkbox...
  ' check boxes 1&6...
  oForm.chkBox(1).Value = vbChecked
  oForm.chkBox(6).Value = vbChecked
It's dissappointing about the support site being discontinued, I still use this tool too.
DVNT1 is offline   Reply With Quote
Old 05-03-2004, 07:45 AM   #4 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 4
SWarrior2k is on a distinguished road
Excellent!

Is there a way that you can 'Disable' a Checkbox ? Can't find any information outside of the:

Const vbUnchecked = 0 ' Unchecked
Const vbChecked = 1 ' Checked
Const vbGrayed = 2 ' Grayed (aka disabled)

The vbGrayed is checked and grayed. I need it to be unchecked, but would prefer it to be Disabled if I could.

Many Many Thanks for the assist thus so far!!

-SWarrior
SWarrior2k is offline   Reply With Quote
Old 05-03-2004, 08:07 AM   #5 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
If you want it disabled, you could just Remark it in the form code so it doesn't show up at all.
DVNT1 is offline   Reply With Quote
Old 05-03-2004, 08:20 AM   #6 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 4
SWarrior2k is on a distinguished road
Systems

That's true. But here's the scenerio...

If the OS is NT 4 Grayed checked is fine, but if the OS is 2k or XP, Then removing the option or box would be desireable. Can't get an if statement to work in the form design.

-SWarrior
SWarrior2k is offline   Reply With Quote
Old 05-03-2004, 08:28 AM   #7 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
On the form next to the box's text, I would add a note like "optional with NT4" instead of making the pefect form (but I'm not a programmer so I settle for less )

Then in the code, use an If then statement to check the value of the OS choice and then taking in the checkbox value if needed.
DVNT1 is offline   Reply With Quote
Old 05-03-2004, 12:03 PM   #8 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 4
SWarrior2k is on a distinguished road
I was able to achieve desired results...


code:
----------
If OSver = "NT" then
oLWF.AddCtrl "chkBox", 125,20, 100,20, "Active Dir. Client"
else
end If
----------

where 'OSver' is defined as NT, 2K, XP in a previously used oForm. As you had said, it is a SHAME that support for this "Literally VALUABLE" Tool has been pulled.

I wish that I had a copy of all of the pages, I would put it up on my Business web site for hosting! The Scripting Help is THAN DAMN GOOD!

-SWarrior
SWarrior2k is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:15 PM.