Results 1 to 1 of 1

Thread: How to implement user-defined cell format

  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    2

    How to implement user-defined cell format

    I use Objective Grid in my program. There is no cell format in your Objective Grid that can match my requirement. So Id like to defined a new cell format by myself. I noticed that I must override GXFormatText(see GX_FMT_USER.JPG). Can you show me how to implement it?

    By the way, I have another two point need your help.
    1. When I type a value less than 1 to a cell and then set the cells format to GX_FMT_MONTH_YEAR, it will cause my program crash. Why the value less than 1 cant be transferred to a month year format?
    2. Show you an example first, type 2 to a cell and set the cells format to GX_FMT_DATETIME. Then the value displayed in the cell will be 1/11900. On the other hand, the cells value shows to us will be 2 when the cell is editing. But I hope it shows us to 1/1/1900 on editing state. Do you have any suggestion? Or how can I get the formative text(1/1/1900 in this case)?
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •