Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

libertybasic · The Official Liberty BASIC Support Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 5579
  • Founded: Jan 12, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 23989 - 24024 of 46623   Oldest  |  < Older  |  Newer >  |  Newest Start Topic
Messages: Show Message Summaries Sort by Date ^  
#23989 From: "Ingemar Bjerle" <ingemar.bjerle@...>
Date: Sat Jan 1, 2005 11:09 am
Subject: Re: Re: SUGGESTION for LB 5
gunnar312000
Send Email Send Email
 
----- Original Message -----
From: "stefanhes" <sjmhesseling@...>
To: <libertybasic@yahoogroups.com>
Sent: Thursday, December 30, 2004 9:30 PM
Subject: [libertybasic] Re: SUGGESTION for LB 5


>
>
>
> Right!
>
>
>
> --- In libertybasic@yahoogroups.com, "pendl2megabit"
> <pendl2megabit@y...> wrote:
> > Stefan,
> > "The Wrap" is a program to wrap your whole distribution
> package into a single
> > EXE file.
> > Read more about it at http://trondoc.ezwebtech.com/
> >
> > ---
> > Stefan Pendl
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: stefanhes
> > >
> > > Sounds great. But what is it? "The Wrap!"???

Optimal Wrap
If Wrap should be included in LB5 I would like to see the following features
1. All needed files ssl-s, dll-s and and run 401.exe should automatically be
chosen.
2. In order to send several tkn-s in a package, Gordons automatic tkn-menu
should be             included.
3. Wrap should have to file options: 1. files that can be erased by closing  and
2. files             that should  not be erased by closing
4. Wrap should also have its own compression algoritm.
I myself can not design that kind of program but I am sure somebody else out
there can.
A happy new year to all of you
Ingemar



>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

#23990 From: "Gordon Sweet" <gordon@...>
Date: Sun Jan 2, 2005 8:34 am
Subject: SUGGESTION for LB 5 and deleteing files.
gordonsweet2000
Send Email Send Email
 
Ref To:-
Message: 3
    Date: Fri, 31 Dec 2004 17:15:12 +0100
    From: "Ingemar Bjerle" <ingemar.bjerle@...>
Subject: Re: Re: SUGGESTION for LB 5

Ingemar,

Nice to see you active in the egroup again. I too have found occasions when
Windows refuses to allow you delete what is a useless file. The secret is to use
DOS, which may also entail changing the File Attributes, although you may still
not be allowed to delete it using the MSDOS/Command Prompt, and need to Boot up
under DOS.

With Windows XP you just tap the F8 key a few times while waiting for Windows to
start after the opening CMOS check of the RAM. Next select the ' Safe Mode with
Command Prompt' option, and wait a mo. If you are not experienced in using DOS
commands I have a nice 32K Freeware DOS Filemanager anyone is welcome to have
called PCA, if they care to Email me. This does everything the same as the
Windows Filedialog etc. You will need to enter say CD\temp if you have unzipped
into C:\temp.

Gordon S.

[Non-text portions of this message have been removed]

#23991 From: osirisra01@...
Date: Sun Jan 2, 2005 12:39 pm
Subject: New fella'
osirisra01
Send Email Send Email
 
I'm a newbie here, although I've been a member for about a month.
   The call sign is ROBB !
   Got hooked on the notion of tinkering with Basic around 96', but until
recently, never really did much with
the idea.
   I would have to say  that I like programming more for the
possibilities than anything else.
   I'm into Java, C++ (but secondly to Java), VisualBasic.Net, (X)-HTML,
and about ten more or so, but now...
good ol LB's taking its seat amongst the ranks of programming
opportunities I like to dabble in.
   I'm thinking that I'm obsessive compulsive about programming, I have a
bad habit of analyzing
real life situations like you would a snippet of code, it's a sickness
that's good for ya'.
   Life's shadow is irredecent code!!!
   Anyway, it's nice to be here with all of you, in this forum.

   I'm telling ya' the hardest part of programming is Gooogle Search!
   Once you crack Gooogle, you got it made!

