|
|
| John Jay 2005-10-20, 8:26 pm |
| Hi All,
I need to use all of my screen's height for a form. I want to eliminate
any menu at the top. No matter how I try I cannot do it unless I set the
form's mdi property to false. Bcause I also need to be able to minimise
the form that will not work. Any Idea as to how I can do this?
Tia
John Jay
Best Marine
| |
| Todd Kreuter 2005-10-21, 1:23 pm |
| John Jay wrote:
>
> I need to use all of my screen's height for a form. I want to eliminate
> any menu at the top. No matter how I try I cannot do it unless I set the
> form's mdi property to false. Bcause I also need to be able to minimise
> the form that will not work. Any Idea as to how I can do this?
If its mdi, there has to be a menu. Not sure there is any way around
this.
--
Todd Kreuter [dBVIPS]
| |
| Todd Kreuter 2005-10-21, 1:23 pm |
| Todd Kreuter wrote:
>
> John Jay wrote:
>
> If its mdi, there has to be a menu. Not sure there is any way around
> this.
Hmm, I guess maybe an SDI form is what you want.
Try setting MDI=false and open the form with open() rather than
readModal(). This should open the form outside of the _app.framewin.
--
Todd Kreuter [dBVIPS]
| |
| John Jay 2005-10-21, 1:23 pm |
| > Hmm, I guess maybe an SDI form is what you want.
>
> Try setting MDI=false and open the form with open() rather than
> readModal(). This should open the form outside of the _app.framewin.
>
> --
Todd ,
Thanks for the help. I never thought of open() with sdi form but tested it
and it worked, that solved half of the problem. The form opens with no
minimise or maximise buttons so I could not minimise it as I wanted. To
solve this I placed a small button in the upper right corner of the form
with "_" in bold as the text. The onclick event is form.windowstate=1 //
minimised. That works but (always a but) instead of minimising onto the
windows tray at the bottom the form it minimises above the "START" button of
the windows tray. Any idea on how to get it into the windows tray?
Thanks again.
John
| |
| Zagrijs Venter 2005-10-24, 8:24 pm |
|
"John Jay" wrote in message
> Thanks for the help. I never thought of open() with sdi form but tested
> it
> and it worked, that solved half of the problem. The form opens with no
> minimise or maximise buttons so I could not minimise it as I wanted. To
> solve this I placed a small button in the upper right corner of the form
> with "_" in bold as the text. The onclick event is form.windowstate=1 //
> minimised.
It should not be necessary to add a button to minimize and restore the
window. The minimize and maximize buttons should be available and active if
not set to false.
That works but (always a but) instead of minimising onto the
> windows tray at the bottom the form it minimises above the "START" button
> of
> the windows tray. Any idea on how to get it into the windows tray?
> Thanks again.
> John
If a form is MDI it will minimize to a mini example of the form usually just
above the Windows "Start" button. If it is SDI it will minimize to a button
on the Windows taskbar. Standar Windows behaviour.
Zagrijs Venter
| |
| John Jay 2005-10-24, 8:24 pm |
|
Zagrijs,
> It should not be necessary to add a button to minimize and restore the
> window. The minimize and maximize buttons should be available and active
if
> not set to false.
I checked both are set to true. The window will restore by double clicking
on it when minimized. Because there is no "X" in the upper right side of the
form I also reduced it's width and still no "_",or "X"
> If a form is MDI it will minimize to a mini example of the form usually
just
> above the Windows "Start" button. If it is SDI it will minimize to a
button
> on the Windows taskbar. Standar Windows behaviour.
I will live with that.
Thanks
John Jay
Best Marine
| |
| Zagrijs Venter 2005-10-27, 7:28 am |
|
"John Jay" wrote
>
active[color=darkred
]
> if
> I checked both are set to true. The window will restore by double clicking
> on it when minimized. Because there is no "X" in the upper right side of
the
> form I also reduced it's width and still no "_",or "X"
And the sysMenu prorperty? True or false. It should be true for the
buttons to be visible.
Zagrijs
| |
| John Jay 2005-10-27, 7:28 am |
| > And the sysMenu prorperty? True or false. It should be true for the
> buttons to be visible.
Zagrijs,
That was it, I set it to false thinking it would turn off the Db menu and
never reset it.
Works correctly now.
Thanks again.
John Jay
Best Marine
| |
| evilaro 2005-10-27, 7:28 am |
| John:
Would that be possible to have a turn key example
on how to get the full screen with nothing on it?
I would appreciate...
I can't get it < grrrrrrrrrrrrrrrrrrr
r>
Emilio
"John Jay" < beat_nospam_mar@sbcg
lobal.net> escribió en el mensaje
news:aCrF9Dl2FHA.1036@news-server...
>
> Zagrijs,
> That was it, I set it to false thinking it would turn off the Db menu
and
> never reset it.
> Works correctly now.
> Thanks again.
> John Jay
> Best Marine
>
>
>
| |
| Zagrijs Venter 2005-10-27, 7:28 am |
| You are welcome. Thanks for the positive feedback.
Zagrijs
"John Jay"
>
> Zagrijs,
> That was it, I set it to false thinking it would turn off the Db menu
> and
> never reset it.
> Works correctly now.
> Thanks again.
> John Jay
> Best Marine
>
>
>
| |
| John Jay 2005-11-03, 8:24 pm |
|
Evilaro,
Sorry this took so long! I Just read this post. I made this and tested
it using Plus 2.5 and Win 2000
John Jay
Best Marine
** END HEADER -- do not remove this line
//
// Generated on 11/02/2005
//
parameter bModal
local f
f = new blankForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class blankForm of FORM
with (this)
onClose = class::FORM_ONCLOSE
metric = 6 // Pixels
height = 740.0
left = 0.0
top = 0.0
width = 1020.0
text = ""
topMost = true
mdi = false
showTaskBarButton = false
sizeable = true
sysMenu = true
appSpeedBar = 0 // Turn Off
endwith
this.TEXT1 = new TEXT(this)
with (this.TEXT1)
height = 22.0
left = 210.0
top = 77.0
width = 112.0
text = "Hope This Helps!"
endwith
function form_onClose
form.release()
form = null
return
endclass
| |
| evilaro 2005-11-03, 8:24 pm |
| John:
Thank you very much... it works...
Welllllllll almost... still I see the top blue line, I mean the one that has
on the right the _ (2 squares) and the X
I am lost on so many options, have you bee able to not see anything... ?
I mean if my screen is a 1024 x 768 .... could I put a 1024x 768 rectangle
and see it all ???
Maybe is not possible...
Thanks
Emilio
"John Jay" < beat_nospam_mar@sbcg
lobal.net> escribió en el mensaje
news:HAA0DW%233FHA.1352@news-server...
>
> Evilaro,
> Sorry this took so long! I Just read this post. I made this and
tested
> it using Plus 2.5 and Win 2000
> John Jay
> Best Marine
> ** END HEADER -- do not remove this line
>
> //
>
> // Generated on 11/02/2005
>
> //
>
> parameter bModal
>
> local f
>
> f = new blankForm()
>
> if (bModal)
>
> f.mdi = false // ensure not MDI
>
> f.readModal()
>
> else
>
> f.open()
>
> endif
>
> class blankForm of FORM
>
> with (this)
>
> onClose = class::FORM_ONCLOSE
>
> metric = 6 // Pixels
>
> height = 740.0
>
> left = 0.0
>
> top = 0.0
>
> width = 1020.0
>
> text = ""
>
> topMost = true
>
> mdi = false
>
> showTaskBarButton = false
>
> sizeable = true
>
> sysMenu = true
>
> appSpeedBar = 0 // Turn Off
>
> endwith
>
> this.TEXT1 = new TEXT(this)
>
> with (this.TEXT1)
>
> height = 22.0
>
> left = 210.0
>
> top = 77.0
>
> width = 112.0
>
> text = "Hope This Helps!"
>
> endwith
>
>
>
> function form_onClose
>
> form.release()
>
> form = null
>
> return
>
> endclass
>
>
>
>
| |
| John Jay 2005-11-03, 8:24 pm |
| > I mean if my screen is a 1024 x 768 .... could I put a 1024x 768 rectangle
> and see it all ???
>
> Maybe is not possible...
Emilio,
Open the form in the form editor. Change top = 0.0
to top= -20
This will move the top of the form 20 pixels above the top of your monitor.
Then paste the code below into the form .
Remember if you do not put the button in the form you will have no way to
close the form because the windows controls will not be visible!
After you test the form like this you can adjust top = and height = to
match your monitor.
John Jay
Best Marine
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = {;form.close()}
height = 22.0
left = 273.0
top = 77.0
width = 49.0
text = "Close"
endwith
| |
| evilaro 2005-11-03, 8:24 pm |
| John:
> Open the form in the form editor. Change top = 0.0
> to top= -20
> This will move the top of the form 20 pixels above the top of your
monitor.
> Then paste the code below into the form .
You have made my day...
I never thuoght of moving the form up ...... great.....
Thank you very much.
Emilio
> Remember if you do not put the button in the form you will have no way to
> close the form because the windows controls will not be visible!
> After you test the form like this you can adjust top = and height = to
> match your monitor.
>
> John Jay
> Best Marine
> this.PUSHBUTTON1 = new PUSHBUTTON(this)
>
> with (this.PUSHBUTTON1)
>
> onClick = {;form.close()}
>
> height = 22.0
>
> left = 273.0
>
> top = 77.0
>
> width = 49.0
>
> text = "Close"
>
> endwith
>
>
| |
| John Jay 2005-11-03, 8:24 pm |
| > You have made my day...
>
> I never thuoght of moving the form up ...... great.....
>
> Thank you very much.
Emilio,
You are welcome, thanks for the feed back.
BTW you can do the same thing with left= and width=
John Jay
Best Marine
|
|
|
|