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: 5577
  • Founded: Jan 12, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 39485 - 39514 of 46456   Oldest  |  < Older  |  Newer >  |  Newest Start Topic
Messages: Show Message Summaries Sort by Date ^  
#39485 From: "Lorne Russell" <lorneokb@...>
Date: Sun Nov 1, 2009 5:01 pm
Subject: Re: Transfer data from LB program to web page text box
lorneokb
Send Email Send Email
 
Well I figured out how to encode the data in the URL by just adding it at the
end of the url preceded by a ? for example

www.libertbybasic.com?serial=12345-67890

Now I need to know how the webpage can extract that data and put it in the
textbox for me.

Also trying to find a script that forces the user to enter their email address
twice and then the web page checks both are identical before processing the
form.

I'm not very knowledgeable about HTML stuff - any help would be appreciated.

Lorne Russell

   ----- Original Message -----
   From: Lorne Russell
   To: Lorne Russell
   Sent: Sunday, November 01, 2009 7:45 AM
   Subject: Transfer data from LB program to web page text box


   Hi:

   I am trying to set up online registration of my LB products.

   I would like to transfer a serial number like "12345-67890" from my LB program
to a textbox in a web page, so the user will not have to type it in himself.  I
can open the web page fine using ShellExecuteA.

   Is there some way to place the serial number in the URL and then have the
webpage extract that serial number from the URL and put it in the textbox?

   Many thanks,

   Lorne Russell


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

#39486 From: "torpidai" <avnumone@...>
Date: Sun Nov 1, 2009 5:10 pm
Subject: Re: Transfer data from LB program to web page text box
torpidai
Send Email Send Email
 
Lorne,

   For that, HTML is no good to you, HTML, is, as it's name suggests, just
"Mark-up", for what you need, I'd suggest looking into Php with database of your
preference, many free hosts offer SQL:)

There are other ways of course, but php is the way I'd go, and sorry I can't
offer you any code, it's been years since I did similar for my secondlife.

regards

Mick (Torpidai)



--- In libertybasic@yahoogroups.com, "Lorne Russell" <lorneokb@...> wrote:
>
> Well I figured out how to encode the data in the URL by just adding it at the
end of the url preceded by a ? for example
>
> www.libertbybasic.com?serial=12345-67890
>
> Now I need to know how the webpage can extract that data and put it in the
textbox for me.
>
> Also trying to find a script that forces the user to enter their email address
twice and then the web page checks both are identical before processing the
form.
>
> I'm not very knowledgeable about HTML stuff - any help would be appreciated.
>
> Lorne Russell
>
>   ----- Original Message -----
>   From: Lorne Russell
>   To: Lorne Russell
>   Sent: Sunday, November 01, 2009 7:45 AM
>   Subject: Transfer data from LB program to web page text box
>
>
>   Hi:
>
>   I am trying to set up online registration of my LB products.
>
>   I would like to transfer a serial number like "12345-67890" from my LB
program to a textbox in a web page, so the user will not have to type it in
himself.  I can open the web page fine using ShellExecuteA.
>
>   Is there some way to place the serial number in the URL and then have the
webpage extract that serial number from the URL and put it in the textbox?
>
>   Many thanks,
>
>   Lorne Russell
>
>
> [Non-text portions of this message have been removed]
>

#39487 From: Robert Lawson <avnumone@...>
Date: Sun Nov 1, 2009 5:19 pm
Subject: Re: Re: Transfer data from LB program to web page text box
torpidai
Send Email Send Email
 
My bad, I'd assumed you'd need the website to parse the data too.

You should find something to help you here :-
http://javascript.internet.com/forms/ though I'd still suggest Php being the
way to go, and there are many free Php code sources too.


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

#39488 From: "Lorne Russell" <lorneokb@...>
Date: Sun Nov 1, 2009 9:30 pm
Subject: Re: Transfer data from LB program to web page text box
lorneokb
Send Email Send Email
 
Well after several exasperating hours I finally figured it out.  I had to