#23992 From: "Ron Spruell" <spruell9@...>
Date: Sun Jan 2, 2005 2:56 pm
Subject: Re: SUGGESTION for LB 5 and deleteing files.
ronspruell
Send Email Send Email
 
I like DOS, grew up using DOS and DOS commands and I had a hard time
learning to use windows. Old dogs are hard pressed to change. The Disk
Operating System was the only thing we or I had to use when I started and
what I used as long as I could. Then Bill Gates got another idea again like
he got the DOS idea "which by the way he just almost stole" again from other
programmers. Other programmers had made Windows that loaded all of your exe
and com files from all of your Dir. so that you could run all your programs
from their windows and you wouldn't have to change to the dir the file was
in, then type in the name of the program in that you wanted to run,  then
you had to press enter to run the program and the program ran and for my
part when he started making windows he ruined a perfectly good operating
system. Then you had all of a program in one directory and in that directory
you had either a program with an extension of EXE or a COM that you ran. If
you didn't like the program all you did was delete that directory and all of
the file or rather program was gone and I mean all of it. That was when RAM
or memory was real expensive and hard drives were very expensive and all
programmers were using either Binary or Assembly language. In binary you had
to program each and every bit, very time consuming but very fast and very
conservative on memory use and disk space since the programmer controlled
all functions of the program him self. Then came Assembly Language a little
higher form of Binary where the programmer was not in control of all the
function or memory and other things but Assembly Isolated him from some of
the small things as where the program was stored and what memory to allocate
and then release and was a little faster but the main thing was it still
generated very small programs and used little memory. Programs written in
Assembly were very small and did a lot. Now we have inexpensive memory and
lots of it and we also have C and C++ and they are big big programs so they
take up a lot of disk space (glad disk space is cheap now also) and they use
a lot of memory but it's a lot easier to learn and use. Doesn't bother any
programmers today that just to place " Hello world " on your screen takes a
big program some 500K bytes program or more. It's been a long time since I
have looked and the number maybe wrong but believe me it takes a lot of
program in C++ to place those words on your screen. Also DOS came with a
little compiler you could write COM programs your self and a lot of Magazine
had little programs you could type in and run. I really miss those useful
little programs. I could go on and on but I believe I have gone way to far
all ready. <BG> Does anyone remember Dvorak's Guide to DOS & PC Performance?
I still have that book and others. I still have DR DOS remember that? The
thing is DOS is still there and you can do a lot to help you recover from
Windows whether it be Me or XP. If you get a virus and your virus engine
finds a virus in a critical windows file it will not delete it so you have
to get the name of the file then boot to dos delete the file get the file
from your installation disk and then install it in the same place. That easy


Ron Spruell

-------Original Message-------

From: Gordon Sweet
Date: 01/02/05 02:35:10
To: libertybasic@yahoogroups.com
Subject: [libertybasic] SUGGESTION for LB 5 and deleteing files.

Ref To:-
Message: 3
    Date: Fri, 31 Dec 2004 17:15:12 +0100
    From: "Ingemar Bjerle" <ingemar.bjerle@...>
Subject: Re: Re: SUGGESTION for LB 5

Ingemar,

Nice to see you active in the egroup again. I too have found occasions when
Windows refuses to allow you delete what is a useless file. The secret is to
use DOS, which may also entail changing the File Attributes, although you
may still not be allowed to delete it using the MSDOS/Command Prompt, and
need to Boot up under DOS.

With Windows XP you just tap the F8 key a few times while waiting for
Windows to start after the opening CMOS check of the RAM. Next select the '
Safe Mode with Command Prompt' option, and wait a mo. If you are not
experienced in using DOS commands I have a nice 32K Freeware DOS Filemanager
anyone is welcome to have called PCA, if they care to Email me. This does
everything the same as the Windows Filedialog etc. You will need to enter
say CD\temp if you have unzipped into C:\temp.

Gordon S.

[Non-text portions of this message have been removed]




Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/libertybasic/

To unsubscribe from this group, send an email to:
libertybasic-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]

#23993 From: "stefanhes" <sjmhesseling@...>
Date: Sun Jan 2, 2005 3:05 pm
Subject: Re: New fella'
stefanhes
Send Email Send Email
 
