[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

About DialogBox in Axapta

John

12/1/2005 11:46:00 AM

Hi friends!
I have a problem to create a new DialogBox.When u create a Dialog,
it has two Button OK & CANCEL. I would like to Change OK Button with mine
name.
Is it possible.
Reply as soon as possible...
Bye

6 Answers

Anil Ozay

12/1/2005 1:17:00 PM

0

Hi John,

Dialog class uses 'Dialog' form. So you can change the label of 'OkButton'
with your name in the 'Dialog' form.

Regards,

Anil Ozay
MBSCP,MCP

anilozay@hotmail.com

"John" wrote:

> Hi friends!
> I have a problem to create a new DialogBox.When u create a Dialog,
> it has two Button OK & CANCEL. I would like to Change OK Button with mine
> name.
> Is it possible.
> Reply as soon as possible...
> Bye
>

John

12/1/2005 1:36:00 PM

0

Hi!
Actually i am creating a new Dialog, I would like that, it should be
change only my Dialog not overall.
If u change label property, it will change overall in Axapta.
bye

"Anil Ozay" wrote:

> Hi John,
>
> Dialog class uses 'Dialog' form. So you can change the label of 'OkButton'
> with your name in the 'Dialog' form.
>
> Regards,
>
> Anil Ozay
> MBSCP,MCP
>
> anilozay@hotmail.com
>
> "John" wrote:
>
> > Hi friends!
> > I have a problem to create a new DialogBox.When u create a Dialog,
> > it has two Button OK & CANCEL. I would like to Change OK Button with mine
> > name.
> > Is it possible.
> > Reply as soon as possible...
> > Bye
> >

Mike Frank

12/1/2005 1:46:00 PM

0

You would have to modify the dialog form and class (to pass the value) to do that.

Anil Ozay

12/1/2005 8:37:00 PM

0

Dear John,

This is the step by step solution for you ;)

Dialog form gets parameters from Dialog class. So if you can send parameter
from Dialog class, you can set the label name. Firstly we must customize
Dialog class.

1. In the class declaration of Dialog Class, add a field to hold the value
of param. :

str labelOfOk;

2. Add a method to set and get this field :

str LabelOfOk(str _labelText = labelOfOk)
{
;
labelOfOk = _labelText;
return labelOfOk;
}

3. In the run() method of Dialog FORM (not class..), write this code before
super();

if(dialog.LabelOfOk()) OkButton.text(dialog.LabelOfOk());


From now, if you want to set this label you can use :

dialog.LabelOfOk('MyLabelText..');

I hope this help you..

Regards,

Anil Ozay
Software Engineer
MBSCP, MCP
anilozay@hotmail.com

"John" wrote:

> Hi!
> Actually i am creating a new Dialog, I would like that, it should be
> change only my Dialog not overall.
> If u change label property, it will change overall in Axapta.
> bye
>
> "Anil Ozay" wrote:
>
> > Hi John,
> >
> > Dialog class uses 'Dialog' form. So you can change the label of 'OkButton'
> > with your name in the 'Dialog' form.
> >
> > Regards,
> >
> > Anil Ozay
> > MBSCP,MCP
> >
> > anilozay@hotmail.com
> >
> > "John" wrote:
> >
> > > Hi friends!
> > > I have a problem to create a new DialogBox.When u create a Dialog,
> > > it has two Button OK & CANCEL. I would like to Change OK Button with mine
> > > name.
> > > Is it possible.
> > > Reply as soon as possible...
> > > Bye
> > >

Aine

5/5/2010 4:10:00 PM

0

On May 5, 6:18 am, Beorc kano <BrandonCornw...@gmail.com> wrote:
> On 5/5/2010 7:45 PM, Joseph Littleshoes wrote:
>
>
>
> > Ash wrote:
> >> Ok... now that I realize where I am and what goes on here, I'll put on
> >> my thick skin and press on.
>
> >> Sharing and learning with other Wiccans is the goal.
>
> >> Tonight I'm going to be doing a cleansing spell in my altar room. I
> >> was doing some research online and ran into this video:
>
> >>http://www.youtube.com/watch?v=2...
>
> >> I like it because it's simple. And for me, at least, the simple
> >> rituals are always the best.
>
> >> The less "thinking" I do while practicing my religion, the better I
> >> feel.
>
> >> Anyway, just wanted to post it in case anyone else is looking for a
> >> good simple room cleanse.
>
> >> Ash
>
> >> P.S. And yes... I'm expecting an onslaught... ;)
>
> > Once you master the dreaded "mail filters" spell you wont have to
> > experience the "onslaught" much less the expectation of it:)
>
> > Of course a few of our imps here don't raise to the level "expectations"
> > much less "onslaught" and are kept around just for their ability to
> > remind us all how absurdly silly some non wiccans can be.
>
> > Also if you have any pine trees available soaking pin needles in hot
> > water and then using that water as a floor wash is very good, and if
> > nothing else pine sol is a good substitute.
> > --
> > JL
>
> Hey now, don't be hating on us non-wiccans! >:P
>
> I also find that an excellent practice is to find one type of incense
> that you burn before a ritual... I know that some incense are attributed
> with different traits, but, for my personal practice, it's not really
> applicable. However, be certain to be educated on the traits of each
> incense before you consider it for this purpose.
>
> This practie, I find, tends to help align oneself into the sense of mind
> and spirit that one would need to be in for certain rituals. Me
> personally, I use Nag Champa incense burned side by side with the Fresh
> Linen white candles that you can get from Wal Mart. Okay, so it's not
> 100% natural beeswax with a naturally harvested and hand woven wick...
> but meh. We use that which is available to us.
>
> That, and bathe fastidiously before you practice. Might just be a
> personal preference, but, if I can smell myself, or if my beard is long
> and itchy or unkempt, it is distracting to me.- Hide quoted text -
>
> - Show quoted text -

"Personal preference"..always nice to see a ray of hope of
"enlightened".

s?r`ch?sm

5/5/2010 5:24:00 PM

0

"Joseph Littleshoes" wrote:
>> "Ash" wrote:
>
> [...]
>
>> P.S. And yes... I'm expecting an onslaught... ;)
>>
> Once you master the dreaded "mail filters" spell you wont have to
> experience the "onslaught" much less the expectation of it:)
>

Are you suggesting that asking questions would be considered to be an
"onslaught"? Are you further implying that the use of killfile filters
would aid in avoiding thinking about such questions, let alone answering
them, (if not here, then within)? Finally, are you insinuating that "Ash's"
emoticon was disengenious?

>
> Of course a few of our imps here don't raise to the level "expectations"
> much less "onslaught" and are kept around just for their ability to remind
> us all how absurdly silly some non wiccans can be.
>

What do you mean, "kept around", Joe? Anyone choosing to post here, does;
anyone choosing not to, doesn't. That is, of course, unless you are
implying that something thusfar undefined keeps posters around.