Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
May 25th, 2013, 12:51pm


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Yahoo Code Repository (source must be included)
Liberty BASIC Community WikiSpace
Liberty Labs
Bay Six Software Forum
Liberty BASIC Home Page

Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC 5 Handbook
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   Liberty BASIC Pro / Find/Replace  on: Yesterday at 9:25pm
Started by GaRPMorE | Post by GaRPMorE
For all the error trapping LB employs on program exit ("Save changes?," "Are you sure you want to exit?"), there is one place it has none, but I think ought to.

I refer to the Find/Replace tool. Although I have used this extensively for years without problems, recently I inadvertently deleted a bunch of stuff by pressing "Replace All" when I meant to press the adjacent "Find" button. This kind of error can be hazardous to your program.

If a NOTICE "Are you sure you want to Replace All?" were incorporated, AND (or at least) the "Confirm" RADIOBUTTON was set, rather than reset, this kind of potential disaster from a "slip of the mouse" would be largely avoided.
 
  Reply Quote Notify of replies

 2   Novice / Re: How do I draw a single (separator) line?  on: Yesterday at 02:41am
Started by flotul | Post by tooanalytical
Code:
'Form created with the help of Freeform 3 v07-15-08
'Generated on May 23, 2013 at 23:35:40


[setup.main.Window]

    '-----Begin code for #main

    WindowWidth = 485
    WindowHeight = 325
    UpperLeftX=int((DisplayWidth-WindowWidth)/2)
    UpperLeftY=int((DisplayHeight-WindowHeight)/2)


    '-----Begin GUI objects code

    graphicbox #main.graphicbox3,  30, 127, 400,   4
    statictext #main.statictext1, "Any programmer message upper region", 100,  82, 239,  20
    statictext #main.statictext2, "Any more programmer message lower region",  95, 160, 270,  20

    '-----End GUI objects code

    open "untitled" for window as #main
    print #main.graphicbox3, "down; fill green; flush"
    print #main, "font ms_sans_serif 10"
    print #main, "trapclose [finished.main]"

    WAIT

    [finished.main]
    close #main
    END
 

 
  Reply Quote Notify of replies

 3   Novice / Re: How do I draw a single (separator) line?  on: May 23rd, 2013, 08:47am
Started by flotul | Post by Stefan Pendl
Attachments are not supported here, so you need to upload the image to a file hosting service and point a link to it here.

I still think the easiest is to use a group box to draw the separator.
 
  Reply Quote Notify of replies

 4   Novice / Re: How do I draw a single (separator) line?  on: May 23rd, 2013, 04:57am
Started by flotul | Post by flotul
Sorry,

I ment, how do I add an JPG/PNG image to my post wink
 
  Reply Quote Notify of replies

 5   Novice / Re: How do I draw a single (separator) line?  on: May 23rd, 2013, 03:51am
Started by flotul | Post by tooanalytical
on May 23rd, 2013, 03:01am, flotul wrote:
Hum... how do I insert an image here?


The graphicbox control does not need an image. The control can be filled with a color, such as black. You can make this filled graphicbox control any rectangle size you like, such as 2 or 3 pixels high and a few hundred pixels long horizontally.
 
  Reply Quote Notify of replies

 6   Novice / Re: How do I draw a single (separator) line?  on: May 23rd, 2013, 03:01am
Started by flotul | Post by flotul
Hum... how do I insert an image here?
 
  Reply Quote Notify of replies

 7   Novice / Re: How do I draw a single (separator) line?  on: May 22nd, 2013, 6:18pm
Started by flotul | Post by Janet
If you wanted color, you could use a narrow graphicbox. Maybe if you could describe how you want the separator to look?

 
  Reply Quote Notify of replies

 8   Novice / How do I draw a single (separator) line?  on: May 22nd, 2013, 4:56pm
Started by flotul | Post by flotul
Hello,

I was wondering if there is another, maybe better way to draw a separator line in a Window without using a GROUPBOX reduced to a few pixels high?
 
  Reply Quote Notify of replies

 9   Novice / Re: Avoid explicit file path  on: May 22nd, 2013, 1:40pm
Started by chad3006 | Post by Rod
The gotcha with DefaultDir$ is the trailing \. Best to print your path once created to debug and check that the \ separator is correctly applied.
 
  Reply Quote Notify of replies

 10   Novice / Re: Avoid explicit file path  on: May 22nd, 2013, 09:59am
Started by chad3006 | Post by chad3006
Thanks for the replys. It turns out I was able to rework the program using the FILEDIALOG command instead, which I think is going to work. I had tried the DefaultDir$ option, but was unable to get it to work ... perhaps I had some bad syntax or something.
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!

| Conforums Support |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls