Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

Changing Default Icon (OpenInsight 32-bit Specific)

At 03 FEB 2003 07:18:38PM atef wrote:

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


At 04 FEB 2003 04:49AM Richard Bright wrote:

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


At 04 FEB 2003 08:26AM Oystein Reigem wrote:

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 -


At 04 FEB 2003 12:36PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Couldn't you just overwrite default.ico?

The Sprezzatura Group

World Leaders in all Things RevSoft


At 04 FEB 2003 03:34PM Oystein Reigem wrote:

No, that's too easy. Software development is supposed to be hard.

Well … … all right! But just this once! :-)

- Oystein -

View this thread on the forum...