#172713 - 2007-01-12 10:11 AM
How to Change button TEXT !
|
MACE
Starting to like KiXtart
Registered: 2004-09-07
Posts: 150
Loc: Manchester UK
|
This extract is a modifier to the well known grouped button UDF where it endevours to change the text on the specified buttons, namely button1 of each group of buttons. The Function enumerates correctly but I can not get the button text to change. I have guessed the ###.text is what I need to change but have no reference to check what components are required.
; Button1 Loop Modifier
Function MainBtns
$button_array = 10,20
$boxcntr = 1
$box = READPROFILESTRING(@scriptdir + $ini,"BOX" + $boxcntr,"BUTTON1")
WHILE $box <>""
REDIM $button_array[0]
$button_array = SPLIT($cmd,";")
$tmpvar = "BUTTON1"
$BLANK = "~~~~~~"
If $CPRCSV = $PRCSV
$ = EXECUTE("$+$$cmdBOX$BOXCNT$TMPVAR.TEXT = $$BUTTON_ARRAY[0]")
Else
$ = EXECUTE("$+$$cmdBOX$BOXCNT$TMPVAR.TEXT = $$BLANK")
Endif
$boxcntr = $boxcntr+1
$box = READPROFILESTRING(@scriptdir + $ini,"BOX" + $boxcntr,"BUTTON1")
Loop
EndFunction
1] Is the ###.text the component that is required and if not what is ? 2] Where can I find a reference to the different components supported.
I am using Kix release - 4.53
|
|
Top
|
|
|
|
#172722 - 2007-01-12 02:39 PM
Re: How to Change button TEXT !
[Re: MACE]
|
Benny69
Moderator
   
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
what is $cmd set to equal, this will contain the values that you are looking for?
|
|
Top
|
|
|
|
#172730 - 2007-01-12 05:08 PM
Re: How to Change button TEXT !
[Re: MACE]
|
Benny69
Moderator
   
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
If you want us to better help you, you should post the entire code. Other wise all we can do is guess.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|