Are you serious? You last line ...??

And when I clicked your name ....(????)

Stefan Hesseling



--- In libertybasic@yahoogroups.com, osirisra01@y... wrote:
>
>   I'm a newbie here, although I've been a member for about a month.
>   The call sign is ROBB !
>   Got hooked on the notion of tinkering with Basic around 96', but
until
> recently, never really did much with
> the idea.
>   I would have to say  that I like programming more for the
> possibilities than anything else.
>   I'm into Java, C++ (but secondly to Java), VisualBasic.Net, (X)-HTML,
> and about ten more or so, but now...
> good ol LB's taking its seat amongst the ranks of programming
> opportunities I like to dabble in.
>   I'm thinking that I'm obsessive compulsive about programming, I
have a
> bad habit of analyzing
> real life situations like you would a snippet of code, it's a sickness
> that's good for ya'.
>   Life's shadow is irredecent code!!!
>   Anyway, it's nice to be here with all of you, in this forum.
>
>   I'm telling ya' the hardest part of programming is Gooogle Search!
>   Once you crack Gooogle, you got it made!

#23994 From: "JanetTerra" <janetterra@...>
Date: Sun Jan 2, 2005 5:01 pm
Subject: Re: New fella'
JanetTerra
Send Email Send Email
 
--- In libertybasic@yahoogroups.com, osirisra01@y... wrote:
[snip]
>   I'm telling ya' the hardest part of programming is Gooogle Search!
>   Once you crack Gooogle, you got it made!

I can remember shying away from the new computers in the library and
heading straight for the comfortable index cards in those long card
drawers all nicely alphabetized and coded according to the Dewey
Decimal System.  There is certainly a learning curve to identifying
the most appopriate keywords in a Google search, but BASIC was around
long before Google.  (I'm from the Apple IIe generation.)
I'm glad you're finding LB to meet your needs.  I would offer a
counter statement, though:  Once you search the LB newsleters, you
got it made!  <smile>  Welcome to the group!
Janet

#23995 From: "doggbiskits" <doggbiskits@...>
Date: Sun Jan 2, 2005 5:23 pm
Subject: Re: New fella'
doggbiskits
Send Email Send Email
 
> <smile>  Welcome to the group!
> Janet

That last line almost made me cry... : )

Lol

--Minkis

#23996 From: "carlgundel" <carlg@...>
Date: Sun Jan 2, 2005 11:19 pm
Subject: Re: call with negative parameter error
carlgundel
Send Email Send Email
 
--- In libertybasic@yahoogroups.com, "pendl2megabit"
<pendl2megabit@y...> wrote:
> Stefan,
>  LB needs any calculation to allow negative numbers:
>
> call add 0-2, 5
> call add (-2), 5
>
> Both work ???
>
> I would suggest this a bug in the parser.

Yes, a bug in the parser for the CALL statement.  Amazing that it
has gone undetected this long.

It only seems to affect the first parameter.  IMO the cleanest
workaround is putting parenthesis around the parameter as you show
above.


-Carl

#23997 From: "pendl2megabit" <pendl2megabit@...>
Date: Mon Jan 3, 2005 12:37 am
Subject: AW: call with negative parameter error
pendl2megabit
Send Email Send Email
 
Calls to SUBs are mainly done with variables, there are very rare cases to
pass plain numbers as the first argument and less with a negative number.

Thats why this bug has been undicovered so long.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: carlgundel
>
> Yes, a bug in the parser for the CALL statement.  Amazing that it
> has gone undetected this long.
>
> It only seems to affect the first parameter.  IMO the cleanest
> workaround is putting parenthesis around the parameter as you show
> above.
>
>
> -Carl

#23998 From: libertybasic@yahoogroups.com
Date: Mon Jan 3, 2005 9:12 pm
Subject: New file uploaded to libertybasic
libertybasic@yahoogroups.com
Send Email Send Email
 
Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the libertybasic
group.

   File        : /  Andy's Stuff/Spira-Doodle.zip
   Uploaded by : andy_107_5 <aandres1@...>
   Description : A fun, colorful, interactive little applet to show off LB's
graphics capabilities

