As long as your program is a single process with no threads ou could use the End command.
Here is a simple example:
test.pbf
Global Window_0
Enumeration FormGadget
#Text_0
EndEnumeration
Procedure OpenWindow_0(x = 0, y = 0, width = 600, height = 400)
Window_0 = OpenWindow(#PB_Any, x, y ...
Search found 7 matches
- Fri May 22, 2015 2:16 am
- Forum: Coding Questions
- Topic: How do I Terminate a 'stand alone' program ?
- Replies: 5
- Views: 2169
- Fri Apr 24, 2015 1:45 pm
- Forum: Coding Questions
- Topic: Force vertical scrollbar to bottom on EditorGadget
- Replies: 12
- Views: 4953
Re: Force vertical scrollbar to bottom on EditorGadget
Thank you. That worked great!
- Fri Apr 24, 2015 2:09 am
- Forum: Coding Questions
- Topic: Force vertical scrollbar to bottom on EditorGadget
- Replies: 12
- Views: 4953
Force vertical scrollbar to bottom on EditorGadget
Folks,
I am using the EditorGadget to display the progress of a lengthy processing job. It works great and the scroll bars are generated as I fill the window BUT once the last line scrolls off the screen the user can no longer see it without clicking on the scroll bar.
I always want the bottom ...
I am using the EditorGadget to display the progress of a lengthy processing job. It works great and the scroll bars are generated as I fill the window BUT once the last line scrolls off the screen the user can no longer see it without clicking on the scroll bar.
I always want the bottom ...
- Wed Apr 08, 2015 11:39 pm
- Forum: General Discussion
- Topic: How to get an Editor gadget to refresh
- Replies: 9
- Views: 4692
Re: How to get an Editor gadget to refresh
Folks,
Thanks for all the feedback. In the end I created a simple procedure that did the trick.
;--------------------------------------------------------------------------------
Procedure Write_Status(status_string.s ...
Thanks for all the feedback. In the end I created a simple procedure that did the trick.
;--------------------------------------------------------------------------------
Procedure Write_Status(status_string.s ...
- Wed Apr 08, 2015 9:08 pm
- Forum: Windows
- Topic: How to imbed image on form
- Replies: 5
- Views: 4763
Re: How to imbed image on form
Folks,
Thank you very much. That did the trick. I am coming from the VB5 world and so it takes a little getting used to the ways PureBasic does it stuff.
I am really enjoying working with the new compiler.
/Dave
Thank you very much. That did the trick. I am coming from the VB5 world and so it takes a little getting used to the ways PureBasic does it stuff.
I am really enjoying working with the new compiler.
/Dave
- Wed Apr 08, 2015 5:30 pm
- Forum: Windows
- Topic: How to imbed image on form
- Replies: 5
- Views: 4763
How to imbed image on form
Folks,
I have a fairly simple form on which I want to drop the company logo as .PNG file. The problem is that when I compile the program and give the .EXE to the customer it references the original location of the image and so it appears as a blank image on the form.
Is there some way I could ...
I have a fairly simple form on which I want to drop the company logo as .PNG file. The problem is that when I compile the program and give the .EXE to the customer it references the original location of the image and so it appears as a blank image on the form.
Is there some way I could ...
- Tue Mar 31, 2015 10:31 pm
- Forum: General Discussion
- Topic: How to get an Editor gadget to refresh
- Replies: 9
- Views: 4692
How to get an Editor gadget to refresh
I have defined a simple form as follows:
Global Window_0
Global Image_0, Text_0, Button_0, Editor_0, Text_1, Text_2
Global Img_Window_0_0
UsePNGImageDecoder()
Img_Window_0_0 = LoadImage(#PB_Any,"C:\Data\PB\PFP\ba_logo.png")
Enumeration FormFont
#Font_Window_0_0
#Font_Window_0_1 ...
Global Window_0
Global Image_0, Text_0, Button_0, Editor_0, Text_1, Text_2
Global Img_Window_0_0
UsePNGImageDecoder()
Img_Window_0_0 = LoadImage(#PB_Any,"C:\Data\PB\PFP\ba_logo.png")
Enumeration FormFont
#Font_Window_0_0
#Font_Window_0_1 ...