SiGrid UpDown

Started by dacarle, January 18, 2006, 10:28:54 AM

Previous topic - Next topic

dacarle

Has anyone gotten SiGrid to work using an UpDown on a cell in focus?  The SiGrid examples seem to work like an overlayed buddy control.  I was looking to overlay a text box with a button when a cell was in focus.  Any thoughts or directions appreciated.

Thanks

-David

TechSupport

I'm not much help to you because I don't use SIGrid. Sorry. :(

dacarle

No problem.  I always appreciate the thought and the reply.

Have a great weekend.

-David

Chris Bristow

David,

Are you trying to overlay a buttun instead of an updown control?  You could do this by subclassing the editbox in a cell during the SI_GRID_MSG_CELL_FOCUS message and releasing the editbox during the SI_GRID_MSG_CELL_LOSTFOCUS message.   You could then control the size of the editbox and create a button that could be drawn in the cell.

Also, you could simply overlay a button next to the cell in question during the CELL_FOCUS message.  When you change focus, the button could be moved.

If you give me a more detailed explanation of you requirements, I might be able to modify the grid to accommodate your code.

Thanks,

dacarle

Chris-

Always good to hear from you.  I hope all is well and appreciate the response.  Here is what I am try to do:

I would like an input cell (overlay or otherwise) that accepts a date, this can be a formatted input or not, not a priority because I have a function that converts the date from multiple formats to the format that I want.

1) I need to allow a button in the cell (right hand corner) which creates a  pop up a calendar if the user wants to be able to select a date from the calendar
2) second problem I am having is when a user input an invalid date and tries to leave the cell I have a a check which causes a beep and a return to the cell.  Problem I am having is if they attempt to leave the cell a 2nd time without altering the invalid date I am having trouble detecting the date is still bad and returning to the cell.

As always all help appreciated.

-David