473,388 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Setting Spinner and its Buddy

Hello

I want to put a Spinner and set an Edit to its Buddy. I have some
problems:

1- I want the spinner to add/subtract 0.01 to/from the number shown in
Edit, but it just works with integers(0,1,2,3,etc.)

2-When I press ENTER on the Edit box, it terminates my program and
returns to my code (without any error)

Could anyone help me?
Nov 16 '05 #1
1 1401
I can't describe this as a difinitive answer, it's what I'd "hack" out faced
with the same problem. Is it a dialog App? IIRC, I think I've seen in my
own dialog apps that the Enter key still results in OnOK being called even
if the OK button is removed and there is no default button. You could make
any other appropriate button the default button, replace OnOK with an empty
implementation, consume the Enter key before the framework sees it, etc.
Some of these are probably less appropriate than others. On the spinner,
you could unhook it from the edit control and handle the messages from the
spinner yourself and manipulate the edit control any way you want.

"MSDousti" <MS******@myrealbox.com> wrote in message
news:bf**************************@posting.google.c om...
Hello

I want to put a Spinner and set an Edit to its Buddy. I have some
problems:

1- I want the spinner to add/subtract 0.01 to/from the number shown in
Edit, but it just works with integers(0,1,2,3,etc.)

2-When I press ENTER on the Edit box, it terminates my program and
returns to my code (without any error)

Could anyone help me?

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David | last post by:
I am creating a web community site where each user can have a list of buddies. I have struck a bit of a problem though. I am designing my db model and have two entities called users containing...
4
by: Vinod | last post by:
Hi, I want to know how we can create a time spinner , similar to the the one which we can see in Date/Time properties , when we click it. I want to include it in my asp program. Thanks in...
2
by: Buddy Robbins | last post by:
Hey folks, I am in desparate need of help to solve my problem. I have written a service that examines a table in a database, and creates a directory hierarchy based on data in the table. It...
1
by: JLD | last post by:
I need to know the commands in DOS to create a batch file that produces a spinner in DOS. I am in desperate need. I have searched all over the web and have found nothing. I also need to know if I...
3
by: bharmaji | last post by:
Hi I am wondering if there is freely available code for a buddy memory allocator. Specifically I am looking for code that will can break the blocks across multiple levels and then merge them back...
6
by: Guy Noir | last post by:
Hello. Is there a way to make the spinner control "Rollover" In other words, when we hit the down button on the control and reach zero, if I press down again I would like it to rollover to 9. ...
11
by: fhk6431 | last post by:
Hey.. Anybuddy interested in working software development for big company.. My company is hiring people aggresively. Contact me ASAP at fhk6431@gmail.com You must be good in C !! right :)...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
7
by: kevin cline | last post by:
When posting an AJAX request to update multiple page elements, how do I display a spinner in the elements until the request completes?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.