PC Review


Reply
Thread Tools Rate Thread

Different msgbox?

 
 
mB
Guest
Posts: n/a
 
      18th Sep 2004
Thanks for the earlier help.

On our current PPC app we've gone through the effort to make the buttons
large enough to use with a finger, most times, a gloved finger.

Problem we have now is, the message box (msgbox) has small buttons. I
understand that the way around this is to build our own dialog box. But,
before going down that path, is a sample out there available?

Right now I'm having problems making a small window out of the form, it
seems to stay full screen.

Just curious if you have a ready made solution - or suggestion for making a
smaller window.

Thanks!


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      18th Sep 2004
If you set the FormBorderStyle to None you can create a floating
non-fullscreen form for Pocket PC. However it won't have a Caption Bar or a
border drawn around the perimeter of the window.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/...ity/newsgroups

"mB" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for the earlier help.
>
> On our current PPC app we've gone through the effort to make the buttons
> large enough to use with a finger, most times, a gloved finger.
>
> Problem we have now is, the message box (msgbox) has small buttons. I
> understand that the way around this is to build our own dialog box. But,
> before going down that path, is a sample out there available?
>
> Right now I'm having problems making a small window out of the form, it
> seems to stay full screen.
>
> Just curious if you have a ready made solution - or suggestion for making
> a
> smaller window.
>
> Thanks!
>
>



 
Reply With Quote
 
mB
Guest
Posts: n/a
 
      18th Sep 2004
I would want a caption bar though - and window border would seem
appropriate.

Another thing I'd like to do is add the functionality that MsgBox has -
where you can tell it that you want an OkCancel, OkOnly, YesNo, etc buttons.

I have an idea on how to be able to pass those parameters, where the parms
have the appropriate types, such as:
Public Function Startup(ByVal Prompt As String, ByVal Buttons As
Microsoft.visualbasic.MsgBoxStyle, Optional ByVal Title As Object = Nothing)
As Microsoft.visualbasic.MsgBoxResult

But not sure how to handle this within the code body of the form.

Make sense?





"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you set the FormBorderStyle to None you can create a floating
> non-fullscreen form for Pocket PC. However it won't have a Caption Bar or

a
> border drawn around the perimeter of the window.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> Embedded newsgroups? Let us know!
> https://www.windowsembeddedeval.com/...ity/newsgroups
>
> "mB" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks for the earlier help.
> >
> > On our current PPC app we've gone through the effort to make the buttons
> > large enough to use with a finger, most times, a gloved finger.
> >
> > Problem we have now is, the message box (msgbox) has small buttons. I
> > understand that the way around this is to build our own dialog box.

But,
> > before going down that path, is a sample out there available?
> >
> > Right now I'm having problems making a small window out of the form, it
> > seems to stay full screen.
> >
> > Just curious if you have a ready made solution - or suggestion for

making
> > a
> > smaller window.
> >
> > Thanks!
> >
> >

>
>



 
Reply With Quote
 
Zanna
Guest
Posts: n/a
 
      18th Sep 2004
"mB" <(E-Mail Removed)> ha scritto nel messaggio

> I have an idea on how to be able to pass those parameters, where the parms
> have the appropriate types, such as:
> Public Function Startup(ByVal Prompt As String, ByVal Buttons As
> Microsoft.visualbasic.MsgBoxStyle, Optional ByVal Title As Object =

Nothing)
> As Microsoft.visualbasic.MsgBoxResult


I remember to you that you are writing .Net, not VB6.

Microsoft.VisualBasic namespace is no longer supported: see and
MessageBoxButtons, MessageBoxIcons and DialogResult instead.

Also the Optional keyword is deprecated and CLR un-compliant: consider to do
some function overload instead.

For your msgbox, a label can be your caption and a panel your border (if you
really want a floating window... but if you use the PPC in an industrial
environment I would use a BIG fullscreen window).

For buttons I would pass a string array with the captions *I* want to see
and as DialogResult would return -1 (cancel) or 0 to (buttons.Length - 1) to
know what button was pressed.

Fabio

--
NeoDataType : http://www.neodatatype.net


 
Reply With Quote
 
mB
Guest
Posts: n/a
 
      18th Sep 2004
Thanks Fabio.

So far, I seem to be on track then. I have jumped ahead and did use a
colored label as my caption, and have been trying to use a panel to
implement my border. But the panel as a border is not quite working. I'm
trying to place one white panel on top of another black panel - in code
making the white slightly smaller than the black, and centering it within.

