Skip to main content
Known Participant
December 22, 2009
Answered

How can we create a "ADM Spin Edit Type" UI item in .r file on Mac?

  • December 22, 2009
  • 1 reply
  • 652 views

Hello All,

I have created the "ADM Spin Edit Type" UI control (or UI item) on Windows in .rc file and working fine.

Now I have to do the same on Mac in .r file. There is no sample project to demonstrate how to create spin edit type UI item in SDK sample projects.

"ADM Spin Edit Popup Type" UI control is implemented  in "ADMNonModalDialog" project (in SDK sample projects), but not "ADM Spin Edit Type".

resource 'CNTL' (kWidth, preload, purgeable) {
    {140, 47, 160, 100}, // top, left, bottom, right
    0,
    visible,
    0,
    0,
    16976, // ID
    0,
    ""
};

In the above code, we have to change the "ID" value to create a "ADM Spin Edit Type" item, I think.  What could be the ID value for this? or is there any other way to do this? please help me.

This topic has been closed for replies.
Correct answer A. Patterson

Fortunately, I was able to find an example of this in our .r file! Here you go:

resource 'CNTL' (21700, "ADM Spin Edit", purgeable) {
    {172, 28, 192, 88},
    0,
    visible,
    300,
    0,
    16960,
    0,
    "100"
};

1 reply

A. Patterson
A. PattersonCorrect answer
Inspiring
December 22, 2009

Fortunately, I was able to find an example of this in our .r file! Here you go:

resource 'CNTL' (21700, "ADM Spin Edit", purgeable) {
    {172, 28, 192, 88},
    0,
    visible,
    300,
    0,
    16960,
    0,
    "100"
};

Known Participant
December 23, 2009

Thanks you Patterson.

I used the below code and its also working...

resource 'CNTL' (kWidth, preload, purgeable) {
    {140, 47, 160, 100}, // top, left, bottom, right
    0,
    visible,
    0,
    0,
    16970, // ID
    0,
    ""
};