<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thema "Visual Programming. Adding icons to menus and stuff..." in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Visual-Programming-Adding-icons-to-menus-and-stuff/m-p/940713#M16981</link>
    <description>I would like to know if you could guys could explain me how to do the &lt;BR /&gt;following things: &lt;BR /&gt; &lt;BR /&gt;1) How do I creat a Tip of The Day Dialog box..I want to know how to do the &lt;BR /&gt;layout of those Tip of The Day's Dialog Boxes they do out there..I've &lt;BR /&gt;created one on my own but it's not as beautiful as those ones. &lt;BR /&gt; &lt;BR /&gt;2) Can i add icons in menu items using quickwin? In many programs at the &lt;BR /&gt;menu file there are the options open (that has an icon of an oppened paste &lt;BR /&gt;besides), save (that there is an icon of a floppy disk) etc. How do i add &lt;BR /&gt;icons  like that in my menus using quickwin? And where i can find those &lt;BR /&gt;icons on the net? &lt;BR /&gt; &lt;BR /&gt;3) And how do i create a toolbar with the save, open etc icons on it . This toolbar should stay beneath the menu. &lt;BR /&gt; &lt;BR /&gt;Thank u very much, &lt;BR /&gt;Ivomar</description>
    <pubDate>Fri, 02 Mar 2001 01:04:13 GMT</pubDate>
    <dc:creator>ivomar</dc:creator>
    <dc:date>2001-03-02T01:04:13Z</dc:date>
    <item>
      <title>Visual Programming. Adding icons to menus and stuff...</title>
      <link>https://community.intel.com/t5/Software-Archive/Visual-Programming-Adding-icons-to-menus-and-stuff/m-p/940713#M16981</link>
      <description>I would like to know if you could guys could explain me how to do the &lt;BR /&gt;following things: &lt;BR /&gt; &lt;BR /&gt;1) How do I creat a Tip of The Day Dialog box..I want to know how to do the &lt;BR /&gt;layout of those Tip of The Day's Dialog Boxes they do out there..I've &lt;BR /&gt;created one on my own but it's not as beautiful as those ones. &lt;BR /&gt; &lt;BR /&gt;2) Can i add icons in menu items using quickwin? In many programs at the &lt;BR /&gt;menu file there are the options open (that has an icon of an oppened paste &lt;BR /&gt;besides), save (that there is an icon of a floppy disk) etc. How do i add &lt;BR /&gt;icons  like that in my menus using quickwin? And where i can find those &lt;BR /&gt;icons on the net? &lt;BR /&gt; &lt;BR /&gt;3) And how do i create a toolbar with the save, open etc icons on it . This toolbar should stay beneath the menu. &lt;BR /&gt; &lt;BR /&gt;Thank u very much, &lt;BR /&gt;Ivomar</description>
      <pubDate>Fri, 02 Mar 2001 01:04:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Visual-Programming-Adding-icons-to-menus-and-stuff/m-p/940713#M16981</guid>
      <dc:creator>ivomar</dc:creator>
      <dc:date>2001-03-02T01:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Programming. Adding icons to menus and stuff...</title>
      <link>https://community.intel.com/t5/Software-Archive/Visual-Programming-Adding-icons-to-menus-and-stuff/m-p/940714#M16982</link>
      <description>Hi Ivomar, &lt;BR /&gt; &lt;BR /&gt;1) "Tip of the day" dialog shouldn't be too hard to add. Just create your dialog and do DlgModal somewhere at the beginning of the Program. "Tip of the day" is &lt;B&gt;not&lt;/B&gt; a common windows dialog (such as "Open", "Choose color") etc. -- you have to design your own. &lt;BR /&gt; &lt;BR /&gt;2) Even in Visual Studio, icons are added to menus using Owner-drawn menus, i.e. there is not even a Win32 API (DFWIN) function which does that. The best you can get is using SetMenuItemBitmaps This mechanism has somewhat limited functionality, due &lt;BR /&gt;to color mapping (white color from the bitmap gets mapped &lt;BR /&gt;to COLOR_3DFACE, so you can't have white displayed), and colors are &lt;BR /&gt;a bit OR-ed with menu color, and in disabled state only &lt;BR /&gt;white in the original bitmap is transformed into COLOR_3DLIGHT. &lt;BR /&gt;SDK recommends using monochrome bitmaps because of that, &lt;BR /&gt;but I tried it with 16-color and with a little care in &lt;BR /&gt;design it can look pretty nice. And yes, those should be &lt;BR /&gt;bitmaps, not icons. &lt;BR /&gt; &lt;BR /&gt;Here's a snip from an actual Win32 app: &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt; 
USE DFWIN 
 
INTEGER,PARAMETER::  iFuncBmp(0:13) =(/IDB_MENU_1_TOP,   &amp;amp; 
                                       IDB_MENU_1_LF,    &amp;amp; 
                                       IDB_MENU_1_EST,   &amp;amp; 
                                       IDB_MENU_1_VREG,  &amp;amp; 
                                       IDB_MENU_1_KON,   &amp;amp; 
                                       IDB_MENU_1_RES,   &amp;amp; 
                                       IDB_MENU_1_KS,    &amp;amp; 
                                       IDB_MENU_1_POUZD, &amp;amp; 
                                       IDB_MENU_1_LA,    &amp;amp; 
                                       IDB_MENU_1_RZ,    &amp;amp; 
                                       IDB_MENU_1_LOK,   &amp;amp; 
                                       IDB_MENU_1_BPT,   &amp;amp; 
                                       0,                &amp;amp; 
                                       IDB_MENU_1_EXIT/) 
INTEGER::                       hInst 
INCLUDE "Resource.fd" 
 
hSubMenu=GetSubMenu(hMenu,0)  !0=First dropdown menu, 1=2nd etc. 
DO i=0,13 
            hBmp=LoadImage(hInst, MAKEINTRESOURCE(iFuncBmp(i)),  &amp;amp; 
                           IMAGE_BITMAP, 0,0, 0) 
            iSt=SetMenuItemBitmaps(hSubMenu,i,MF_BYPOSITION,hBmp,hBmp) 
END DO 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;hMenu is handle of the menu. You can get it using hMenu=GetMenu(hFrame), where hFrame=GetHWNDQQ(QWIN$FRAMEWINDOW). hInst is instance handle; you can obtain it using hInst=GetWindowLong(hFrame, GWL_HINSTANCE). IDB_MENU_... are identifiers of 12x12, 16-colors &lt;BR /&gt;bitmaps inserted in the resource file (insert/resource/bitmap). It's from &lt;BR /&gt;an Win32 app, but it should work in QuickWin also. &lt;BR /&gt; &lt;BR /&gt;3) There are no toolbar-manipulation functions in QuickWin. I actually managed to add one and it worked, but it would require quite a lot of &lt;BR /&gt;Win32 "hacking". Basically, you have to find handle of MDI client window, subclass it, create the toolbar using CreateToolbarEx function somewhere &lt;BR /&gt;from QW primary thread, and handle WM_COMMAND messages in the subclassed procedure. Sounds complicated, ha? There was a similar question somewhere in the old forum -- I think I have the thread saved somewhere. Feel free to write me at jdujic@uns.ns.ac.yu so I could send you a sample, if you're still interested. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 02 Mar 2001 20:10:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Visual-Programming-Adding-icons-to-menus-and-stuff/m-p/940714#M16982</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-03-02T20:10:31Z</dc:date>
    </item>
  </channel>
</rss>

