Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run form as main program 2

Status
Not open for further replies.

fmerl

Programmer
Nov 18, 2007
5
BE
Hello Smart Guys,

I have a little problem programming a scanner.
The scanner is connected with citrix. So I runs under windows ce with citrix published applications.
Normaly in a project I have a main program that starts the forms thru a menu.
What I want to do is to create an .exe file from a form(as main program) that starts 2 or 3 othter forms. (inventory,incomming goods and outgoing goods).
The problem is that the screen of the scanner is only 5 by 8 cm and when i make it with a main prg file the form is not opening on the place it should be in the screen of the scanner

All suggestions are very welcome

WFG,

Filip Merlier
 

when i make it with a main prg file the form is not opening on the place it should be

You can make a form 'main' in the project (just the way you mark a program 'main'), even though I wouldn't recommend it.

But does the problem you describe have anything to do with the fact that you start with a program and not the form? Check the properties of your form. Do you want it to Auto-Center, or Maximize (WindowState property), or open As Top-Level Form (ShowWindow property), or something else?

Or I misunderstood you completely?
 
Hello Stella,

I tried to make a poject with only a form in it but when i made the .exe and I started the program it closed immediatly. So The form was not staying on the screen.


wfg,

Filip
 

Again, check the properties of the form.
In a project with a single form, the form should be Modal (WindowType property). You don't have to do it when you run the form from the main program with READ EVENTS in it.
 
Hello Stella,

I tried that but it isn't absolutely not what I want to get.
problem : screen scanner = 5cm by 8 cm
So I have to send and receive things from this little screen.
Is there another way than making a form that allows me to send a command buttom to screen an send and receive data from that little screen ?
Is there a way of making a .prg so I can manipulate everything by myself ?
And if so which commands do I use to send and receive things ?

wfg,

Filip
 
You can't run vfp exe's on Windows CE. As you run it as citrix published applications, I assume you'd have something like a remote desktop displayed on the scanner devices. Make your form small, to fit the resolution. The display size is only half as important as the screen resolution of the device.

I'd rather first solve one problem at a time. Try to make your single form application run on a normal desktop, then make it run on the scanner devices.

I'm afraid we can't help you figure out, how to scan input. AS some kind of virtualisation is involved with citrix, I assume the application just runs on the CE device screen, not on the hardware itself, therefore you would need to route the scanner input to the citrix server, where the foxpro application is really running.

Bye, Olaf.
 
Hello Olaf and Stella,

I think I found a solution by using the _screen options.
So i made a mail program with
CLEAR

_screen.Height=261
_screen.Width=248
SET LIBRARY TO foxtools.fll
SET DELETED ON
SET BELL OFF
SET EXCLUSIVE OFF
SET REPROCESS TO 5
SET POINT TO "."
SET separator to
SET CENTURY ON
SET EXACT ON
SET CONFIRM ON
SET DATE TO DMY
SET SAFETY OFF
SET MESSAGE TO DTOC(DATE())
SET SYSMENU off
DEACTIVATE MENU all

DO FORM start

Only I would like to remove the visual foxpro bar which is always above the form.
Is there any way to do that ?

wvg,

Filip
 

Only I would like to remove the visual foxpro bar which is always above the form.
Is there any way to do that ?
Sure. See faq184-1258 for instructions.
 
I hope your form does not have a private datasession, or else several of your settings will have no effect on the form, as they are per session.

Perhaps also take a look at the single form application FAQ:
faq184-6512
 
Hello Stella and Olaf,

Thank You for the support. I will give you a star for it.
Now I can really go on to make this project perfectly for my client.

Thanks

wfg,

Filip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top