| 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.
|
|
| 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
|
|
| 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.
|
|
| 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.
|
|
| 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?
|
|
| 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.
|
|
| 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.
|
|
|