You can access this file at the URL:
http://groups.yahoo.com/group/libertybasic/files/%20%20Andy%27s%20Stuff/Spira-Do\
odle.zip

To learn more about file sharing for your group, please visit:
http://help.yahoo.com/help/us/groups/files

Regards,

andy_107_5 <aandres1@...>

#24002 From: "pendl2megabit" <pendl2megabit@...>
Date: Tue Jan 4, 2005 11:08 am
Subject: AW: Joystick input in v3.03? AND Analog joystick input?
pendl2megabit
Send Email Send Email
 
No native way in LB3.x or less, the only way is to call the Windows API
functions directly using CALLDLL.

You can download LB4.x for free and try it, to see if it works with your
device.
Carl mentioned some time back, that he used an USB joystick to test his code
himself.

Please don't start different threads for the same question ;-)

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: tpmonkish
>
> Hi, I've got an analog joystick and need to experiment with different
> types of pointer control schemes (e.g. positional, velocity, etc). My
> joystick is installed via the standard Windows HID (Human Interface
> Device) drivers and listed under gaming controllers in Control Panel
> (i.e. there are no fancy proprietary drivers in use).
>
> Is there a way to grab the joypad's analog x/y values so I can move
> my own pointer around a graphics screen in LB v3.03?
>
> I know LB4 has joystick input, but how can I do the same in V3? Would
> V4 be guaranteed to work?
>
> Thanks :)

#24003 From: libertybasic@yahoogroups.com
Date: Tue Jan 4, 2005 6:41 pm
Subject: New file uploaded to libertybasic
libertybasic@yahoogroups.com
Send Email Send Email
 
Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the libertybasic
group.

   File        : /Math Functions/triangle functions.bas
   Uploaded by : skycraftdotnet <jeff@...>
   Description : functions for solving angles, etc in a triangle

You can access this file at the URL:
http://groups.yahoo.com/group/libertybasic/files/Math%20Functions/triangle%20fun\
ctions.bas

To learn more about file sharing for your group, please visit:
http://help.yahoo.com/help/us/groups/files

Regards,

skycraftdotnet <jeff@...>

#24004 From: Jeff Williams <jeff@...>
Date: Tue Jan 4, 2005 6:56 pm
Subject: Trig functions
skycraftdotnet
Send Email Send Email
 
Hi all, I've uploaded a .bas file containing a bunch of functions for
solving triangles. I'm fairly sure there are no errors in it, but I am a
math dummy, so if anyone sees a problem, or can recommend improvements,
please let me know.

Thanks, Jeff

#24005 From: "tpmonkish" <tom@...>
Date: Tue Jan 4, 2005 8:08 pm
Subject: Trapclose help needed
tpmonkish
Send Email Send Email
 
LB version 4:

I'm having a difficult job understanding how to trap the user closing
my graphics window while the program is drawing in the window.

I've seen use of the "wait" command after the "trap" command, but I
don't want the program to halt. I just want to ensure that the
program ends and window closes properly if the user clicks [X] while
the program is drawing.

Thanks :)

Here's my program in which trapclose fails to work as I want (the
program just moves a dot around the screen in relation to joystick
movement):

open "Move the dot over the boxes" for graphics_fs_nsb as #screen
xscale=DisplayWidth/65536
yscale=DisplayHeight/65536
oldx=32768
oldy=32768
print #screen, "fill black"
print #screen, "color black"
print #screen, "trapclose [quit]"

count=10000

[loop]
if count=10000 then
     xtarget=rnd(1)*65536*xscale
     ytarget=rnd(1)*65536*yscale
     print #screen, "up"
     print #screen, "goto ";xtarget;" ";ytarget
     print #screen, "backcolor green"
     print #screen, "down"
     print #screen, "boxfilled ";xtarget+10;" ";ytarget+10
end if

readjoystick 1
xpos=Joy1x*xscale
ypos=Joy1y*yscale

print #screen, "up"
print #screen, "goto ";oldx;" ";oldy
print #screen, "backcolor black"
print #screen, "down"
print #screen, "circlefilled 5"

print #screen, "up"
print #screen, "goto ";xpos;" ";ypos
print #screen, "backcolor white"
print #screen, "down"
print #screen, "circlefilled 5"

