Page 4 of 4 <1234
Topic Options
#96191 - 2002-11-27 11:11 AM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, j, is there correct syntax for that?

it does not matter what I try to load there, it does not show else but the border.
_________________________
!

download KiXnet

Top
#96192 - 2002-11-27 11:19 AM Re: Sorry, there are no new posts today.
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
lemme see what you have (if it shows you a border you successfully created an Image object but failed to load the the picture)

[ 27. November 2002, 11:20: Message edited by: jpols ]
_________________________



Top
#96193 - 2002-11-27 11:31 AM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, but how to load file?
I have succesfully tried with all kinds of image formats and with pure rtf with no success.

how to load an image?
how you do it?
_________________________
!

download KiXnet

Top
#96194 - 2002-11-27 11:34 AM Re: Sorry, there are no new posts today.
Jochen Administrator Offline
KiX Supporter
*****

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

code:
$img.Picture = @scriptdir + "\razz.bmp" 

You might fail to open any other than bmp !!
_________________________



Top
#96195 - 2002-11-28 12:09 AM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
thanks.
_________________________
!

download KiXnet

Top
#96196 - 2002-11-28 12:20 AM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
bmp is good.
just capture the frames and load them one after another...
will test.

yep, animated bmp!

code:
$m = CreateObject("kixtart.form")
$m.caption = "Steal Focus - Main"
$m.width = 200
$m.height = 100
$m.center
$text = $m.richtextbox(,5,5,180,80)
$img=$text.image()
$img.show
$timer=$m.timer(500)
$timer.ontimer="swap()"
$m.visible=1
While $m.visible $x=Execute($m.doevents) Loop

function swap()
$current=$current+1
$img.picture=@scriptdir+"\tongue"+$current+".bmp"
if $current=3 $current=0 endif
endfunction

the tongue 1 2 and 3 are extracted frames from the boards images/icons/tongue.gif
_________________________
!

download KiXnet

Top
#96197 - 2002-11-28 12:55 AM Re: Sorry, there are no new posts today.
Jochen Administrator Offline
KiX Supporter
*****

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

add $img.BorderStyle = 0 to get rid of the Border

Hehe, poor mans gif support , cool !!!

J.
_________________________



Top
#96198 - 2002-11-27 01:03 PM Re: Sorry, there are no new posts today.
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
btw. You can even capture an OnClick event on that ... just to make sure if you didn't already knew [Wink]
_________________________



Top
#96199 - 2002-11-27 01:08 PM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this is getting funky... [Eek!]

will definitely not include this in 1.5.3

maybe in 1.6 which will be out once I get to understand these new features and really use them.
well, 1.5.3 is almost 1.6 as it has as much changes in code as 1.5.2.1 had to 1.3.1.10

think that I should have released some mid releases already...

waiting until tomorrow at least.
_________________________
!

download KiXnet

Top
#96200 - 2002-11-27 02:41 PM Re: Sorry, there are no new posts today.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
{y a w n} Morning y'all...
[Eek!] 3 pages of euro-babble... [Eek!]
Mind if I don't test all that code?

Made it through the gauntlet unscathed. My office is in the farthest corner of the bldg so very high probability that I wil be hit several times before reaching my inner sanctum. Still working on that first coffee.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#96201 - 2002-11-27 02:45 PM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les dear,
it's enough if you test the last and make it work without that flashing...

then send it to shawn and he can code that in his dll.
_________________________
!

download KiXnet

Top
#96202 - 2002-11-27 03:01 PM Re: Sorry, there are no new posts today.
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
The Last ?

So, what is flashing here then ?

code:
$m = CreateObject("kixtart.form")
$m.caption = "Steal Focus - Main"
$m.width = 200
$m.height = 100
$m.center
$text = $m.richtextbox(,5,5,180,80)
$img=$text.image()
$img.BorderStyle = 0
$img.Location = 10,10
$img.OnClick = "$$ = $$m.msgbox('I will continue sticking my tongue out','You clicked me !!!',16)"
$img.Picture = @scriptdir+"\tongue1.bmp"

$timer=$m.timer(1000)
$timer.ontimer="swap()"
$m.visible=1
While $m.visible $x=Execute($m.doevents) Loop

function swap()
$current=$current+1
$img.picture=@scriptdir+"\tongue"+$current+".bmp"
if $current=3 $current=0 endif
endfunction

_________________________



Top
#96203 - 2002-11-27 03:02 PM Re: Sorry, there are no new posts today.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh...

sorry, ment that popup window thingie...
_________________________
!

download KiXnet

Top
Page 4 of 4 <1234


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

Who's Online
0 registered and 987 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.119 seconds in which 0.069 seconds were spent on a total of 12 queries. Zlib compression enabled.

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