-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
Paradox To/From
To/FromCODEGuides
Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

November Edition
Subscribe now! It's Free!
Enter your email:

   ► MB Lobby ► Corel Paradox / ObjectPAL Coding Board ► Paradox Runtime & Distribution Topic   Print This     

Paradox Runtime 9.0

Paradox Runtime 9.0 in Paradox Runtime & Distribution topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Paradox   Runtime   Paradox Runtime   Paradox Runtime 9  
JohnB
 (Inactive)
Grand Rapids, Michigan, USA
Can I control the "ToolBar" parameters in my delivered Runtime package? I would like only the "status bar" to be available when the delivered package is run. I would also like to "maximize" the applications when they are opened from the shortcut that I place on the desktop of my users. I've gone thru the help section but am missing something.
 Posted 24 years ago (Thread Starter)
Comment Quote
About JohnB
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7127, 5 replies
Thread Started 7/26/2002 8:04:00 PM
View Counter=3084
Last Reply Posted 7/29/2002 6:05:00 PM)
Location=Grand Rapids, Michigan, USA  
Joined=25 years ago   MB Posts=13  
rt
Castel, -- UK
Are you using Application Framework?
rt

Thats enough of that. Ed.

 Posted 24 years ago
Comment Quote
About rt
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About rt

I do like my jazz and blues!


Post ID #7133 (Level 1.1)  Reply to 7127
Thread Started 7/28/2002 2:42:00 AM
View Counter=2
Location=Castel, -- UK 
Joined=26 years ago   MB Posts=687   KB Comments=1  
rt
Castel, -- UK
Mac, great.
Pity you don't answer questions on the Delphi board as well!
rt

Thats enough of that. Ed.

 Posted 24 years ago
Comment Quote
About rt
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About rt

I do like my jazz and blues!


Post ID #7148 (Level 1.2)  Reply to 7127
Reply Posted 7/29/2002 3:21:00 PM
Location=Castel, -- UK 
Joined=26 years ago   MB Posts=687   KB Comments=1  
JohnB
 (Inactive)
Grand Rapids, Michigan, USA
Hello

I'm not using application framework. There are just certain fields I would like to show in delivered package of the status bar.(Message & State 1)I normally hide the toolbar in apps. Can I just select the two fields to show on status bar. Does this have to done with OPal in the apps?
(Perhaps a small screen setup that runs first?)
The reason I must control these items is that many of my users have small monitors and if 2 lines show up in the status bar scroll bars appear with my screens.

I have also seen a solution on Corel web site for maximizing screens(example was for version 10) by forming an ini file with [Desktop] parameters of "000001"(zero space zero...). Does this make sense to you?

Thanks John
 Posted 24 years ago (Thread Starter)
Comment Quote
About JohnB
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7142 (Level 1.3)  Reply to 7127
Reply Posted 7/29/2002 1:21:00 PM
Location=Grand Rapids, Michigan, USA  
Joined=25 years ago   MB Posts=13  
Most Recent Post
JohnB
 (Inactive)
Grand Rapids, Michigan, USA
Thanks Mac,

I'll give it a shot.

John
 Posted 24 years ago (Thread Starter)
Comment Quote
About JohnB
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #7149 (Level 1.4)  Reply to 7127
Reply Posted 7/29/2002 6:05:00 PM
Location=Grand Rapids, Michigan, USA  
Joined=25 years ago   MB Posts=13  
Langley McKelvy
Harris County Texas, USA
John, here's a straight cut-n-paste from an old message I saved. The code should also be a cut and paste job for you.

The status bar in Paradox can be reduced to one line, but cannot be hidden completely. Some applications prefer not to have the status bar, however, Paradox provides no internal support for hiding or showing the status bar completely. The following codes gives the ability to do so, using some well known Windows API calls.

This code will work in 32bit versions of Paradox, regardless of the version of Paradox. The code checks the major version of the Paradox, and determines the classname from it.

Anyway, onto the code :-)

In the uses section of your form add the following:

 
Uses "user32"
FindWindowExA (lWnd CLONG, lSubWnd CLONG, pszClassName CPTR, pszWindowName CPTR) CLONG [stdcall]
GetWindow (lWnd CLONG, lCmd CLONG) CLONG [stdcall]
ShowWindow (lWnd CLONG, lFlags CLONG) [stdcall]
endUses
In the var section of your form, add the following

Var
strClassName String
endVar
Create a method called showStatusBar in your form or library with the code below:

method showStatusBar(const loShowStatusBar Logical) Logical
var
lWnd LongInt
lDesktopWnd LongInt
lChildWnd LongInt
lFoundWnd LongInt
appDesktop Application
tcWindows TCursor
strVersion String
endvar

;// check to see if we have already assigned the classname
if NOT strClassName.isAssigned() then
strVersion = substr (version(), 1, 1)

;// if this is version 7 or 8, then the classname is as follows.
if ((strVersion = "7") or (strVersion = "8")) then
strClassName = "msctls_statusbar32"

;// other versions require use to look it up. It starts with Afx...
else
enumDesktopWindowNames (":priv:__classnames.db")

tcWindows.open (":priv:__classnames.db")
if not (tcWindows.locatePattern ( "ClassName", "Afx:..")) then
tcWindows.close()
return FALSE
endif

strClassName = tcWindows."ClassName"
tcWindows.close()
endif
endif

;// now that we have the correct classname, proceed...
lDesktopWnd = appDesktop.windowHandle()

;// find the first toolbar window
lFoundWnd = FindWindowExA (lDesktopWnd, 0, strClassName, "")
while (lFoundWnd <> 0)

;// if this toolbar has a child, then its the status bar.
lChildWnd = GetWindow (lFoundWnd, 5)
if (lChildWnd <> 0) then
if (loShowStatusBar = True) then
ShowWindow (lFoundWnd, 5); ;// show the status bar
else
ShowWindow (lFoundWnd, 0); ;// otherwise hide..
endif
return TRUE
endif

;// find the next toolbar window
lFoundWnd = FindWindowExA (lDesktopWnd, lFoundWnd, strClassName, "")

endwhile

return FALSE
endMethod
You can hide the status bar by calling it with :
showStatusBar (False);
or show it again by calling :
showStatusBar (True);
... and checking the return code as necessary.

Conclusion

There are no side effects to calling the function to show the status bar if it is already visible, or hide it when invisible.

Feel free to modify and redistribute the code as necessary.

--------------

Hope this helps,

Mac
Mac

[i]"A king will have his way in his own hall, be it folly or wisdom."[/i] - Gandalf
 Posted 24 years ago
Comment Quote
About Langley McKelvy
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Langley McKelvy
Computer Crimes Investigator / Computer Forensics Specialist Paradox for DOS/Windows Programmer

Post ID #7146 (Level 1.5)  Reply to 7127
Reply Posted 7/29/2002 1:58:00 PM
Location=Harris County Texas, USA  
Joined=24 years ago   MB Posts=387  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1184A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #7127 Counter
3084
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]  

 
↑