Search found 8 matches

by longwave
Sun Feb 02, 2014 9:07 pm
Forum: Coding Questions
Topic: Event focus of new window
Replies: 12
Views: 3872

Re: Event focus of new window

I was trying to delete my response as I did not index all the way down his code. Just noticed the missing Repeat, Untill on Procedure window_2() in his reply. Thanks for the help. This clears up my thoughts on how to proceed.
by longwave
Sun Feb 02, 2014 8:58 pm
Forum: Coding Questions
Topic: Event focus of new window
Replies: 12
Views: 3872

Re: Event focus of new window

In Procedure window_2() there is a Repeat, Until loop. I do not see it in your copy though.
by longwave
Sun Feb 02, 2014 7:15 pm
Forum: Coding Questions
Topic: Event focus of new window
Replies: 12
Views: 3872

Re: Event focus of new window

Using your example this is what I am trying to do.


Enumeration
#Window_1
#Window_2
#Menu_1
#Button_1
#Button_2
#Button_3
#Button_4
EndEnumeration

Declare window_2()

Procedure window_1()
OpenWindow(#Window_1,20,20,260,90,"win 1",#PB_Window_SystemMenu | #PB_Window_MinimizeGadget ...
by longwave
Sat Feb 01, 2014 7:23 pm
Forum: Coding Questions
Topic: Event focus of new window
Replies: 12
Views: 3872

Event focus of new window

I have a main OpenWindow(#Window_0...) that has a title bar with one item. Clicking on the menu item calls a Procedure that opens a second OpenWindow(#Window_1). #Window_1 does not have #Window_0 as it's parent as I am wanting to minimize #Window_0 and have #Window_1 left on the screen for display ...
by longwave
Thu Jan 23, 2014 1:24 am
Forum: Coding Questions
Topic: Selecting Menu title halts code
Replies: 2
Views: 926

Selecting Menu title halts code

I have a program with main window that checks for rs-232 input and displays characters in text window. All works fine. I just added a CreateMenu and MenuTitle. When I click on the menu title the polling of the comm port stops. Is there a way to continue polling of the comm port or checking of other ...
by longwave
Thu Nov 28, 2013 11:41 pm
Forum: Coding Questions
Topic: Multi colored ProgressBarGadget
Replies: 16
Views: 2827

Multi colored ProgressBarGadget

I am using a ProgressBarGadget to display the value of a variable. I want the color of the ProgressBar to be multi colored to identify three different states; good (green), caution (yellow) and danger (red). I know the SetGadgetColor() can be used but that changes the color of the whole Bar. For ...
by longwave
Thu Nov 28, 2013 11:23 pm
Forum: Coding Questions
Topic: keyboard input
Replies: 3
Views: 1296

Re: keyboard input

Super works great. A simple StringGadget does the job. :D
by longwave
Thu Nov 28, 2013 10:03 pm
Forum: Coding Questions
Topic: keyboard input
Replies: 3
Views: 1296

keyboard input

I want to capture keyboard input and assign to a string variable. Is there a way to do this without opening a console or initsprite() ?