KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Splitter getting stuck in form
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Tue Oct 26, 2004 2:09 pm    Post subject: Splitter getting stuck in form Reply with quote

Shawn,

I've noticed this behavior in the past, but I found an instance where I can recreate it at will. Basically, I have two objects seperated by a splitter. I can move the splitter left, but it will not move right even after the move to the left. I can make the left object smaller and smaller, but never bigger.

I was working through my code to determine what was causing this and I found a textbox object that would cause problems if it's .left position was set too far to the right (but still visible inside the form). If I moved it to the left, then the splitter would move back and forth unless I moved the splitter too far to the right and then it would get stuck again and only move left. If I moved the textbox object farther to the left, then the point at making the splitter get stuck would likewise move farther to the right.

I guess I'm saying there's a correlation between where this textbox object lives and where the splitter gets stuck. Here is my code that I'm experiencing this problem with... (it's a little lengthy as I'm redoing the interface on my User Manager script and this is it so far...) Just look for the following snippet and play with its value to see what I'm talking about (greater than 200 makes it stuck everytime I believe). Hopefully it breaks for you, too.
Code:

$txtBadCnt.Left


Code:

Break On
; Requires:
;
; KiX 4.22
; Kixforms 2.4.0.46
; TSUserConfig.dll
; ADSRAS.dll
;
; Written by  : Ben Dulaney


$Version = "0.01a"
$KixformsBuild = 46
$SelDomain = @LDomain
$ScriptPath = @ScriptDir
$HomeDrive = "Z:"

;****************************************
;*      Main Form      *
;****************************************
$System               = CreateObject("Kixtart.System")
$Form               = $System.Form()
$Form.Size            = 600,400
$ = $Form.Center
$Form.Text            = "AD User Manager"
$Form.OnClosing            = "";"Form_OnClosing()"
$Form.OnAbout            = "mnuHelp_About_Click()"
$Form.Menu            = $System.MainMenu()
$Form.Menu.Style         = 1
$Form.Menu.ImageList         = $System.BuiltInImageList()
$Form.mnuFile            = $Form.Menu.MenuItems.Add("&File")
$Form.mnuFile_Exit         = $Form.mnuFile.MenuItems.Add("&Exit")
$Form.mnuFile_Exit.ImageIndex      = 37
$Form.mnuFile_Exit.OnClick      = "$$Form = 'Nothing'";"mnuFile_Exit_Click()"
$Form.mnuTools            = $Form.Menu.MenuItems.Add("&Tools")
$Form.mnuTools_Security         = $Form.mnuTools.MenuItems.Add("&Security")
$Form.mnuTools_Security.ImageIndex   = 11
$Form.mnuTools_Security.OnClick      = "";"mnuTools_Security_Click()"
$Form.mnuTools_Options         = $Form.mnuTools.MenuItems.Add("&Options")
$Form.mnuTools_Options.ImageIndex   = 10
$Form.mnuTools_Options.OnClick      = "";"mnuTools_Options_Click()"
$Form.mnuHelp            = $Form.Menu.MenuItems.Add("&Help")
$Form.mnuHelp_About         = $Form.mnuHelp.MenuItems.Add("&About")
$Form.mnuHelp_About.ImageIndex      = 57
$Form.mnuHelp_About.OnClick      = "";"mnuHelp_About_Click()"
$tlbMain            = $Form.GroupBox()
$tlbMain.Height            = 25
$tlbMain.Dock            = "Top"
$tlbSave            = $tlbMain.ToolButton("Save")
$tlbSave.Width            = 70
$tlbSave.Icon            = 10
$tlbSave.ToolTipText         = "Save Changes"
$tlbSave.Dock            = "Left"
$tlbSave.OnClick         = "tlbSave_Click()"
$tlbSpace1            = $tlbMain.Label()
$tlbSpace1.Width         = 10
$tlbSpace1.Dock            = "Left"
$tlbChgDomain            = $tlbMain.ToolButton("Domain")
$tlbChgDomain.Width         = 70
$tlbChgDomain.Icon         = 35
$tlbChgDomain.ToolTipText      = "Change Selected Domain"
$tlbChgDomain.Dock         = "Left"
$tlbChgDomain.OnClick         = "tlbChgDomain_Click()"
$tlbSpace2            = $tlbMain.Label()
$tlbSpace2.Width         = 10
$tlbSpace2.Dock            = "Left"
$tlbCreateUser            = $tlbMain.ToolButton("Create")
$tlbCreateUser.Width         = 70
$tlbCreateUser.Icon         = 1
$tlbCreateUser.ToolTipText      = "Create a New User"
$tlbCreateUser.Dock         = "Left"
$tlbCreateUser.OnClick         = "tlbCreateUser_Click()"
$tlbDeleteUser            = $tlbMain.ToolButton("Delete")
$tlbDeleteUser.Width         = 70
$tlbDeleteUser.Icon         = 2
$tlbDeleteUser.ToolTipText      = "Delete the Current User"
$tlbDeleteUser.Dock         = "Left"
$tlbDeleteUser.OnClick         = "tlbDeleteUser_Click()"
$tlbRenameUser            = $tlbMain.ToolButton("Rename")
$tlbRenameUser.Width         = 70
$tlbRenameUser.Icon         = 3
$tlbRenameUser.ToolTipText      = "Rename the Current User"
$tlbRenameUser.Dock         = "Left"
$tlbRenameUser.OnClick         = "tlbRenameUser_Click()"
$stsBar               = $Form.StatusBar()
$stsBar.Text            = "Current Domain: " + $SelDomain
$stsBar.Dock            = "Bottom"
$lsvCategories            = $Form.ListBox
$lsvCategories.Width         = 162
$lsvCategories.Dock         = "Left"
$lsvCategories.OnClick         = "lsvCategories_Click()"
$splSplitter            = $Form.Splitter()
$splSplitter.Dock         = "Left"
$grpUserID            = $Form.GroupBox("UserID:")
$grpUserID.Height         = 50
$grpUserID.Location         = 10,10
$grpUserID.Dock            = "Top"
Populate_List()

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


