Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP toolbar visible at run time
Message
 
 
To
29/11/2010 20:00:48
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01490991
Message ID:
01490997
Views:
33
>>Hi,
>>
>>I have always had a code in the start up procedure of my application that was hiding all VFP toolbar buttons. I believe I borrowed it from the VFP 3 or VFP 5 sample code. Recently I decided that this code was useless and I removed/commented it.
>>
>>Now I just remotely connected to a customer server, run the application and see a bunch of VFP buttons (toolbar) at the top of the application (run-time).
>>
>>Then I remotely connected to another customer server, run the same application and do not see the VFP buttons (toolbar).
>>
>>My question is, what makes one run-time show the toolbar and another not to? And should I enable/uncomment the code that was hiding these buttons?
>>
>>TIA.
>
>Normally the standard toolbar is not visible (in an exe) unless the IDE is running. Did you start the application from the IDE on one of the systems? Is it an exe or app you are running? Also, the visibility of it is stored in the foxuser.dbf file so you can turn it off on yours and then distribute the foxuser file(s) with your app. You may have it turned on in one of the foxuser files. Another option is too add this to your main prg:
>
>
>IF WEXIST("STANDARD")
>      RELEASE WINDOWS STANDARD  && or hide
>ENDIF
>
>
>Is there a toolbar class in your app by any chance?

Now as I read your message I think I see what is the difference. The customer where the toolbar shows has VFP9ENU.DLL and VFP9.exe in the same folder as the executable. So maybe even though the application does not start from the IDE, the toolbar shows simply because these two files are there. I will connect again, remove the "offending" files and see what changes.

The code above that you posted is pretty much what I used to have in my application. And I removed it. I will probably put it back.

Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform