Page 2 of 2 <12
Topic Options
#84876 - 2002-01-18 02:04 PM Re: registering dll
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Will,
Assuming you have a event for $button.onclick="AnotherEventclick"
(Or $Form.controls("my_button_name").onclick... as it's the same)

in your function AnotherEventclick
at the end (or the most suitable place), only add this :
$button.visible=0
this will hide the button. This property is available for all forms/controls

All properties available can be changed anytime (unless one or two, but they are specified as Read, and not Read Write), as opposite of VB.
Also, a little thing about having multiples object on the same area : it's possible, but you have to hide the previous object before creating the new one, otherwise it won't appear at the wanted place

example :
$button=$form.addbutton("name","caption",10,15,60,30)
you want to have a label at the same X/Y position (coordonates ? don't know the word)
you must before hide the button with the visible property set to 0, even if the form/window is not visible. So :
$button.visible=0
$button=$form.addlabel("label name","caption",10,15,60,30)

after this one, you can only have one of the 2 objects visible at any time. So each time you want to change, you have to hide the previous one before. I'll make a sample of this one.

Something else : did you try to use an image object instead of a label ? As only 2 images are needed for the Tictactoe, it would be easy to do

A last thing : by a second computer

[ 18 January 2002: Message edited by: Alex.H ]

_________________________
? getobject(Kixtart.org.Signature)

Top
#84877 - 2002-01-19 09:02 AM Re: registering dll
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Will,

Have a look at my TicTacToe program (on my scripts page or search on this board) that I did with KiX and COM calls to IE. I created a web page that has 9 buttons.

When you click a button, it writes a number to a hidden text box that the kix script checks continually. The KiX script then changes the label of the button to "X" or "O". The button is the same colour as it's square and has no border, but you can see it briefly when you click it.

I was going to port this to KiXForms/KiXWinVB but am a lazy git


Shawn,

I prefer the BGI style of interface to the COM object. It was easier for me to make the IFS run unhindered using that style. I'm sure they both have their merits, but that's my 2c.

I would really like to make a BGI DLL available for DL on my site and post some scripts, do you have a build that is suitable for that? I was thinking of the last build before the get/put image functions were introduced?

cj

p.s. Check out my site, I have jazzed it up a bit.

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

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