473,566 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1408
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******@myrea lbox.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
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
3009
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 usual stuff like password, name... and I have Buddy List. I also have the following relation. Users "have a" Buddy List The cardinality is that a...
4
2275
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 advance
2
1339
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 then programmatically grants and revokes privileges to groups on the different directories in the hierarchy. It creates the directories correctly,...
1
2685
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 can save it to a CD or not. Can anyone help me please!?
3
10655
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 together eg. if the memory pools are 32k, 16k , 8k in size, then a) if both 8K and 16K are exhausted and application asks for 8k block, 32 K should...
6
12078
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. And when I hit up and I finally come to 9, I would like the next up press to hit 0. I'm assuming I'll need to write the action myself, but I'm...
11
1787
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 :) Fresh graduates are welcome also..
41
2835
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 created and then added to "component" objects to build up the component definition. My dilemma comes in deciding how to read/write data to the...
7
8815
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
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.