Page 1 of 3 123>
Topic Options
#90077 - 2002-12-02 12:19 AM tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, direct this here as seems to be only place to catch you.

I have 2 buttons where the other one is default and the other one has tabstop=1

after user pressing with mouse on that keyboard-disabled button, there is no way I can direct the tab focus from the button.

I've tried all the things I can imagine.
as I 4 months already stated, tryied then with setfocus, that sets the focus to elsewhere but the black border around the tabstopped button remains.

then next one was to disable the button setfocus elsewhere and enable. no can do.
same effect with hide/show.

next one was to change the event to onmouseup which neither helped.

then saw something weird while testing with almost all these combined and setfocus shooted almost everywhere:
the border goes away on every second click.
so, on first one appears and on disappears [Eek!]

is there any solution foundable or am I trying to accomplish something unpossible?
_________________________
!

download KiXnet

Top
#90078 - 2002-12-01 09:07 PM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As always Joeel , add a snippet of code !

I had this problem too (for example one can't make a button default and Enable cancel(ESC) on it the same time !)
_________________________



Top
#90079 - 2002-12-02 09:16 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Jooel,

how about a short sample ? No ?
Hello ???
_________________________



Top
#90080 - 2002-12-02 09:20 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I hate these samples as they need always some code.
and to make the sample for everything used, well the board has no power to handle such a post [Wink]

wait a sec.
_________________________
!

download KiXnet

Top
#90081 - 2002-12-02 09:25 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ah well , you can condense what you want to show in a snippet ... as always one can't post the whole 2600 line thing [Eek!]
_________________________



Top
#90082 - 2002-12-02 09:33 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what I want is no can do with code.
what I do when trying to get it, I can show.

but as I said, I can't post all the trials just an example.
_________________________
!

download KiXnet

Top
#90083 - 2002-12-02 09:35 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yeah ... go ahead .. .may be that I can help ya (Yes, I have experience with this stuff [Wink] )
_________________________



Top
#90084 - 2002-12-02 09:41 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, I still think the forms layout calculator is little wrong as normally need 5 adjusting pixels in the width.
anyway, here is something:
code:
$=createobject("kixtart.form")
$.size=80,120
$.center
$notab=$.button("please, no tab",5,10,70,20)
$notab.tabstop=0
$notab.onmouseup="$$second.setfocus"
$second=$.button("second",5,40,70,20)
$exit=$.button("exit",5,70,70,20)
$exit.onclick="$$.hide"
$exit.defaul=1
$.show
while $.visible $nul=execute($.doevents) loop

there is no way you can remove the black border around the notab button once you have clicked it.

and btw, rod/shawn, documentation on the tabstop in:
http://www.kixforms.freeuk.com/Docs/Properties/tabstop.htm

is wrong.
_________________________
!

download KiXnet

Top
#90085 - 2002-12-02 09:58 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
got it, the old style.
was going to shower (that is place for all inventions)

so:
code:
$=createobject("kixtart.form")
$.size=80,120
$.center
$notab=$.button("please, no tab",5,10,70,20)
$notab.tabstop=0
$notab.onmouseup="$$nul=sendkeys('{tab}')"
$second=$.button("second",5,40,70,20)
$exit=$.button("exit",5,70,70,20)
$exit.onclick="$$.hide"
$exit.defaul=1
$.show
while $.visible $nul=execute($.doevents) loop

_________________________
!

download KiXnet

Top
#90086 - 2002-12-02 10:02 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
The black border around notab is removed by a TAB

... what would you like it to be ?
_________________________



Top
#90087 - 2002-12-02 10:05 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hehe , best place for inventions is the bathroom / smoking a cigarette or something similar !

So you did a sendkeys {TAB} by kix ... how about a $button.Setfocus ???

[ 02. December 2002, 10:10: Message edited by: jpols ]
_________________________



Top
#90088 - 2002-12-02 10:08 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
is that what you wanted it to be =?

code:
break on

$=createobject("kixtart.form")
$.size=80,120
$.center
$notab=$.button("please, no tab",5,10,70,20)
$notab.tabstop=0
$notab.onmouseOver="$$second.SetFocus"
$second=$.button("second",5,40,70,20)
$exit=$.button("exit",5,70,70,20)
$exit.onclick="$$.hide"
$exit.defaul=1
$.show
while $.visible $nul=execute($.doevents) loop



quit ()

_________________________



Top
#90089 - 2002-12-02 10:12 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
weirdo :

[Eek!]

code:
break on

$=createobject("kixtart.form")
$.size=80,120
$.center
$notab=$.button("please, no tab",5,10,70,20)
$notab.tabstop=0
$notab.OnClick="$$second.SetFocus $$second.Default = 1"
$second=$.button("second",5,40,70,20)
$exit=$.button("exit",5,70,70,20)
$exit.onclick="$$.hide"
$exit.defaul=1
$.show
while $.visible $nul=execute($.doevents) loop



quit ()

_________________________



Top
#90090 - 2002-12-02 10:18 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ok,

Senkeys ({tab}) seems to be the only way (by now)
_________________________



Top
#90091 - 2002-12-02 10:22 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
j, look at my first code and you could have skipped your last 4 replies [Razz]
_________________________
!

download KiXnet

Top
#90092 - 2002-12-02 10:24 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Like said, I have tried all the means.
even hiding and disabling.

there is no way without external help.
that is the reason for this topic, but as I've seen, shawn is too busy to even look at the board.
_________________________
!

download KiXnet

Top
#90093 - 2002-12-02 10:25 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yessir , that was the famous , tried all possibilities while you solved it for yerself ...

Sorry, no shower in here [Big Grin]
_________________________



Top
#90094 - 2002-12-02 10:30 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, shawn, if one has messagebox without system modal, it does not appear in the taskbar, this means that only way to find it would be to minimize windows one by one, weird?

anyway, having a system modal dialog on the top is no goodie as it removes the possibility to hide it while doing current urgent job.

this actually would have been good reason for other topic but anyway.
_________________________
!

download KiXnet

Top
#90095 - 2002-12-02 10:33 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
one should always work with the kixforms.msgbox() while running KiXforms !
_________________________



Top
#90096 - 2002-12-02 10:37 AM Re: tabstop/setfocus/enabled - kixforms button weirdness
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
j, back again with some not reading!

that is the problem, I'm currently using kixforms messagebox and it does not work as expected.
the old kixtarts messagebox (in checker 1.5.x) had no problems whatsoever.
_________________________
!

download KiXnet

Top
Page 1 of 3 123>


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

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.098 seconds in which 0.033 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org