mibuso.com

Microsoft Business Solutions online community
It is currently Fri May 24, 2013 4:52 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: space on button
PostPosted: Thu Jun 14, 2012 11:56 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Dear Masters,

I have another prob. Sorry if always disturb all of you :(. My friend have problem with a a button. We want when we click that button must show on being a space(blank space). We have did anything to modify it but we stuck till now can't find the way. Anyone know or maybe face same problem?


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Thu Jun 14, 2012 5:57 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6979
Location: L.I., New York
Country: United States (us)
maya-chan wrote:
Dear Masters,

I have another prob. Sorry if always disturb all of you :(. My friend have problem with a a button. We want when we click that button must show on being a space(blank space). We have did anything to modify it but we stuck till now can't find the way. Anyone know or maybe face same problem?


You really need to be clearer on what you are trying to do.

When you press a button you want to create a blank space?
Where?
Or are you wanting the Button Name to turn blank?

not sure what your after.

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 3:42 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Hmm Sorry if it's not clear before. Oke this is the scenario :

User will use some touch screen monitor or not use keyboard anymore. So we create a panel that include alphabet and some control Button such as 'C'(clear) button and space button. The problem is, on the space button when we click it didn't create any space/blank space on the textbox or display.

I use :
PadKeyPressed(' ');

On Onpush session. But not work.


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 4:08 am 
Offline

Joined: Mon Oct 04, 2004 7:42 pm
Posts: 101
Location: LA
Country: United States (us)
Sounds like the "space" button is not configured correctly.


Top
 Profile  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 4:21 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Can you tell me more specific about 'not configure correctly'? I have tried but till now no effect. Another button success only the space button.


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 7:25 am 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 339
Location: Bangalore
Country: India (in)
I am not very such why something like this is required. But you can put a textbox on top of the button and in the sourceexpression as a space (' ') in the textbox property, adjust the backcolor, etc. properties of the textbox (similar to the button properties).

Check if this works for you.

Chn


Top
 Profile E-mail WWW  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 9:33 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Hi Chn,

What do you mean by put a textbox on top of the button? When the button is clicked, will appear on the textbox.
on the panel there are 3 object :

2 textboxes (staffid & password)
1 group of button (Alphabet from 'A' to 'Z', Clear Button and Space Button)

For example, user click button 'A' (we assume it is on staff id textbox), on the textbox will show 'A'. Then user click space button and click 'C' Button so on the textbox will show 'A C'.


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 9:43 am 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 339
Location: Bangalore
Country: India (in)
Do you want something like this? (see screenshot)

Chn

[attachment=0]SpaceButton.jpg[/attachment]


Attachments:
SpaceButton.jpg
SpaceButton.jpg [ 41.24 KiB | Viewed 411 times ]
Top
 Profile E-mail WWW  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 9:52 am 
Offline

Joined: Sat Sep 25, 2004 2:04 am
Posts: 354
Location: Netherlands
Country: Netherlands (nl)
what type of variable is the parameter for the "PadKeyPressed" function ? I suspect it is a CODE variable, so any spaces at the front are being removed, resulting in you passing nothing instead of a space.


Top
 Profile  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 9:55 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Hai Mberger,

Yes you're right. I suspect it too, but I don't know to change it with another type as long for another button (alphabet and clear button) it's correct.


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 10:25 am 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 339
Location: Bangalore
Country: India (in)
Ok, I got it..

I tried with three buttons (ButtonA,B and space) on a form, with a variable (Text1) as sourceexpression to a textbox.

Button A - OnPush:
Text1 := 'A'; CurrForm.UPDATE();
Button Space - OnPush:
Text1 := Text1 + ' '; CurrForm.UPDATE();
Button B - OnPush:
Text1 := Text1 + 'B'; CurrForm.UPDATE();

It worked as desired, the text box shows the value 'A B' in my case. Is this what you are trying to do here?

Chn


Top
 Profile E-mail WWW  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 10:37 am 
Offline

Joined: Wed May 16, 2012 11:03 am
Posts: 41
Country: Indonesia (id)
Dear Chn,

Yup, gotta. Oke i try with your trick. Thx :)


Top
 Profile E-mail  
 
 Post subject: Re: space on button
PostPosted: Fri Jun 15, 2012 11:12 am 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 339
Location: Bangalore
Country: India (in)
Do let us know if it works.. :)

Chn


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Exabot [Bot] and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: