Hi Tom,
Sorry…mind going faster than fingers. :)
This is my example of trying to add a custom bitmap button
to the Z axis step minus. I have already made a custom bitmap and placed in this
directory C:\KMotion432\PC VC Examples\KMotionCNC\res. The bitmap name is
downstep1.bmp.
1st) In Visual Studio select Resource View tab.
2) Navigate to KmotionCNC>KmotionCNC.rc>Bitmap
3) Copy & Paste any of bitmaps within the Bitmap folder.
And change its IDB to IDB_DownStep.Then in the IDB_DownStep
properties,Filename, change to res\downstep.bmp
4)Then I click Solution Explorer tab and navigate to
KMotionCNC>Source Files and open KmotionCNCDlg.cpp.
5) I then changed
"m_DownStep.LoadBitmaps(IDB_UpStep,0,0);"
to
"m_DownStep.LoadBitmaps(IDB_DownStep,0,0);"
and
"m_ZminusStep.LoadBitmaps(IDB_UpStep,0,0);"
to
"m_ZminusStep.LoadBitmaps(IDB_DownStep,0,0);"
After this i changed the name of my new bitmap in the C:\KMotion432\PC
VC Examples\KMotionCNC\res directory from downstep1.bmp to downstep.bmp.
Then I saved the KmotionCNCDlg.cpp and rebuild KMotionCNC
in Visual Studio. I get no errors, but when I launch the KMotionCNC.exe the upstep.bmp
is still being used for the Z Axis minus step and not my new downstep.bmp.
Thanks,
Troy