;****************************************
;*      Functions      *
;****************************************
Function Populate_List()
   $ = $lsvCategories.AddItem("General")
   $ = $lsvCategories.AddItem("Group Membership")
   $ = $lsvCategories.AddItem("Email")
   $ = $lsvCategories.AddItem("Terminal Server")
   $lsvCategories.ListIndex = 0
   $lblUsername         = $grpUserID.Label("Username:")
   $lblUsername.Size      = 60,15
   $lblUsername.Location      = 10,22
   $txtUsername         = $grpUserID.TextBox()
   $txtUsername.Size      = 100,19
   $txtUsername.Location      = 80,20
   $txtUsername.OnGotFocus      = "$$cmdSearch.Default = 1"
   $txtUsername.OnLostFocus   = "$$cmdSearch.Default = 0"
   $cmdSearch         = $grpUserID.Button("&Search")
   $cmdSearch.Size         = 60,19
   $cmdSearch.Location      = 190,20
   $cmdSearch.OnClick      = "cmdSearch_Click()"
   $cmdUserLookup         = $grpUserID.Button("&User Lookup")
   $cmdUserLookup.Size      = 80,19
   $cmdUserLookup.Location      = 300,20
   $cmdUserLookup.OnClick      = "cmdUserLookup_Click()"
   lsvCategories_Click()
EndFunction

Function lsvCategories_Click()
   $grpSettings = "Nothing"
   $grpSettings = $Form.GroupBox("Details:")
   $grpSettings.Dock = "Fill"
   Select
      Case $lsvCategories.Text = "General"
         Section_General()
      Case $lsvCategories.Text = "Group Membership"
         Section_Groups()
      Case $lsvCategories.Text = "Email"
         Section_Email()
      Case $lsvCategories.Text = "Terminal Server"
         Section_WTS()
   EndSelect
EndFunction