print #screen, "discard"

oldx=xpos
oldy=ypos
count=count-1
if count=0 then count=10000
goto [loop]

[quit]
close #screen
end

#24006 From: "pendl2megabit" <pendl2megabit@...>
Date: Tue Jan 4, 2005 8:43 pm
Subject: AW: Trapclose help needed
pendl2megabit
Send Email Send Email
 
Place a SCAN command directly after the [loop] branch line:

[loop]
scan

This will allow LB to check if the user has issued any mouse or keyboard
events.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: tpmonkish
>
> LB version 4:
>
> I'm having a difficult job understanding how to trap the user closing
> my graphics window while the program is drawing in the window.
>
> I've seen use of the "wait" command after the "trap" command, but I
> don't want the program to halt. I just want to ensure that the
> program ends and window closes properly if the user clicks [X] while
> the program is drawing.
>
> Thanks :)

#24007 From: "phua_yinjun" <phua_yinjun@...>
Date: Tue Jan 4, 2005 8:50 am
Subject: RE: Dword unreconizable???
phua_yinjun
Send Email Send Email
 
Hi, I have a problem here, why my Liberty BASIC can't reconize the
word 'Dword'???

#24008 From: "snelton" <snelton@...>
Date: Tue Jan 4, 2005 2:36 am
Subject: textbox
snelton
Send Email Send Email
 
Group,

When running my program, at intermittent times, some of the textboxes
will not accept any keyboard input.  I can follow the same exact
procedure every time or I can change it up.  One time a certain
textbox will not work.  The next run that box will work just fine but
a different box will not.  At times, I have no problems.

Any ideas?

Sam

PS  Just want to let all of you know how appreciative I am for all
your help both here and through direct email.  Thank you all very
much.  I would never have gotten as far as I have without you.

#24009 From: "futurenavypilot" <futurenavypilot@...>
Date: Mon Jan 3, 2005 6:45 am
Subject: Re: Miscompiled a .tkn into .exe
futurenavypilot
Send Email Send Email
 
--- In libertybasic@yahoogroups.com, "rjdeible" <rjdeible@c...> wrote:
>
>
> --- In libertybasic@yahoogroups.com, Chergarj@c... wrote:
> > In a message dated 12/25/2004 9:14:09 PM Pacific Standard Time,
> > futurenavypilot@y... writes:
> > > I wrote my own code, so I feel like I should try to compile it
> into a
> > > .exe since it is source because I was getting tired of .tkn. I am
> > > fairly new to coding and compiling programs but I have learned
> you can
> > > not subsitute a .exe for a .tkn. So, what I did was I went
> to "Compile
> > > to .tkn" in my LB4 Gold. But when it asked me to save it,
> instead of
> > > putting "Program.tkn" I put "Program.exe" in "" so it overwrote
> the
> > > .tkn file extension. Now, to my knowledge, it is on my desktop
> and it
> > > is practically impossible to delete. I tried to see if it was in
> The
> > > Task Manager, but it was not there. I tried to see if it was in
> > > "msconfig" to see if it was being started with windows. I tried
> to see
> > > if it was running at begin of windows through autoexec.bat but
> not
> > > luck. I hope someone can help me delete this 'silent' program
> off of
> > > my computer. Thanks a lot!
> > >
> >
> > The misnamed file is either on your computer, or it is not on your
> computer.
> > Use the FIND function in Windows.  When you find the file, you can
> delete it.
> >
> >
> > Liberty BASIC does not permit you to create a EXE file of your
> program.  You
> > make a TKN file; and rename a copy of RUN.EXE to the same name as
> your TKN
> > file.  The user then runs the EXE file which runs the TKN file.
> Check the LB
> > help files.
> >
> > G           C
> >
> >
> > [Non-text portions of this message have been removed]
>
> I am not sure if I understand correctly, but if you know where the
> file is, and it just won't delete, you may have to restart your
> system.  It may be running in the background for some reason, that
> is a common problem with windows XP.  Restarting your computer would
> clear all runnning programs that you do not need running, na dtne it
> would allow you to delete it.