label my webpage with the extension .php
then extract the serial number with <?php $serial=$_GET["serial] ?>
then insert the serial number in the textbox with  value=<?php echo $serial;?>

Lorne

   ----- Original Message -----
   From: Lorne Russell
   To: libertybasic@yahoogroups.com
   Sent: Sunday, November 01, 2009 9:01 AM
   Subject: Re: Transfer data from LB program to web page text box


   Well I figured out how to encode the data in the URL by just adding it at the
end of the url preceded by a ? for example

   www.libertbybasic.com?serial=12345-67890

   Now I need to know how the webpage can extract that data and put it in the
textbox for me.

   Also trying to find a script that forces the user to enter their email address
twice and then the web page checks both are identical before processing the
form.

   I'm not very knowledgeable about HTML stuff - any help would be appreciated.

   Lorne Russell

     ----- Original Message -----
     From: Lorne Russell
     To: Lorne Russell
     Sent: Sunday, November 01, 2009 7:45 AM
     Subject: Transfer data from LB program to web page text box


     Hi:

     I am trying to set up online registration of my LB products.

     I would like to transfer a serial number like "12345-67890" from my LB
program to a textbox in a web page, so the user will not have to type it in
himself.  I can open the web page fine using ShellExecuteA.

     Is there some way to place the serial number in the URL and then have the
webpage extract that serial number from the URL and put it in the textbox?

     Many thanks,

     Lorne Russell


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

#39489 From: Robert Lawson <avnumone@...>
Date: Sun Nov 1, 2009 9:36 pm
Subject: Re: Re: Transfer data from LB program to web page text box
torpidai
Send Email Send Email
 
hehe, yes, I blame BASIC for my lack of understanding of syntax when it
comes toother languages, all fun and games hu?

WTG for getting there that quickly, took me days, and way too many web
pages as I remember it.

Did you check out their AJAX scripts too? They are worth looking at if ever
you ever wish to complicate matters further lol.


2009/11/1 Lorne Russell <lorneokb@...>

>
>
> Well after several exasperating hours I finally figured it out. I had to
>
> label my webpage with the extension .php
> then extract the serial number with <?php $serial=$_GET["serial] ?>
> then insert the serial number in the textbox with value=<?php echo
> $serial;?>
>
> Lorne
>
>
> ----- Original Message -----
> From: Lorne Russell
> To: libertybasic@yahoogroups.com <libertybasic%40yahoogroups.com>
> Sent: Sunday, November 01, 2009 9:01 AM
> Subject: Re: Transfer data from LB program to web page text box
>
> Well I figured out how to encode the data in the URL by just adding it at
> the end of the url preceded by a ? for example
>
>
www.libertbybasic.com?serial=12345-67890<http://www.libertbybasic.com/?serial=12\
345-67890>
>
> Now I need to know how the webpage can extract that data and put it in the
> textbox for me.
>
> Also trying to find a script that forces the user to enter their email
> address twice and then the web page checks both are identical before
> processing the form.
>
> I'm not very knowledgeable about HTML stuff - any help would be
> appreciated.
>
> Lorne Russell
>
> ----- Original Message -----
> From: Lorne Russell
> To: Lorne Russell
> Sent: Sunday, November 01, 2009 7:45 AM
> Subject: Transfer data from LB program to web page text box
>
> Hi:
>
> I am trying to set up online registration of my LB products.
>
> I would like to transfer a serial number like "12345-67890" from my LB
> program to a textbox in a web page, so the user will not have to type it in
> himself. I can open the web page fine using ShellExecuteA.
>
> Is there some way to place the serial number in the URL and then have the
> webpage extract that serial number from the URL and put it in the textbox?
>
> Many thanks,
>
> Lorne Russell
>
> [Non-text portions of this message have been removed]
>
>
>



--
Mick (Torpidai)


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

#39490 From: "zoomkat" <Zoomkat@...>
Date: Mon Nov 2, 2009 12:14 am
Subject: Re: Transfer data from LB program to web page text box
zoomkat
Send Email Send Email
 
--- In libertybasic@yahoogroups.com, "Lorne Russell" <lorneokb@...> wrote:
>
> Well after several exasperating hours I finally figured it out.  I had to
>
> label my webpage with the extension .php
> then extract the serial number with <?php $serial=$_GET["serial] ?>
> then insert the serial number in the textbox with  value=<?php echo $serial;?>
>
> Lorne

LB is not well suited to operate on the server side of a web transaction. Most
web servers transact with server CGI programs using stdin and stdout, which LB
isn't well suited. Below is simple FreeBasic code example that when compiled can
work with servers like Apache. For test purposes it sends back to the brouser
the info that is passed either as a "get" or a "post". Code could be added in to
process the info and return the desired result. As to registering software,
there has been discussion in the just basic forum on how to register a program
to a specific hard drive.



'' Simple CGI example
'' - return request back to client

Dim As String method, request
Dim As Integer length

method = Environ("REQUEST_METHOD")

Select Case Ucase(method)
Case "HEAD"
   Print "Content-type: text/html"
   Print
   End

Case "GET"
   request = Environ("QUERY_STRING")

Case "POST"
   length = Val(Environ("CONTENT_LENGTH"))
   Open cons For Input As #1
   request = Space( length )
   Get #1,,request
   Close #1

Case Else
   Print "Content-type: text/html"
   Print
   Print "<html><body>Invalid Request</body></html>"
   End

End Select

'' send content

Print "Content-type: text/html"
Print
print "<html><body>"
Print "request:<br>"
Print "<pre>"
Print request
Print "</pre>"
Print "</body></html>"

End

#39491 From: "marmicpc" <Marmicpc@...>
Date: Mon Nov 2, 2009 12:11 am
Subject: Re: Changine Combobox Color
marmicpc
Send Email Send Email
 
Sam W.:

I thought about the style bits approach, but if the vender is not currently in
the DB, the client wants to be able to add it at that point, so read only kind
of kills that idea.

I am currently contemplating writing a lot of additional code to "fake" the add
vender process in order to maintain the color of the combobox as required by the
client.  Not even sure that will work or that I can write it and get it to work
in the time limits that I currently have.

Ahh, life in the programming world!

Mike

--- In libertybasic@yahoogroups.com, "swetterlin" <swetterlin@...> wrote:
>
> I have had similar experiences with combo boxes. Sometimes the textbox portion
is highlighted no matter what you do, which I think is what causes the color
change. It usually gets cured when the user actually makes a selection. I tried
all the same things--set focus elsewhere, hide and show, etc. The only thing
that consistently fixed the problem was to set the stylebits so the combobox was
read only. Of course, if you need the user to type into it, that's no good. And
it also turns out that if you want to respond immediately to a user selection in
the combobox, making it read-only seems to disable the click event.
> Sam W.
>
> --- In libertybasic@yahoogroups.com, "JanetTerra" <janetterra@> wrote:
> >
> >
> > Mike,
> > I get a totally white textbox portion of the combobox until the mouse hovers
over.  Then it turns yellow.  I tried remming out all the other controls and
then showing the other controls one by one to see if something else is
encroaching on the combobox space.  When it's just the combobox, the combo
textbox portion is solid yellow.  When I add any other controls, I get
inconsistent results, sometimes white, sometimes yellow.  So far I haven't been
able to reliably reproduce either a white or a yellow with any particular
combination.  I tried refreshing the window, reloading the combobox, setting
focus to the combobox, even hiding then showing the combobx, anything to get
Windows to repaint the combobox, hopefully with the yellow color.  So far, it's
not happening.  It must be a bug, but most bugs like this have some kind of a
workaround.  Not sure what else to say.  It's perplexing.
> > Janet
> >
> >
> > --- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@> wrote:
> > >
> > > Hello Janet:
> > >
> > > I copied your code and ran it.  I got the same results (Combobox color is
white with a yellow tinge around the perimeter of the box until I hit the down
arrow at which time the box turns yellow and stays yellow until I exit.) This
made me think that maybe it is my computer. (Toshiba Laptop A75-S2112 running XP
(SP3)).
> > >
> > > Then I took your code to another computer (Laptop running Vista) and got a
slightly different result.  When I open the directory containing your code and
open the code and then run it, I get a yellow combo box.  At the end of the run,
if I run the code again (without exiting back to the directory), I get the white
combobox until I click on the down arrow at which time it changes to yellow. 
Each time I re-run the code, I get the same sequence, white at first the yellow.
> > >
> > > If I exit all the way out of the program back into the Windows directory
where the code is, then I start the process all over again, yellow at first,
then white until I click on the down arrow.
> > >
> > > Sounds weird so here is a stripped down version of my code.  (All I did
was delete lots of the statictext and textboxes to reduce the size of the code
for this message.)
> > >
> > > Code follows this line:
> > >
> > >     nomainwin
> > >     dim DispVenderArray$(3)
> > >     DispVenderArray$(1) = "Acme Parts"
> > >     DispVenderArray$(2) = "Best Buy"
> > >     DispVenderArray$(3) = "Charlie's Electrical"
> > >
> > > [setup.AddParts.Window]
> > >     WindowWidth = 1275
> > >     WindowHeight = 500
> > >     UpperLeftY=int((DisplayHeight-WindowHeight)/2)
> > >     TextboxColor$ = "yellow"
> > >     ComboboxColor$ = "yellow"
> > >     Combobox #AddParts.vender, DispVenderArray$(), [Vender], 615, 120,
305, 20
> > >     statictext #AddParts.partslastupdatt, "Parts Record Last Update:",
930, 115, 100, 40
> > >     textbox #AddParts.partslastupdat, 1046, 120, 90, 25
> > >     statictext #AddParts.partnamet, "Part Name: ", 5, 165, 100, 20
> > >     textbox #AddParts.partname, 115, 160, 220, 25
> > >     statictext #AddParts.quantiyt, "Qty: ", 350, 165, 40, 20
> > >     textbox #AddParts.quantity, 390, 160, 57, 25
> > >     statictext #AddParts.unitdolt, "Cost Per Item: ", 450, 155, 70, 30
> > >     textbox #AddParts.unitdol, 525, 160, 65, 25
> > >     statictext #AddParts.taxt, "Total Tax: ", 595, 155, 40, 40
> > >     textbox #AddParts.tax, 640, 160, 50, 25
> > >     statictext #AddParts.totdolt, "Total Cost: ", 700, 165, 100, 20
> > >     textbox #AddParts.totdol, 800, 160, 100, 25
> > >     button #AddParts.exit, "Exit",[quit], UL, 1155, 420,  100,  25
> > >     open "Add Parts" for window as #AddParts
> > >     print #AddParts, "font courier_new 10"
> > >     print #AddParts.exit, "!font courier_new 10 bold"
> > >     print #AddParts, "trapclose [quit]"
> > >     print #AddParts.vender, "!Select a vender"
> > >
> > > [AddParts.inputLoop]   'wait here for input event
> > >     wait
> > >
> > > [Vender]
> > >     ' Removed code for vender processing
> > >     wait
> > >
> > > [quit]   'Perform action for the button named 'exit'
> > >     close #AddParts
> > >     end
> > >
> > > Mike
> > >
> > >
> > >
> > > --- In libertybasic@yahoogroups.com, "JanetTerra" <janetterra@> wrote:
> > > >
> > > > I get a yellow background
> > > >
> > > > ' Code begins
> > > >     Dim anyArray$(20)
> > > >     For i = 1 to 20
> > > >         anyArray$(i) = "Item #";Right$("0";i, 2)
> > > >     Next i
> > > >     WindowWidth = 300
> > > >     WindowHeight = 400
> > > >     ComboboxColor$ = "Yellow"
> > > >     Combobox #demo.cx, anyArray$(), [selectCombo], 20, 20, 120, 180
> > > >     Open "My Window" for Window as #demo
> > > >     #demo, "Trapclose [quit]"
> > > >
> > > > Wait
> > > >
> > > > [quit]
> > > >     Close #demo
> > > > End
> > > > ' Code ends
> > > >
> > > > Can you post your code that doesn't show the yellow combobox?
> > > >
> > > > --- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@> wrote:
> > > > >
> > > > > In a Window type window, I define a Combobox.
> > > > >
> > > > > Immediately prior to doing so, I use the
> > > > > ComboboxColor$ = "yellow" instruction.
> > > > > (It is the instruction immediately above
> > > > > the line defining the combobox.)
> > > > >
> > > > > When I open the window, the combobox
> > > > > background color is the default color
> > > > > of white.  The box has a yellow tinge
> > > > > around the perimeter.  When I enter data
> > > > > in any field (textbox) of the window
> > > > > the combobox color then turns to
> > > > > yellow.
> > > > >
> > > > > The combobox works perfectly except
> > > > > for this color "problem".
> > > > >
> > > > > I would like for the combobox color
> > > > > to be yellow when I open the window
> > > > > since all of the windows in this series
> > > > > of programs have yellow backgrounds.
> > > > >
> > > > > Any suggestions would be appreicated.
> > > > >
> > > >
> > >
> >
>

#39492 From: "jerkyj2000" <jburman1860@...>
Date: Mon Nov 2, 2009 6:11 am
Subject: Re: Changine Combobox Color
jerkyj2000
Send Email Send Email
 
Earlier I posted a solution that worked for me. That was: Moving the combobox
statements to just before the "open "Add Parts" for window as #AddParts"
command.

Actually, just moving the combobox definition to before the open command, and
leaving the ComboboxColor$ at original spot works on my xp pro sp3 system and
Vista system every time I run it. Even changing the color of only the combobox
to another color works every time.

This seems almost too simple! Maybe someone else could check me on this and see
if it works for them?

jaba

--- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@...> wrote:


  > I would like for the combobox color
  > to be yellow when I open the window
  > since all of the windows in this series
  > of programs have yellow backgrounds.
  >
  > Any suggestions would be appreicated.

#39493 From: "johnshomeport" <johnshomeport@...>
Date: Mon Nov 2, 2009 3:59 pm
Subject: Re: Transfer data from LB program to web page text box
johnshomeport
Send Email Send Email
 
I would use a GUI written in LB to get the information from the user.

After the information is entered, including repeated e-mail address, use a
modification of Brent's PostUrlEncoded demo,
http://www.b6sw.com/forum/viewtopic.php?t=109
to send the information to the form.

John

#39494 From: "swetterlin" <swetterlin@...>
Date: Wed Nov 4, 2009 11:55 am
Subject: Re: Changine Combobox Color
swetterlin
Send Email Send Email
 
What do you mean by
"Even changing the color of only the combobox
to another color works every time."

Do you mean you include two ComboboxColor$ statements, one to set it to a
"dummy" color and then one to set it to the color you really want?

Sam W.

--- In libertybasic@yahoogroups.com, "jerkyj2000" <jburman1860@...> wrote:
>
>
>
> Earlier I posted a solution that worked for me. That was: Moving the combobox
statements to just before the "open "Add Parts" for window as #AddParts"
command.
>
> Actually, just moving the combobox definition to before the open command, and
leaving the ComboboxColor$ at original spot works on my xp pro sp3 system and
Vista system every time I run it. Even changing the color of only the combobox
to another color works every time.
>
> This seems almost too simple! Maybe someone else could check me on this and
see if it works for them?
>
> jaba
>
> --- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@> wrote:
>
>
>  > I would like for the combobox color
>  > to be yellow when I open the window
>  > since all of the windows in this series
>  > of programs have yellow backgrounds.
>  >
>  > Any suggestions would be appreicated.
>

#39495 From: "jerkyj2000" <jburman1860@...>
Date: Wed Nov 4, 2009 1:07 pm
Subject: Re: Changine Combobox Color
jerkyj2000
Send Email Send Email
 
Sam W.
Thanks for the reply. No. I meant that if I leave all the other controls set to
yellow, that I could change the combobox to red or blue and it would still hold
its color each time I ran the program. Its not really applicable - just thought
it might reinforce the fact that it seems to work when the combobox definition
is moved to just before the Open window statement.

Did you try those changes? And did it work for you? I know this seems like a
"too simple solution", but it does work for me every time. It sounds like
marmicpc is pulling his hair out and this seems to solve the problem. I'd just
like to know if my head's up somewhere it doesn't belong!

Jack

--- In libertybasic@yahoogroups.com, "swetterlin" <swetterlin@...> wrote:
>
> What do you mean by
> "Even changing the color of only the combobox
> to another color works every time."
>
> Do you mean you include two ComboboxColor$ statements, one to set it to a
"dummy" color and then one to set it to the color you really want?
>
> Sam W.
>
> --- In libertybasic@yahoogroups.com, "jerkyj2000" <jburman1860@> wrote:
> >
> >
> >
> > Earlier I posted a solution that worked for me. That was: Moving the
combobox statements to just before the "open "Add Parts" for window as
#AddParts" command.
> >
> > Actually, just moving the combobox definition to before the open command,
and leaving the ComboboxColor$ at original spot works on my xp pro sp3 system
and Vista system every time I run it. Even changing the color of only the
combobox to another color works every time.
> >
> > This seems almost too simple! Maybe someone else could check me on this and
see if it works for them?
> >
> > jaba
> >
> > --- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@> wrote:
> >
> >
> >  > I would like for the combobox color
> >  > to be yellow when I open the window
> >  > since all of the windows in this series
> >  > of programs have yellow backgrounds.
> >  >
> >  > Any suggestions would be appreicated.
> >
>

#39496 From: "will321_2000" <will321_2000@...>
Date: Wed Nov 4, 2009 6:42 pm
Subject: Question about UDP sockets.
will321_2000
Send Email Send Email
 
Does anyone know if LB can open a UDP socket? If so, does anyone have some
example source for me to look at?

I am writing a program to control a digitizer. It uses an ethernet camac crate
controller that uses the UDP frame for transactions.

Thank you in advance,


Will

#39497 From: "Lorne Russell" <lorneokb@...>
Date: Thu Nov 5, 2009 11:55 pm
Subject: Handle to Notice and Confirm dialog boxes
lorneokb
Send Email Send Email
 
I have some software I am translating into French.  I would like to know if
there is an easy way to get the handle of the Notice box and OK button in it, 
and the Confirm box and Yes/No buttons in it so I can change these to French
Oui/Non etc

Thanks,

Lorne Russell


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

#39498 From: "Lorne Russell" <lorneokb@...>
Date: Fri Nov 6, 2009 12:52 am
Subject: Re: Handle to Notice and Confirm dialog boxes
lorneokb
Send Email Send Email
 
Ignore my stupid question.  When the box appears the program waits for answer so
there is no way to find the handle or change anything in the box.

I'll just have to create my own dialogs I guess.

Lorne Russell


   ----- Original Message -----
   From: Lorne Russell
   To: libertybasic@yahoogroups.com
   Sent: Thursday, November 05, 2009 3:55 PM
   Subject: [libertybasic] Handle to Notice and Confirm dialog boxes



   I have some software I am translating into French. I would like to know if
there is an easy way to get the handle of the Notice box and OK button in it,
and the Confirm box and Yes/No buttons in it so I can change these to French
Oui/Non etc

   Thanks,

   Lorne Russell

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





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

#39499 From: "Stefan Pendl" <pendl2megabit@...>
Date: Fri Nov 6, 2009 6:51 am
Subject: RE: Handle to Notice and Confirm dialog boxes
pendl2megabit
Send Email Send Email
 
>
> Ignore my stupid question.  When the box appears the program
> waits for answer so there is no way to find the handle or
> change anything in the box.
>
> I'll just have to create my own dialogs I guess.
>
> Lorne Russell
>
>
>   I have some software I am translating into French. I would
> like to know if there is an easy way to get the handle of the
> Notice box and OK button in it, and the Confirm box and
> Yes/No buttons in it so I can change these to French Oui/Non etc
>
>   Thanks,
>
>   Lorne Russell
>

Both are using standard Windows message box types, so the button captions are
automatically translated into the language of the user
interface.

I never get a Yes/No confirmation on my German Windows, I always get Ja/Nein.

---
Stefan Pendl

Liberty BASIC Assist 4.03 ........ http://www.libertybasic.com/assist.html
Liberty BASIC 4.04 public beta ... http://www.libertybasic.com/lb404b3setup.exe

Windows Vista Home Premium 32-bit SP2
AMD Turion X2 RM-70 2GHz, 4GB RAM

#39500 From: "stefanhes" <sjmhesseling@...>
Date: Fri Nov 6, 2009 7:29 am
Subject: Re: Handle to Notice and Confirm dialog boxes
stefanhes
Send Email Send Email
 
That's right, I get a Dutch JA/NEE.

But why isn't this being translated:   "Please Confirm"?

Stefan Hesseling

--- In libertybasic@yahoogroups.com, "Stefan Pendl" <pendl2megabit@...> wrote:
>
> >
> > Ignore my stupid question.  When the box appears the program
> > waits for answer so there is no way to find the handle or
> > change anything in the box.
> >
> > I'll just have to create my own dialogs I guess.
> >
> > Lorne Russell
> >
> >
> >   I have some software I am translating into French. I would
> > like to know if there is an easy way to get the handle of the
> > Notice box and OK button in it, and the Confirm box and
> > Yes/No buttons in it so I can change these to French Oui/Non etc
> >
> >   Thanks,
> >
> >   Lorne Russell
> >
>
> Both are using standard Windows message box types, so the button captions are
automatically translated into the language of the user
> interface.
>
> I never get a Yes/No confirmation on my German Windows, I always get Ja/Nein.
>
> ---
> Stefan Pendl
>
> Liberty BASIC Assist 4.03 ........ http://www.libertybasic.com/assist.html
> Liberty BASIC 4.04 public beta ...
http://www.libertybasic.com/lb404b3setup.exe
>
> Windows Vista Home Premium 32-bit SP2
> AMD Turion X2 RM-70 2GHz, 4GB RAM
>

#39501 From: "Stefan Pendl" <pendl2megabit@...>
Date: Fri Nov 6, 2009 7:48 am
Subject: RE: Handle to Notice and Confirm dialog boxes
pendl2megabit
Send Email Send Email
 
> > >   I have some software I am translating into French. I would
> > > like to know if there is an easy way to get the handle of the
> > > Notice box and OK button in it, and the Confirm box and
> > > Yes/No buttons in it so I can change these to French Oui/Non etc
> > >
> > >   Thanks,
> > >
> > >   Lorne Russell
> > >
> >
> > Both are using standard Windows message box types, so the
> button captions are automatically translated into the
> language of the user
> > interface.
> >
> > I never get a Yes/No confirmation on my German Windows, I
> always get Ja/Nein.
> >
> > ---
> > Stefan Pendl
> >
>
> That's right, I get a Dutch JA/NEE.
>
> But why isn't this being translated:   "Please Confirm"?
>
> Stefan Hesseling
>

The caption of the confirm box is hard coded, sorry.

The caption of the notice box can be changed with:

	 NOTICE Caption$; chr$(13); Message$

---
Stefan Pendl

Liberty BASIC Assist 4.03 ........ http://www.libertybasic.com/assist.html
Liberty BASIC 4.04 public beta ... http://www.libertybasic.com/lb404b3setup.exe

Windows Vista Home Premium 32-bit SP2
AMD Turion X2 RM-70 2GHz, 4GB RAM

#39502 From: "torpidai" <avnumone@...>
Date: Sun Nov 8, 2009 5:32 pm
Subject: Still trying to close an MSOffice window.....
torpidai
Send Email Send Email
 
Any chance someone can spot the error of my ways please?

[Code_starts]

doc$ = "\Member List\KELLY.D 23 MELVILLE.doc"
calldll #shell32, "ShellExecuteA", 0 as ulong, 0 as ulong, _
doc$ as ptr, 0 as ulong, "" as ptr, 1 as ulong, hinst as ulong


calldll #user32, "GetActiveWindow", hwnd as long
print hwnd

windowhandle=0

WHILE hwnd<>0
calldll #user32,"GetWindow",_
hwnd AS word,_
_GW_HWNDPREV AS word,_
hwnd AS word

title$ = space$(255)
cch = len(title$)

calldll #user32, "GetWindowTextA",_
hwnd as long,_
title$ as ptr,_
cch as long,_
result as long
if instr(lower$(title$),"kelly")<>0 then windowhandle=hwnd : hwnd=0
WEND

notice "done search - now the window will close"

CallDLL #user32, "SendMessageA", _
windowhandle As long, _
_WM_CLOSE As long, _
0 As long, _
0 As long,_
result As long

[Code_ends]

Seems this works fine when openning a *.txt doccument wich opens in notepad, but
my docs open with office, and in offices' compatability mode.

Many thanks in anticipation.

#39503 From: "marmicpc" <Marmicpc@...>
Date: Mon Nov 9, 2009 12:48 am
Subject: Re: Changine Combobox Color
marmicpc
Send Email Send Email
 
Hi:

I tried moving the combobox definition as suggested, still have the problem.  In
a newer program I have two comboboxes and the problem persists in both of them.

I am developing on a laptop, running XP SP3 also, but still have the problem.

As you can see from the earlier posts, Janet was able to reproduce the problem,
but could not find a solution.  She suggested it may be a bug, albeit most
likely a remote one.

I am now wondering if there is a problem between some XP Option/selecton and LB
that may be causing the problem.

I may not have yet reached the hair-pulling stage, but I sure am FRUSTRATED!

Thank you for your suggestions.  I recheck the post every couple of days to see
if there are any new ideas.

Mike

--- In libertybasic@yahoogroups.com, "jerkyj2000" <jburman1860@...> wrote:
>
>
>
> Sam W.
> Thanks for the reply. No. I meant that if I leave all the other controls set
to yellow, that I could change the combobox to red or blue and it would still
hold its color each time I ran the program. Its not really applicable - just
thought it might reinforce the fact that it seems to work when the combobox
definition is moved to just before the Open window statement.
>
> Did you try those changes? And did it work for you? I know this seems like a
"too simple solution", but it does work for me every time. It sounds like
marmicpc is pulling his hair out and this seems to solve the problem. I'd just
like to know if my head's up somewhere it doesn't belong!
>
> Jack
>
> --- In libertybasic@yahoogroups.com, "swetterlin" <swetterlin@> wrote:
> >
> > What do you mean by
> > "Even changing the color of only the combobox
> > to another color works every time."
> >
> > Do you mean you include two ComboboxColor$ statements, one to set it to a
"dummy" color and then one to set it to the color you really want?
> >
> > Sam W.
> >
> > --- In libertybasic@yahoogroups.com, "jerkyj2000" <jburman1860@> wrote:
> > >
> > >
> > >
> > > Earlier I posted a solution that worked for me. That was: Moving the
combobox statements to just before the "open "Add Parts" for window as
#AddParts" command.
> > >
> > > Actually, just moving the combobox definition to before the open command,
and leaving the ComboboxColor$ at original spot works on my xp pro sp3 system
and Vista system every time I run it. Even changing the color of only the
combobox to another color works every time.
> > >
> > > This seems almost too simple! Maybe someone else could check me on this
and see if it works for them?
> > >
> > > jaba
> > >
> > > --- In libertybasic@yahoogroups.com, "marmicpc" <Marmicpc@> wrote:
> > >
> > >
> > >  > I would like for the combobox color
> > >  > to be yellow when I open the window
> > >  > since all of the windows in this series
> > >  > of programs have yellow backgrounds.
> > >  >
> > >  > Any suggestions would be appreicated.
> > >
> >
>

#39504 From: "Stefan Pendl" <pendl2megabit@...>
Date: Mon Nov 9, 2009 8:36 am
Subject: RE: Changine Combobox Color
pendl2megabit
Send Email Send Email
 
>
> Hi:
>
> I tried moving the combobox definition as suggested, still
> have the problem.  In a newer program I have two comboboxes
> and the problem persists in both of them.
>
> I am developing on a laptop, running XP SP3 also, but still
> have the problem.
>
> As you can see from the earlier posts, Janet was able to
> reproduce the problem, but could not find a solution.  She
> suggested it may be a bug, albeit most likely a remote one.
>
> I am now wondering if there is a problem between some XP
> Option/selecton and LB that may be causing the problem.
>
> I may not have yet reached the hair-pulling stage, but I sure
> am FRUSTRATED!
>
> Thank you for your suggestions.  I recheck the post every
> couple of days to see if there are any new ideas.
>
> Mike
>

See
http://justbasic.conforums.com/index.cgi?board=code&action=display&num=125770352\
5 for a solution that should work for you.

---
Stefan Pendl

Liberty BASIC Assist 4.03 ........ http://www.libertybasic.com/assist.html
Liberty BASIC 4.04 public beta ... http://www.libertybasic.com/lb404b3setup.exe

Windows Vista Home Premium 32-bit SP2
AMD Turion X2 RM-70 2GHz, 4GB RAM

#39505 From: "jonmdon2001" <jonmdon2001@...>
Date: Mon Nov 9, 2009 1:01 pm
Subject: Tab Key
jonmdon2001
Send Email Send Email
 
I am going to attempt to write code for a textbox and a combobox to retrieve
previous input at the "Tab" keystroke. Is there an API/Dll associated with the
"Tab" key? a way to give a command when that key is depressed? ........ (better
yet, is there available code to do what I wish...?). I am trying to avoid having
to ''type'' redundant input in an inventory program.

#39506 From: "torpidai" <avnumone@...>
Date: Mon Nov 9, 2009 1:27 pm
Subject: Re: Tab Key
torpidai
Send Email Send Email
 
I think what you after is in the LB help file or certainly within one of the
LB/RB forums, look up "Using Virtual Key Constants" in LB help or "Virtual keys"
in these forums, I used some code from here a while back worked superbly.



--- In libertybasic@yahoogroups.com, "jonmdon2001" <jonmdon2001@...> wrote:
>
> I am going to attempt to write code for a textbox and a combobox to retrieve
previous input at the "Tab" keystroke. Is there an API/Dll associated with the
"Tab" key? a way to give a command when that key is depressed? ........ (better
yet, is there available code to do what I wish...?). I am trying to avoid having
to ''type'' redundant input in an inventory program.
>

#39507 From: "henriknilson" <henriknilson@...>
Date: Mon Nov 9, 2009 4:05 pm
Subject: HLP
henriknilson
Send Email Send Email
 
Hello
When I upgraded XP Windows to Vista then I had to download and install "
Windows6.0-KB917607-x86 software" to view HLP File of Liberty BASIC v4.03.
Now I upgraded Vista to Windows 7 and have same problem, HLP file of LB v4.03
cannot be viewed and when I try to install " Windows6.0-KB917607-x86" to view
HLP File then I get a message saying "The update is not applicable to your
computer"
If I upgrade LB v4.03 to v4.04 then there is no problem.
But I like the HLP of v4.03, it is more useful to me then of v4.04. so is there
any way to view the HLP file of LB v4.03 on Widows 7.
Thanking you

#39508 From: "Bill Lopez" <maxxhuggs@...>
Date: Mon Nov 9, 2009 4:45 pm
Subject: Re: HLP
maxxhuggs2006
Send Email Send Email
 
Not sure this will work on Win 7, Henrik, I'm letting everyone else discover all
the faults and glitches before I upgrade my computer.  But... you might try
this:
   a.. Open My Computer/Program Files/Liberty Basic/LIBERTY4.HLP
   b.. Right-click and choose "Send to Desktop as shortcut."
   c.. Double-clicking on the shortcut will run the help file without running LB.
Good luck to you!

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

#39509 From: "dlfarnham6" <david.farnham@...>
Date: Mon Nov 9, 2009 5:20 pm
Subject: Error Opening File
dlfarnham6
Send Email Send Email
 
Probably simple but not to me. I get runtime error 'Error opening file: 
filename' What particular causes can give rise to this error as I cannot find
any help anywhere. Sometimes the OPEN works and sometimes not so my debugging is
proving difficult. It is obviously different to 'File not found'.
Thanks.

#39510 From: Henrik <henriknilson@...>
Date: Mon Nov 9, 2009 5:49 pm
Subject: Re: HLP
henriknilson
Send Email Send Email
 
 Thank you Bill Lopez, have tried your suggestion and found it doesn’t work,
it seems a matter of all files of HLP extension especially of 32 bit or higher.
I understood that if I upgrade my windows to windows 7- Ultimate of 32 bit and I
have LB of v4.03 then I have to change the format of HLP file of LB to CHM or
other kinds to view, and that will make me and many, tired of this situation.
When I  tried your suggestion I get a message of the title “Why can't I get
Help from this program?” with the following like that you may follow:
Microsoft Help and Support
So please I would like to view the HLP of LB v4.03 on windows 7- Ultimate of 32
bit.
Thank you      

--- On Mon, 11/9/09, Bill Lopez <maxxhuggs@...> wrote:


From: Bill Lopez <maxxhuggs@...>
Subject: Re: [libertybasic] HLP
To: libertybasic@yahoogroups.com
Date: Monday, November 9, 2009, 4:45 PM


 



Not sure this will work on Win 7, Henrik, I'm letting everyone else discover all
the faults and glitches before I upgrade my computer. But... you might try this:
a.. Open My Computer/Program Files/Liberty Basic/LIBERTY4. HLP
b.. Right-click and choose "Send to Desktop as shortcut."
c.. Double-clicking on the shortcut will run the help file without running LB.
Good luck to you!

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











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

#39511 From: "torpidai" <avnumone@...>
Date: Mon Nov 9, 2009 6:30 pm
Subject: Re: HLP
torpidai
Send Email Send Email
 
Both 7-Beta and 7-RC had "Compatability mode", as I remember it, once I'd
installed LB in it's own folder I had no problems, though I did install LB4.04,
before LB4.03 :S

--- In libertybasic@yahoogroups.com, "henriknilson" <henriknilson@...> wrote:
>
> Hello
> When I upgraded XP Windows to Vista then I had to download and install "
Windows6.0-KB917607-x86 software" to view HLP File of Liberty BASIC v4.03.
> Now I upgraded Vista to Windows 7 and have same problem, HLP file of LB v4.03
cannot be viewed and when I try to install " Windows6.0-KB917607-x86" to view
HLP File then I get a message saying "The update is not applicable to your
computer"
> If I upgrade LB v4.03 to v4.04 then there is no problem.
> But I like the HLP of v4.03, it is more useful to me then of v4.04. so is
there any way to view the HLP file of LB v4.03 on Widows 7.
> Thanking you
>

#39512 From: "Jim McGinn" <mcginn@...>
Date: Mon Nov 9, 2009 7:05 pm
Subject: Re: HLP
jimmcginn2
Send Email Send Email
 
I don't know if this will help you or not, but when a friend of mine
installed Just BASIC on a computer with Vista, the help files didn't work
there either. To fix it for him, I had to download a program from Microsoft
that would read the "old" formatted help files (MS documents on their site
said this was not included with Vista). Perhaps this approach would work for
Windows 7, too (I haven't tried it, as I'm still on XP).

Regards,
Jim McGinn

----- Original Message -----
Sent: Monday, November 09, 2009 9:05 AM
Subject: [libertybasic] HLP


> Hello
> When I upgraded XP Windows to Vista then I had to download and install "
> Windows6.0-KB917607-x86 software" to view HLP File of Liberty BASIC v4.03.
> Now I upgraded Vista to Windows 7 and have same problem, HLP file of LB
> v4.03 cannot be viewed and when I try to install "
> Windows6.0-KB917607-x86" to view HLP File then I get a message saying "The
> update is not applicable to your computer"
> If I upgrade LB v4.03 to v4.04 then there is no problem.
> But I like the HLP of v4.03, it is more useful to me then of v4.04. so is
> there any way to view the HLP file of LB v4.03 on Widows 7.
> Thanking you

#39513 From: Henrik <henriknilson@...>
Date: Mon Nov 9, 2009 7:18 pm
Subject: Re: Re: HLP
henriknilson
Send Email Send Email
 
Thank you torpidai, the help file of LB v4.04 will be opened in windows7
directly because it is HTML file while it will not for  LB v4.03 because it is
HLP file. I have them both on windows 7.
 

--- On Mon, 11/9/09, torpidai <avnumone@...> wrote:


From: torpidai <avnumone@...>
Subject: [libertybasic] Re: HLP
To: libertybasic@yahoogroups.com
Date: Monday, November 9, 2009, 6:30 PM


 



Both 7-Beta and 7-RC had "Compatability mode", as I remember it, once I'd
installed LB in it's own folder I had no problems, though I did install LB4.04,
before LB4.03 :S

--- In libertybasic@ yahoogroups. com, "henriknilson" <henriknilson@ ...> wrote:
>
> Hello
> When I upgraded XP Windows to Vista then I had to download and install "
Windows6.0-KB917607 -x86 software" to view HLP File of Liberty BASIC v4.03.
> Now I upgraded Vista to Windows 7 and have same problem, HLP file of LB v4.03
cannot be viewed and when I try to install " Windows6.0-KB917607 -x86" to view
HLP File then I get a message saying "The update is not applicable to your
computer"
> If I upgrade LB v4.03 to v4.04 then there is no problem.
> But I like the HLP of v4.03, it is more useful to me then of v4.04. so is
there any way to view the HLP file of LB v4.03 on Widows 7.
> Thanking you
>











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

#39514 From: Henrik <henriknilson@...>
Date: Mon Nov 9, 2009 7:29 pm
Subject: Re: HLP
henriknilson
Send Email Send Email
 
Thank you, Jim McGinn,  that program called “Windows6.0-KB917607-x86.msu”
for vista 32 bit. and there is another one for vista 64 bit called
"Windows6.0-KB917607-x64.msu"they are working only  with vista,they do not work
with windows 7.
Still need a help to view HLP file of LB v4.03 on windows 7, any suggestion will
be applied with many thanks.

--- On Mon, 11/9/09, Jim McGinn <mcginn@...> wrote:


From: Jim McGinn <mcginn@...>
Subject: Re: [libertybasic] HLP
To: libertybasic@yahoogroups.com
Date: Monday, November 9, 2009, 7:05 PM


 



I don't know if this will help you or not, but when a friend of mine
installed Just BASIC on a computer with Vista, the help files didn't work
there either. To fix it for him, I had to download a program from Microsoft
that would read the "old" formatted help files (MS documents on their site
said this was not included with Vista). Perhaps this approach would work for
Windows 7, too (I haven't tried it, as I'm still on XP).

Regards,
Jim McGinn

----- Original Message -----
Sent: Monday, November 09, 2009 9:05 AM
Subject: [libertybasic] HLP

> Hello
> When I upgraded XP Windows to Vista then I had to download and install "
> Windows6.0-KB917607 -x86 software" to view HLP File of Liberty BASIC v4.03.
> Now I upgraded Vista to Windows 7 and have same problem, HLP file of LB
> v4.03 cannot be viewed and when I try to install "
> Windows6.0-KB917607 -x86" to view HLP File then I get a message saying "The
> update is not applicable to your computer"
> If I upgrade LB v4.03 to v4.04 then there is no problem.
> But I like the HLP of v4.03, it is more useful to me then of v4.04. so is
> there any way to view the HLP file of LB v4.03 on Widows 7.
> Thanking you











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

Messages 39485 - 39514 of 46456   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