Function Section_General()
   $lblFullName         = $grpSettings.Label("Full Name:")
   $lblFullName.Size      = 60,15
   $lblFullName.Location      = 10,22
   $txtFullName         = $grpSettings.TextBox()
   $txtFullName.Size      = 140,19
   $txtFullName.Location      = 80,20
   $lblDesc         = $grpSettings.Label("Description:")
   $lblDesc.Size         = 60,15
   $lblDesc.Location      = 10,47
   $txtDesc         = $grpSettings.TextBox()
   $txtDesc.Size         = 140,19
   $txtDesc.Location      = 80,45
   $lblPW            = $grpSettings.Label("Password:")
   $lblPW.Size         = 60,15
   $lblPW.Location         = 250,22
   $txtPW            = $grpSettings.TextBox()
   $txtPW.Size         = 100,19
   $txtPW.Location         = 320,20
   $txtPW.PasswordChar      = "*"
   $lblPW2            = $grpSettings.Label("Confirm:")
   $lblPW2.Size         = 60,15
   $lblPW2.Location      = 250,47
   $txtPW2            = $grpSettings.TextBox()
   $txtPW2.Size         = 100,19
   $txtPW2.Location      = 320,45
   $txtPW2.PasswordChar      = "*"
   $lblExpire         = $grpSettings.Label("Expire Date:")
   $lblExpire.Size         = 60,15
   $lblExpire.Location      = 10,72
   $txtExpire         = $grpSettings.TextBox()
   $txtExpire.Size         = 80,19
   $txtExpire.Location      = 80,70
   $txtExpire.MaxLength      = 10
   $lblExpire2         = $grpSettings.Label("mm/dd/yyyy")
   $lblExpire2.Size      = 60,15
   $lblExpire2.Location      = 160,72
   $lblScript         = $grpSettings.Label("Logon Script:")
   $lblScript.Size         = 70,15
   $lblScript.Location      = 250,72
   $txtScript         = $grpSettings.TextBox()
   $txtScript.Size         = 100,19
   $txtScript.Location      = 320,70
   $lblLogonTo         = $grpSettings.Label("Logon To:")
   $lblLogonTo.Size      = 60,15
   $lblLogonTo.Location      = 10,97
   $cboLogonTo         = $grpSettings.ComboBox()
   $cboLogonTo.Size      = 140,39
   $cboLogonTo.Location      = 80,95
   $cmdAdd_LogonTo         = $grpSettings.Button("Add")
   $cmdAdd_LogonTo.Size      = 40,17
   $cmdAdd_LogonTo.Location   = 80,120
   $cmdAdd_LogonTo.OnClick      = "cmdAdd_LogonTo_Click()"
   $cmdDel_LogonTo         = $grpSettings.Button("Del")
   $cmdDel_LogonTo.Size      = 40,17
   $cmdDel_LogonTo.Location   = 120,120
   $cmdDel_LogonTo.OnClick      = "cmdDel_LogonTo_Click()"
   $lblBadCnt         = $grpSettings.Label("Bad Logins:")
   $lblBadCnt.Size         = 60,15
   $lblBadCnt.Location      = 250,97
   $txtBadCnt         = $grpSettings.TextBox()
   $txtBadCnt.Size         = 20,19
   $txtBadCnt.Location      = 320,95
   $txtBadCnt.Left         = 10
   $txtBadCnt.Locked      = 1
   $chkAcctDisabled      = $grpSettings.CheckBox("Account Disabled")
   $chkAcctDisabled.Size      = 120,19
   $chkAcctDisabled.Location   = 80,160
   $chkAcctLocked         = $grpSettings.CheckBox("Account Locked")
   $chkAcctLocked.Size      = 120,19
   $chkAcctLocked.Location      = 80,185
   $chkPWExpired         = $grpSettings.CheckBox("Password Expired")
   $chkPWExpired.Size      = 120,19
   $chkPWExpired.Location      = 80,210
   $chkNoPWChange         = $grpSettings.CheckBox("User cannot change PW")
   $chkNoPWChange.Size      = 140,19
   $chkNoPWChange.Location      = 250,160
   $chkNoPwExpire         = $grpSettings.CheckBox("Password never expires")
   $chkNoPwExpire.Size      = 140,19
   $chkNoPwExpire.Location      = 250,185
   $chkAllowDialin         = $grpSettings.CheckBox("Allow Dialin / VPN")
   $chkAllowDialin.Size      = 120,19
   $chkAllowDialin.Location   = 250,210
EndFunction