for some reason, thats all I see, is the black panel - my buttons are buried
under it I suppose. ???

And thanks for the info on DialogResult - I'll try that.


"Zanna" <(E-Mail Removed)> wrote in message
news:dB23d.345838$(E-Mail Removed)...
> "mB" <(E-Mail Removed)> ha scritto nel messaggio
>
> > I have an idea on how to be able to pass those parameters, where the

parms
> > have the appropriate types, such as:
> > Public Function Startup(ByVal Prompt As String, ByVal Buttons As
> > Microsoft.visualbasic.MsgBoxStyle, Optional ByVal Title As Object =

> Nothing)
> > As Microsoft.visualbasic.MsgBoxResult

>
> I remember to you that you are writing .Net, not VB6.
>
> Microsoft.VisualBasic namespace is no longer supported: see and
> MessageBoxButtons, MessageBoxIcons and DialogResult instead.
>
> Also the Optional keyword is deprecated and CLR un-compliant: consider to

do
> some function overload instead.
>
> For your msgbox, a label can be your caption and a panel your border (if

you
> really want a floating window... but if you use the PPC in an industrial
> environment I would use a BIG fullscreen window).
>
> For buttons I would pass a string array with the captions *I* want to see
> and as DialogResult would return -1 (cancel) or 0 to (buttons.Length - 1)

to
> know what button was pressed.
>
> Fabio
>
> --
> NeoDataType : http://www.neodatatype.net
>
>



 
Reply With Quote
 
mB
Guest
Posts: n/a
 
      19th Sep 2004
Got it working, thanks.

"mB" <(E-Mail Removed)> wrote in message
news:%23m4%(E-Mail Removed)...
> Thanks Fabio.
>
> So far, I seem to be on track then. I have jumped ahead and did use a
> colored label as my caption, and have been trying to use a panel to
> implement my border. But the panel as a border is not quite working. I'm
> trying to place one white panel on top of another black panel - in code
> making the white slightly smaller than the black, and centering it within.
>
> for some reason, thats all I see, is the black panel - my buttons are

buried
> under it I suppose. ???
>
> And thanks for the info on DialogResult - I'll try that.
>
>
> "Zanna" <(E-Mail Removed)> wrote in message
> news:dB23d.345838$(E-Mail Removed)...
> > "mB" <(E-Mail Removed)> ha scritto nel messaggio
> >
> > > I have an idea on how to be able to pass those parameters, where the

> parms
> > > have the appropriate types, such as:
> > > Public Function Startup(ByVal Prompt As String, ByVal Buttons As
> > > Microsoft.visualbasic.MsgBoxStyle, Optional ByVal Title As Object =

> > Nothing)
> > > As Microsoft.visualbasic.MsgBoxResult

> >
> > I remember to you that you are writing .Net, not VB6.
> >
> > Microsoft.VisualBasic namespace is no longer supported: see and
> > MessageBoxButtons, MessageBoxIcons and DialogResult instead.
> >
> > Also the Optional keyword is deprecated and CLR un-compliant: consider

to
> do
> > some function overload instead.
> >
> > For your msgbox, a label can be your caption and a panel your border (if

> you
> > really want a floating window... but if you use the PPC in an industrial
> > environment I would use a BIG fullscreen window).
> >
> > For buttons I would pass a string array with the captions *I* want to

see
> > and as DialogResult would return -1 (cancel) or 0 to (buttons.Length -

1)
> to
> > know what button was pressed.
> >
> > Fabio
> >
> > --
> > NeoDataType : http://www.neodatatype.net
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MsgBox - Display variable in MsgBox Shiller Microsoft Access VBA Modules 2 29th Sep 2008 10:14 PM
Substituting my own MsgBox for the standard delete confirm MsgBox John S. Ford, MD Microsoft Access Getting Started 8 20th Aug 2004 12:05 AM
Substituting my own MsgBox for the standard delete confirm MsgBox John S. Ford, MD Microsoft Access Forms 8 20th Aug 2004 12:05 AM
Substituting my own MsgBox for the standard delete confirm MsgBox John S. Ford, MD Microsoft Access 8 20th Aug 2004 12:05 AM
Substituting my own MsgBox for the standard delete confirm MsgBox John S. Ford, MD Microsoft Access Form Coding 8 20th Aug 2004 12:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.