I have this file, contact3.exe on my desktop, i took a screenshot and
i have the error. I am not new to computers and operating systems. I
have checked msconfig, not there. I have checked control panel, not
there. I have restarted multiple times, still wont delete. Let me go
check autoexec.bat - hopefully it wouldnt do that!

#24010 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 5:05 am
Subject: AW: Dword unreconizable???
pendl2megabit
Send Email Send Email
 
DWORD is replaced by ULONG.

The reference is still there, but it is superseeded.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: phua_yinjun
>
> Hi, I have a problem here, why my Liberty BASIC can't reconize the
> word 'Dword'???

#24011 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 5:16 am
Subject: AW: Miscompiled a .tkn into .exe
pendl2megabit
Send Email Send Email
 
If you don't like the EXE to appear on the desktop, delete it.
The O/S might come up with a confirmation that could be ignored and answered
with YES.

If you are still not able to delete the file check for a running instance with
the TaskManager.
If there is a process called like your EXE under the Processes tab, select
it -> use the RMB menu to stop the whole process structure.

Starting with Win2k and WinXP, the AUTOEXEC.BAT is no more in use, even if it
will be present on the boot partition.

For further help, the error message would be necessary.
This e-group does not support attachements, so be sure to write the message
down.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: futurenavypilot
>
> I have this file, contact3.exe on my desktop, i took a screenshot and
> i have the error. I am not new to computers and operating systems. I
> have checked msconfig, not there. I have checked control panel, not
> there. I have restarted multiple times, still wont delete. Let me go
> check autoexec.bat - hopefully it wouldnt do that!

#24012 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 5:18 am
Subject: AW: textbox
pendl2megabit
Send Email Send Email
 
Hey,
	 some code would help to nail down the problem.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: snelton
>
> Group,
>
> When running my program, at intermittent times, some of the textboxes
> will not accept any keyboard input.  I can follow the same exact
> procedure every time or I can change it up.  One time a certain
> textbox will not work.  The next run that box will work just fine but
> a different box will not.  At times, I have no problems.
>
> Any ideas?
>
> Sam
>
> PS  Just want to let all of you know how appreciative I am for all
> your help both here and through direct email.  Thank you all very
> much.  I would never have gotten as far as I have without you.

#24013 From: Chergarj@...
Date: Wed Jan 5, 2005 1:41 am
Subject: Re: textbox
gjosefc
Send Email Send Email
 
In a message dated 01/04/2005 8:49:13 PM Pacific Standard Time,
snelton@... writes:
> When running my program, at intermittent times, some of the textboxes
> will not accept any keyboard input.  I can follow the same exact
> procedure every time or I can change it up.  One time a certain
> textbox will not work.  The next run that box will work just fine but
> a different box will not.  At times, I have no problems.
>
> Any ideas?

Description suggests a SETFOCUS code adjustment need.

G         C


[Non-text portions of this message have been removed]

#24017 From: "tpmonkish" <tom@...>
Date: Wed Jan 5, 2005 11:14 am
Subject: Re: Thanks :)
tpmonkish
Send Email Send Email
 
Thanks Stefan, that worked great :)

Here's a summery:

open "test" for graphics_fs_nsb as #screen
print #screen, "trapclose [quit]"
[loop]
rem do stuff
goto [loop]
[quit]
close #screen
end

Didn't work, so Steffan suggested the following which did:

open "test" for graphics_fs_nsb as #screen
print #screen, "trapclose [quit]"
[loop]
scan
rem do stuff
goto [loop]
[quit]
close #screen
end

#24018 From: "tylertx321" <tylertx321@...>
Date: Wed Jan 5, 2005 11:36 am
Subject: Display a bmp file in a graphics box
tylertx321
Send Email Send Email
 
I used this example from the tutor on how to display a bmp file
(picture). This code works
    open "Graphicbox example" for dialog as #main
but when I change it to this it does not work.
    open "Graphicbox example" for window as #main
The program works but does not display the picture.

The help file says that the graphicsbox works in all windows

#24019 From: "stefanhes" <sjmhesseling@...>
Date: Wed Jan 5, 2005 2:50 pm
Subject: Re: Display a bmp file in a graphics box
stefanhes
Send Email Send Email
 