Function Section_Groups()
   $grpGroup_Bottom      = $grpSettings.GroupBox()
   $grpGroup_Bottom.Height      = 35
   $grpGroup_Bottom.Dock      = "Bottom"
   $lstGroup1         = $grpSettings.ListBox()
   $lstGroup1.Dock         = "Left"
   $splSplitter2         = $grpSettings.Splitter()
   $splSplitter2.Dock      = "Left"
   $grpGroup_Buttons      = $grpSettings.GroupBox()
   $grpGroup_Buttons.Width      = 50
   $grpGroup_Buttons.Dock      = "Left"
   $lstGroup1.OnDoubleClick   = "cmdGroup_Del_Click()"
   $lstGroup2         = $grpSettings.ListBox()
   $lstGroup2.Dock         = "Fill"
   $lstGroup2.OnDoubleClick   = "cmdGroup_Add_Click()"
   $cmdGroup_Add         = $grpGroup_Buttons.Button("<-----")
   $cmdGroup_Add.Size      = 40,19
   $cmdGroup_Add.Location      = 5,80
   $cmdGroup_Add.OnClick      = "cmdGroup_Add_Click()"
   $cmdGroup_Del         = $grpGroup_Buttons.Button("----->")
   $cmdGroup_Del.Size      = 40,19
   $cmdGroup_Del.Location      = 5,110
   $cmdGroup_Del.OnClick      = "cmdGroup_Del_Click()"
   $lblPrimaryGrp         = $grpGroup_Bottom.Label("Primary Group:  N/A")
   $lblPrimaryGrp.Size      = 200,15
   $lblPrimaryGrp.Location      = 60,10
   $cmdSetPrimaryGrp      = $grpGroup_Bottom.Button("Set")
   $cmdSetPrimaryGrp.Size      = 40,19
   $cmdSetPrimaryGrp.Location   = 10,8
   $cmdSetPrimaryGrp.OnClick   = "cmdSetPrimaryGrp_Click()"
EndFunction

Function Section_Email()
   $lblEmail         = $grpSettings.Label("Email Addresses:")
   $lblEmail.Height      = 20
   $lblEmail.TextAlign      = "MiddleLeft"
   $lblEmail.Dock         = "Top"
   $grpEmail_Buttons      = $grpSettings.GroupBox()
   $grpEmail_Buttons.Height   = 90
   $grpEmail_Buttons.Dock      = "Bottom"
   $lstEmailAddr         = $grpSettings.ListBox()
   $lstEmailAddr.Dock      = "Fill"
   $lstEmailAddr.OnDoubleClick   = ""
   $cmdEmail_Add         = $grpEmail_Buttons.Button("&Add")
   $cmdEmail_Add.Size      = 60,19
   $cmdEmail_Add.Location      = 10,10
   $cmdEmail_Add.OnClick      = "cmdEmail_Add_Click()"
   $cmdEmail_Del         = $grpEmail_Buttons.Button("&Remove")
   $cmdEmail_Del.Size      = 60,19
   $cmdEmail_Del.Location      = 80,10
   $cmdEmail_Del.OnClick      = "cmdEmail_Del_Click()"
   $cmdEmail_Ren         = $grpEmail_Buttons.Button("&Rename")
   $cmdEmail_Ren.Size      = 60,19
   $cmdEmail_Ren.Location      = 180,10
   $cmdEmail_Ren.OnClick      = "cmdEmail_Ren_Click()"
   $chkAcctExists         = $grpEmail_Buttons.CheckBox("Email Account Exists")
   $chkAcctExists.Size      = 140,19
   $chkAcctExists.Location      = 10,35
   $chkAutoUpdAddr         = $grpEmail_Buttons.CheckBox("Auto-Update Email Addresses")
   $chkAutoUpdAddr.Size      = 160,19
   $chkAutoUpdAddr.Location   = 180,35
   $cmdEmail_SetReply      = $grpEmail_Buttons.Button("&Set")
   $cmdEmail_SetReply.Size      = 40,19
   $cmdEmail_SetReply.Location   = 10,60
   $cmdEmail_SetReply.OnClick   = "cmdEmail_SetReply_Click()"
   $lblEmail_Reply         = $grpEmail_Buttons.Label("Reply Addr:  N/A")
   $lblEmail_Reply.Size      = 200,15
   $lblEmail_Reply.Location   = 55,62
EndFunction

Function Section_WTS()
   $lblProfileDir         = $grpSettings.Label("User Profile Dir:")
   $lblProfileDir.Size      = 75,15
   $lblProfileDir.Location      = 10,22
   $txtProfileDir         = $grpSettings.TextBox()
   $txtProfileDir.Size      = 285,20
   $txtProfileDir.Location      = 95,15
   $lblHomeDir         = $grpSettings.Label("Home Dir:")
   $lblHomeDir.Size      = 75,15
   $lblHomeDir.Location      = 10,47
   $txtHomeDir         = $grpSettings.TextBox()
   $txtHomeDir.Size      = 285,19
   $txtHomeDir.Location      = 95,45
   $lblHomeDirCnct         = $grpSettings.Label("Connected to " + $HomeDrive + " if set")
   $lblHomeDirCnct.Size      = 140,15
   $lblHomeDirCnct.Location   = 95,65
   $chkAllowWTS         = $grpSettings.CheckBox("Allow Logon to WTS")
   $chkAllowWTS.Size      = 120,19
   $chkAllowWTS.Location      = 10,90
