#85528 - 2002-04-19 06:41 PM
Re: BBCodeParser 3.0.1.3 update
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
That ROCKS!
One little suggestion, though.. could you implement the "select all" function so that it's easier to copy and paste the code as well as save it?
Brian
|
|
Top
|
|
|
|
#85533 - 2002-04-20 06:16 PM
Re: BBCodeParser 3.0.1.3 update
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
brian, to your knowledge, I've added the select all function. actually, it's clipboard copy. it selects all and copyes it to clipboard.
other updates are that when script is now edited in window the changes do not apply to printed or saved versions. in the next release it is changed. So now it's also freeware kixeditor!!! I've allready done the changes but I'm not able to release the new code before monday.
Shawn, I were just wondering last night about this copy issue. you have in build 11 .selstart and .sellength which ones worked just fine. but didn't have .copy which is editboxes normal vb-functionality. well, now I cracked the lack of functionality with kix'es sendkeys, but are you able to perhaps implement it in some future build. also, don't think it as part of kixforms as it has nothing to do with graphics, but... I miss good old connection functions I've come familiar with in other script languages. this is also kind of bleed to ruud, but until he does anything like that, I'm asking can ye do somekind of mod to establish connections. text/binary mode supported and port selection and such simple stuff? this way also telnet can be abandoned from scripts and they would become more controllable.
not asking much, am I?
cheers,
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#85534 - 2002-04-20 08:24 PM
Re: BBCodeParser 3.0.1.3 update
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Jooel,
Consider it done - here's a link to kixforms build 12 with the copy method added to the textbox object:
Kixforms Build 12
Heres a sample script:
code:
break on
$form = createobject("kixtart.form") $form.fontsize = 10 $form.fontname = "courier new"
$textbox = $form.textbox("",10,10,300,300) $textbox.multiline = 1 $textbox.text = "Type some text in this box"
$select = $form.commandbutton("Select all",10,320) $select.onclick = "$$textbox.selstart=0 $$textbox.sellength=len($$textbox.text) $$textbox.setfocus"
$copy = $form.commandbutton("Copy to clipboard",10,360) $copy.onclick = "$$textbox.copy"
$form.show while $form.visible $=execute($form.doevents) loop
exit 1
-Shawn [ 20 April 2002, 20:27: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#85538 - 2002-04-23 05:34 PM
Re: BBCodeParser 3.0.1.3 update
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Jooel,
So, do we want to call our new control a textbox or an editbox ? My vote is editbox because it seems more intuitive. A textbox is for single one-liners and an editbox is for editing large chunks of data. Scrollbars on the editbox - yup - ill put those in as well. OnChange event handling - ill get those in too.
Heres a cool kixforms script - dont necessarily need build 12 for this, just thought it was kinda neat:
code:
break on
$SMALLSTARS = 30 $LARGESTARS = 15
global $smallxpos[$SMALLSTARS] global $smallypos[$SMALLSTARS] global $smallspeed[$SMALLSTARS]
global $largexpos[$LARGESTARS] global $largeypos[$LARGESTARS] global $largespeed[$LARGESTARS]
$form = createobject("kixtart.form") $form.caption = "Starfield Simulation" $form.backcolor = 0 ; black $form.borderstyle = 2
$width = $form.scalewidth $height = $form.scaleheight
srnd((-1)*@ticks) ; randomize
For $I = 1 To $SMALLSTARS $SmallXPos[$I] = Rnd($WIDTH) $SmallYPos[$I] = Rnd($HEIGHT) $SmallSpeed[$I] = RND(5)+1 Next
For $I = 1 To $LARGESTARS $LargeXPos[$I] = Rnd($WIDTH) $LargeYPos[$I] = Rnd($HEIGHT) $LargeSpeed[$I] = RND(10)+5 Next
$Form.Show
while $form.visible
$= execute($form.doevents(1))
$height = $form.scaleheight $width = $form.scalewidth
For $I = 1 To $LARGESTARS $Form.ForeColor = 0 $Form.Rectangle($LargeXPos[$I],$LargeYPos[$I],2,2) $LargeXPos[$I] = $LargeXPos[$I] - $LargeSpeed[$I] If $LargeXPos[$I] < -10 $LargeXPos[$I] = $Width $LargeYPos[$I] = RND($Height) $LargeSpeed[$I] = RND(10)+5 EndIf $Form.ForeColor = &0FFFFFF $Form.Rectangle($LargeXPos[$I],$LargeYPos[$I],2,2) Next
For $I = 1 To $SMALLSTARS $Form.PSet($SmallXPos[$I],$SmallYPos[$I],0) $SmallXPos[$I] = $SmallXPos[$I] - $SmallSpeed[$I] If $SmallXPos[$I] < -10 $SmallXPos[$I] = $Width $SmallYPos[$I] = RND($Height) $SmallSpeed[$I] = RND(5)+1 EndIf $Form.PSet($SmallXPos[$I],$SmallYPos[$I],&0FFFFFF) Next
Loop
Exit 1
Maybe a kixtart screen-saver ? hehee
-Shawn
|
|
Top
|
|
|
|
#85539 - 2002-04-23 05:47 PM
Re: BBCodeParser 3.0.1.3 update
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I had another quick idea.. Would it be too hard to get the code parser to display the name of the user that posted the code (Like BrianTX 1 rather than code 1, etc)?
Also, another idea.. dont' shoot me in the head... lol.. but how about being able to integrate the search function to find pieces of code on the bbs? I would assume you could tie into the search function on the bbs and display code in all the messages in the returned list..
Just a couple thoughts.. i know the second is probably a bit tougher to code.
Brian
|
|
Top
|
|
|
|
#85540 - 2002-04-24 06:51 AM
Re: BBCodeParser 3.0.1.3 update
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
brian, yeah, all is possible, isn't it?
the latter one suicide. ok, it's not more than as coding inventarion script where everything is dynamic. (that is what I'm doing now)
so, the search is ok, but bb has search allready. then, the new bb is making it harder to get even one script, what about getting whole page list of scripts? also, the retrieval of one, can't be anymore done like normal webbrowsing. it has to be retrieved from another cgi-called page.
the engine is not hard to be added, but I'd need some users asking it. just to make it worthwhile.
the first one I've thought myself too... some time ago. it's something I could add. it just makes the parser-engine little bit more complex but it's something I could do.
Shawn, There is also alternative for the names... textbox could be the inputbox but anyway, it's really sweet you're hearing my requests... it's makes me wanna update as soon as possible.
cheers,
_________________________
!download KiXnet
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 661 anonymous users online.
|
|
|