Before opening a window add something like this

graphicbox #main.gb, 10,10,50,70

Your "Graphicbox example" is just the name of your window, not any
command!

Hth

Stefan Hesseling


--- In libertybasic@yahoogroups.com, "tylertx321" <tylertx321@y...>
wrote:
>
> I used this example from the tutor on how to display a bmp file
> (picture). This code works
>    open "Graphicbox example" for dialog as #main
> but when I change it to this it does not work.
>    open "Graphicbox example" for window as #main
> The program works but does not display the picture.
>
> The help file says that the graphicsbox works in all windows

#24020 From: "waxmanmj" <waxman@...>
Date: Wed Jan 5, 2005 1:47 pm
Subject: Calling URL
waxmanmj
Send Email Send Email
 
When I try to run this code I get an error message
file not found

Url$ = "www.yahoo.com"
RUN "iexplore.exe "; Url$
end

Also, can I bring up more than one URL, one after another?
Thanks,
genhdbk

#24021 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 4:39 pm
Subject: AW: Calling URL
pendl2megabit
Send Email Send Email
 
The correct way, that will work on any Windows platform is:

	 Url$ = "http://www.yahoo.com"
	 run "explorer.exe "; Url$

The program "iexplore.exe" is only valid for Windows 9x.
Also be sure to include the protocol type (HTTP://, FTP://, etc.) in the URL.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: waxmanmj
>
>  When I try to run this code I get an error message
> file not found
>
> Url$ = "www.yahoo.com"
> RUN "iexplore.exe "; Url$
> end
>
> Also, can I bring up more than one URL, one after another?
> Thanks,
> genhdbk

#24022 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 4:45 pm
Subject: AW: Display a bmp file in a graphics box
pendl2megabit
Send Email Send Email
 
You must have done more than changing the type DIALOG to WINDOW.

If I change the window type under:

	 lb4tutorial.lsn -> Lesson Five, More Graphics -> Graphicbox

It works as expected.

Can you post your current code for investigation ???

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: tylertx321
>
> I used this example from the tutor on how to display a bmp file
> (picture). This code works
>    open "Graphicbox example" for dialog as #main
> but when I change it to this it does not work.
>    open "Graphicbox example" for window as #main
> The program works but does not display the picture.
>
> The help file says that the graphicsbox works in all windows

#24023 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 4:53 pm
Subject: AW: Trapclose help needed
pendl2megabit
Send Email Send Email
 
If you are programming a tight loop you will always have to allow LB to check
for user interaction.

The common way with GUIs is to use WAIT and wait for the users action.

Running a continous loop, you will have to check for user action by yourself.
This is done with the SCAN command, which is placed at a point inside the
loop, where the check should happen.
The prefered position is the beginning of the loop, to avoid running the loop,
if it is no more necessary, based on the users action (closing the window).

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: tpmonkish
>
> Thanks Stefan, that worked great :)
>
> Here's a summery:
>
> open "test" for graphics_fs_nsb as #screen
> print #screen, "trapclose [quit]"
> [loop]
> rem do stuff
> goto [loop]
> [quit]
> close #screen
> end
>
> Didn't work, so Steffan suggested the following which did:
>
> open "test" for graphics_fs_nsb as #screen
> print #screen, "trapclose [quit]"
> [loop]
> scan
> rem do stuff
> goto [loop]
> [quit]
> close #screen
> end

#24024 From: "pendl2megabit" <pendl2megabit@...>
Date: Wed Jan 5, 2005 4:57 pm
Subject: AW: Thanks
pendl2megabit
Send Email Send Email
 
No need to delete any message that is "On Topic" from this group.
It is not easy to follow a broken thread, if any message is deleted.

---
Stefan Pendl


> -----Ursprüngliche Nachricht-----
> Von: tpmonkish
>
> Thanks Stefan, that worked great :)
>
> Sorry to admin, I thought I was deleting my reply, but it deleted my
> original message as well :(

Messages 23989 - 24024 of 46623   Oldest  |  < Older  |  Newer >  |  Newest Start Topic
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help