EndFunction

Function cmdSearch_Click()
$ = messagebox("SEARCH clicked",$txtUsername.Text)
EndFunction

Function cmdUserLookup_Click()
   ;Connect to the WinNT provider and make sure the domain is accessible
   $strDomainPath = "WinNT://" + $SelDomain + ",Domain"
   $adsDomain = GetObject($strDomainPath)
   If @Error <> 0
      $ = $Form.MessageBox("This domain cannot be accessed at this time.","Error")
      Exit 101
   EndIf
   $frmUserLookup         = $System.Form()
   $frmUserLookup.Text      = "User Lookup - " + $SelDomain
   $frmUserLookup.Size      = 462,353
   $frmUserLookup.Center
   $stsUserLookup         = $frmUserLookup.StatusBar
   $stsUserLookup.Dock      = "Bottom"
   $grpUserLookup_Buttons      = $frmUserLookup.GroupBox()
   $grpUserLookup_Buttons.Height   = 40
   $grpUserLookup_Buttons.Dock   = "Bottom"
   $lsvUsersFound         = $frmUserLookup.ListView()
   $lsvUsersFound.Dock      = "Fill"
   $lsvUsersFound.OnDoubleClick   = "cmdUserLookupOK_Click()"
   $cmdUserLookupOK      = $grpUserLookup_Buttons.Button("&OK")
   $cmdUserLookupOK.Size      = 60,19
   $cmdUserLookupOK.Location   = 130,10
   $cmdUserLookupOK.OnClick   = "cmdUserLookupOK_Click()"
   $cmdUserLookupOK.Default   = 1
   $cmdUserLookupCancel      = $grpUserLookup_Buttons.Button("&Cancel")
   $cmdUserLookupCancel.Size   = 60,19
   $cmdUserLookupCancel.Location   = 250,10
   $cmdUserLookupCancel.OnClick   = "$$frmUserLookup = 'Nothing'"
   $cmdUserLookupCancel.Cancel   = 1
   $ = $lsvUsersFound.Columns.Add("UserID",120,0)
   $ = $lsvUsersFound.Columns.Add("Full Name",154,0)
   $ = $lsvUsersFound.Columns.Add("Description",160,0)
   $adsDomain.Filter = "User",""
   For Each $Element in $adsDomain
      $Item = $lsvUsersFound.Items.Add("Record")
      $Item.SubItems(0).Text = $Element.Name
      $Item.SubItems(1).Text = $Element.FullName
      $Item.SubItems(2).Text = $Element.Description
   Next
   $ = $frmUserLookup.Show()
EndFunction

Function cmdUserLookupOK_Click()
   $txtUsername.Text = $lsvUsersFound.FocusedItem.SubItems(0).Text
   $frmUserLookup = "Nothing"
   cmdSearch_Click()
EndFunction

Function tlbChgDomain_Click()
   $frmChgDomain         = $System.Form("Select Domain")
   $frmChgDomain.Size      = 300,220
   $frmChgDomain.Center
   $lblMsg            = $frmChgDomain.Label("Please choose a domain")
   $lblMsg.Size         = 150,15
   $lblMsg.Location      = 5,8
   $lstDomains         = $frmChgDomain.ListBox()
   $lstDomains.Size      = 280,130
   $lstDomains.Location      = 5,30
   $lstDomains.OnDoubleClick   = "cmdDomainsOK_Click()"
   $cmdDomainsOK         = $frmChgDomain.Button("&Select")
   $cmdDomainsOK.Size      = 60,19
   $cmdDomainsOK.Location      = 60,170
   $cmdDomainsOK.OnClick      = "cmdDomainsOK_Click()"
   $cmdDomainsOK.Default      = 1
   $cmdChgDomainCancel      = $frmChgDomain.Button("&Cancel")
   $cmdChgDomainCancel.Size   = 60,19
   $cmdChgDomainCancel.Location   = 160,170
   $cmdChgDomainCancel.OnClick   = "$$frmChgDomain = 'Nothing'"
   $cmdChgDomainCancel.Cancel   = 1

   $WinNT = GetObject("WinNT:")
   For Each $Element in $WinNT
      $lstDomains.AddItem($Element.Name)
   Next
   $ = $frmChgDomain.Show
