Hello all, |
Re: Create a button from an icon image
Well it is probably not intentionally, and it was before IBM/Rational that those buttons were introduced. Nevertheless I tried and it seems not possible without bad hacks. The Arrow__ type that the button function takes is just an integer constant (unlike Icon). And since there is no perm that will load a different Arrow__ I guess you are out of luck. So those 11 arrows seem all you get:
DB x = centered "Arrows"
void func(DBE) {
}
int i; for (i = 1; i < 12; i++) {
Arrow__ ar = addr_ i
button (x, ar, func)
}
show x
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Create a button from an icon image However, as a major drawback I have zapped the all-ways arrow (it is not really a useful arrow for me and I refer to have a refresh button than an all-ways arrow). A second consideration is getting the file to all users so that they no longer get the all-ways arrow but instead the refresh. We have an automatic SVN scyncronization script that takes care of that for users who do not have admin rights on their PCs. However, anyone wanting to replace an image for another will have to take care of this... Maybe your IT department can push the image out, in the correct path, for all user, for you. Patrick Attachments attachment_14892476_Capture.JPG |