Hello,
I am currently trying to get every form in my application to display the same icon (on the top left). Is there a quick way of doing this using some sort of inheritance? Or do i have to to go through and manuely and set the icon entity for every form.
Thanks in advance
Beg pardon,
…but why do you want to do that ..? Having the same Icon potentially leads to confusion when you minimize the window. Ideally, each Window should have a charteristic icon so that the user can easily recognise that on the toolbar when minimized.
Richard Bright
BrightIdeas New Zealand
Atef,
For the future: You can base new windows on old ones (File | Save As or File | New Form … Style Sheet), so if your old window has got an icon your new window gets it too. (I haven't tested this with Style Sheet, just assume it works.) But it isn't inheritance. Also using Style Sheet should be avoided when making MDI frames.
In the situation you're now, where you need to retrofit existing windows with icons, you have the following options:
(1) Do it manually
(2) Do it automatically
(3) Do it at runtime.
For (2) you need to make a program that loops through your SYSREPOSWINS rows, reads each row, changes some value located near the beginning of the record (… @FM … @FM @RM … @VM @VM …….), writes the row back, and compiles the row.
For (3) you need a so-called "promoted" CREATE handler that sets the ICON property of the window.
- Oystein -
Couldn't you just overwrite default.ico?
World Leaders in all Things RevSoft
No, that's too easy. Software development is supposed to be hard.
Well … … all right! But just this once!
![]()
- Oystein -