EndFunction

Function cmdDomainsOK_Click()
   If $lstDomains.ListIndex <> -1
      $SelDomain = $lstDomains.Text
      $NewUserOU = ReadProfileString($ScriptPath + "\Config.ini","NewUserOU",$SelDomain)
      $frmChgDomain = "Nothing"
      $stsBar.Text = "Current Domain: " + $SelDomain
   EndIf
EndFunction

;****************************************
;*      Error Codes      *
;****************************************
;101   The domain cannot be contacted when doing a user lookup


_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Oct 26, 2004 11:17 pm    Post subject: Reply with quote

I'm able to reproduce this ... very weird. This is going to take some time to track-down though.
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Wed Oct 27, 2004 1:49 pm    Post subject: Reply with quote

Bonji,
Don't take this the wrong way but I have to get this pet peeve off my chest. You say "I found an instance where I can recreate it at will" and Shawn said "I'm able to reproduce this" yet the example you posted is a full fledged script reminiscent of "war and peace". Someone in the KF community that wants to test/confirm this would have to scour through the whole "war and peace" looking for dependencies or incompatibilities with their environment.

If you can truly repro this, it would be better to cobble together and post a little scriptlet that has no dependencies and is safe and easy to test rather than your "war and peace". It is nice that Shawn took the time to go through your code to repro it, but he as well as most of the KF community have busy schedules so anything you can do to simplify the test would be nice.

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Wed Oct 27, 2004 2:12 pm    Post subject: Reply with quote

Les,

I'm sorry you feel as you do, however I spent quite a bit of time just finding that the textbox was causing the problem. I included the entire script because I was unable to recreate this problem in a smaller script. Also, I am not willing to report this problem without some code, and I felt it was important to submit what could reproduce the problem.

If you do not like the code, then I suggest you not work with it. This applies for anyone, and I myself don't help people sometimes if the scope of the script is too large. However, I do not go down the path of criticizing someone for making that attempt. If there are no replies then the poster should know he/she needs to try to focus in more on the problem.

I pointed out the specific part of the script that had the problem, and I thought it valuable for Shawn to be able to see the entire scope of the script so he could see all the variables at work especially since I could not create a smaller example.

Allow me to get something off my chest, also. I would like to request that the members who participate on this forum use a little more compassion and elegance when dealing with posters. I've noticed that newbies especially get treated rough from time to time, and I really feel this puts a negative atmosphere here that could easily be left out. I myself have felt attacked here a few times, and I have contemplated retiring my profile and only watching the forum from a distance.

I am not trying to stir any negative thoughts or emotions, however I just felt this needed to be said.

Sincerely,
Ben
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Oct 27, 2004 3:05 pm    Post subject: Reply with quote

Hey Ben,

from my point of view there was never anything serious regarding 'rough replies to newbies', and I am here from quite the beginning and even longer Wink

Maybe that's just my point of view, but are there any specific samples so I for myself or others can reconsider their 'reactions' ?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Wed Oct 27, 2004 3:40 pm    Post subject: Reply with quote

Jochen,

I'm sorry if I offended anyone as everyone here provides a good service to the forum. I felt my comment about newbies was related not because a newbie was criticized, but because it falls under the category of posting when you shouldn't post. If someone doesn't like how I approach getting a problem solved, then by all means please ignore it. However, you do not need to attack the post because it is not how you would do it.

If you find the need to comment anyway, then please use a more diplomatic tone instead of demeaning me by saying...

Quote:
the example you posted is a full fledged script reminiscent of "war and peace"


I just feel that comments could be a little more diplomatic at times.

Sincerely,
Ben
Back to top
View user's profile Send private message
maciep
KiXforms Regular
KiXforms Regular


Joined: 01 May 2003
Posts: 43
Location: Pittsburgh,PA

PostPosted: Wed Oct 27, 2004 4:10 pm    Post subject: Reply with quote

to add my 2 cents, i agree with ben. if you don't like something, just ignore it. i don't share the same pet peeve as les and could really care less how he feels. let it go, that's all i'm saying.

