Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Is there a way to remove the maximize button?

Author
Message
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 25th Feb 2005 00:32
When making db pro apps in window mode. is there any way to create the window without a maximize button??

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Feb 2005 02:39
Use
Quote: "SET WINDOW LAYOUT Style, Caption, Icon Number"

and set Style to 0

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 26th Feb 2005 07:21
But that removes the minimize button too, i want to keep the minimize button

RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 26th Feb 2005 09:55
No way that I can see without a dll. A way around this is you can use the Set Window Layout to hide the window's title bar and then create your own title bar at the top of your application. Then only include the Minimize (Minimize Window function), Restore Window (Restore Window function), and Close Window (End function) buttons.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 26th Feb 2005 21:32
Yes thats what i was thinking of doing too.. but i wanted to be sure there wasnt some way around doing it

Cryptoman
21
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 28th Feb 2005 23:52
You can gray out the button, its still there but it won't function. I'll show you how if you are interested.


Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 1st Mar 2005 05:38
i'm interested ofcourse Tell me, tell me

Cryptoman
21
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 2nd Mar 2005 01:24
Sorry, I forgot about this post. Here is the code.



Hope it helps.


Login to post a reply

Server time is: 2024-11-27 23:29:36
Your offset time is: 2024-11-27 23:29:36