473,323 Members | 1,622 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,323 software developers and data experts.

Split spin in two buttons


Hi all I hope in an answer that could help me about my problem.

I'm creating a GUI in Visual C++ .NET and I'd like to split the "Spin
Control" in two buttons, has someone some ideas to do this?

The normal spin control
------
| up |
-------
|down|
-------

I would like to create this

------
| UP |
------
---------
| DOWN |
---------

Here there's the code of my "EditBox" and "Spin Control" (normal):

((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN_TEST))->SetRange(0, 26);
((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN_TEST))->SetPos(0);
GetDlgItem(IDC_EDITBOXTEXT)->SetWindowText("A");


--
Ghost
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
1 1519
I don't think there exists a simple way. Because control draws those
buttons, and I don't think you can intervent that default behavior.
Theoretically, I can suggest you to try to use owner drawing. The best
is, I think, rolling-your-own split-spin control. I don't think it is
hard to implement.

Ismail

Nov 17 '05 #2

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

Similar topics

2
by: Mark | last post by:
I have autorepeat turned on for a command button that increments the value in a textbox. When I click on the button and hold the mouse button down, the value in the textbox does not change. When I...
2
by: Drily Lit Raga | last post by:
VC++ calls this a spin control, I think VB calls it an updown? Anyway it is the control with two arrows on the right for entering numeric values. I have another text control that uses the spin...
4
by: celinesuzzarini | last post by:
Hi all, I have split my database a while ago, and now, I want to add a table with relationships to other existing tables. I open the BE, create my table, and then go to the relationships...
3
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
I have VS 2005 (C#) There is a control numericUpDown so you can spin numeric values. What I need to do is to spin date (+- one day). How to do that? Moreover, I want a user to type the date as...
0
by: ARC | last post by:
Hello, I like the split forms in access 2007, because you can still do the header, and any tool buttons, yet have the datasheet look without the need for 2 forms (main form / subform). However,...
0
by: ARC | last post by:
I posted this before, but no response. Hopefully the MVP folks will know the answer. I'm not sure how other's are using the new split form, but what I like about it is I can design the header...
0
by: CharlieC | last post by:
I seem to have an issue with the MonthCalendar control. When I click on the year, to change the year, the dates not not seem to redraw properly, especially if I go back in time. All seems Ok if I...
1
by: webandwe | last post by:
Hi, My clients has a form which stores data into a MySQL database but instead of having all the fields on one page he wants like a tabs to split the form up and make it seem less. Examples: ...
4
by: Stewart Berman | last post by:
Is there a control equivalent to the old Spin control? The one with two hour heads and an optional textbox in the middle? The closest I can find is the NumericUpDown control and it's not the same...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.