as far as the newbies go, no they are not treated that badly. it's just some vets get bent out of shape if they don't like how / where newbs will sometime post (my first post ever on korg, i got the old code tags smackdown)

Anyway, i say let this little hijacking die and get back to the topic at hand: Splitter getting stuck in form
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Wed Oct 27, 2004 4:27 pm    Post subject: Reply with quote

Shawn,

I'm fine with this problem on my form as the splitter movement is not an integral part of its functioning. I just wanted to make sure you were made aware of it so it could be looked at when time allows.

Thanks!

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Oct 27, 2004 4:35 pm    Post subject: Reply with quote

What i was going to suggest you try is to partition your form a little differently, maybe start with two panels - one docked Left and the other Docked Fill on the right, and split those with a vert. splitter.

Then dock the top-right groupbox to the inside top of the right panel instead, then fill the lower right groupbox(es) in the right panel as well.

Whenever I've created a complicated forms like this one, I've always used "panels" to "break the job down" into seperate "form regions" ... at the end-of-the-day, the panels are invisible anyways, and dont use up much extra resources.

Actually, what I do, is because Panels are "invisible", I usually first BackColor them "Red" and "Blue", to get the initial layout correct, then just remove the coloring afterwards.

-Shawn
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Wed Oct 27, 2004 5:26 pm    Post subject: Reply with quote

Bonji,
I guess prefacing my post with "Don't take this the wrong way" does not work as a flame shield. Now you are contradicting yourself where you first said "I can recreate it at will" but later recant to say "I was unable to recreate this problem". If you had said you could not repro it, I never would have said what I said.

You obviously have formed an opinion of me from some of my prior posts and since first impressions are usually lasting ones, I doubt I can change it. None the less, I am trying to be helpful.

I am sorry if "war and peace" put you over the top but I hold firm my opinion that fewer full-fledged scripts and more "concept" scriptlets can make things easier for everyone. You can have the last word if you wish, as I have said more than I need to.

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Oct 27, 2004 6:06 pm    Post subject: Reply with quote

I didn't really want to comment on "the other" discussion here, dont't want to piss off either Ben or Les because they're both highly valued members of this board (and other boards) and I respect them.

To be honest (and not to be wishy-washy) I think they're both right. Ben was right in posting his script, as is, for this particular problem. Les is right because I see scripts like Les is refering to both here and at Korg... scripts that are peppered with hard-coded environmental dependencies and potentially dangerous syntax. What I usually do is just ignore posts like these, because its just too much effort to test them in my environment.

In this particular case, this wasn't the case. Ben is savvy enough to know what requires posting to show a point and what doesn't. I tried briefly to distill his script down to the minium required to break it, but couldn't. Think this particular problem is a weird combination of different things.

And to be honest, in order to fix this issue, I will probably still need to distill this script down anyways - its really the only way to get a handle on the problem.

But Les's point is still well taken - some members need to be a bit more diligent when posting, and maybe take the extra effort to distill the script down instead of simply throwing the script at the board to see what sticks.

My two cents.

-Shawn
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Wed Oct 27, 2004 9:13 pm    Post subject: Reply with quote

Shawn,
I guess maybe in your neck of the woods, "able to repro" means something different than around here. Rolling Eyes

Sorry

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Wed Oct 27, 2004 11:46 pm    Post subject: Reply with quote

Whats "able to repro" mean around your neck of the woods ?
Back to top
View user's profile Send private message
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Thu Oct 28, 2004 12:20 am    Post subject: Reply with quote

Hehee... is this going to turn into another ADD-SEE WHIMMY thingy?

Around here if you do the exact same thing, i.e. copy/paste, it is called duplicating the problem. It leaves you no closer to a solution but at least confirms that it can be duplicated.

If you can reproduce the problem by different means, i.e. a scriptlet, you are closer to a resolution since it can now be repro'd.

Hard to believe we are both in the same province let alone the same country! Laughing Razz

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Oct 28, 2004 12:46 am    Post subject: Reply with quote

jeje, I see now. We use the terms reproduce and duplicate interchangably, if we have a problem "in production", we say "we'll try to reproduce the problem in our labs" ... most times, we're lucky to be able to "duplicate" it, let alone reproduce it ...

Last edited by Shawn on Thu Oct 28, 2004 12:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group