VB 1.0 Toolbar

Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2007
Posts: 9
Reputation: asmqb is an unknown quantity at this point 
Solved Threads: 0
asmqb asmqb is offline Offline
Newbie Poster

VB 1.0 Toolbar

 
0
  #1
Apr 5th, 2007
Hi everyone,

I'm writing a little app for myself in VB1.0 (I like the language, please don't knock it) and it more or less adds buttons into the top-right corner of whatever window is active, like NVidia does.

My problem is that these buttons are on a form. In an application. Which means that I set focus to this toolbar when I click the buttons on it. Which means that... when I click my toolbar's buttons the window the toolbar has locked onto suddenly goes "inactive". Eww!

I've been told to use CreateWindowEx to make a WS_EX_TOOLWINDOW (but wasn't given an example), and although there is a 16-bit call for it (stated below, because the 16-bit call is different from the 32-bit one), I'm not sure if I can create the aforementioned window style, and how/where to start if this actually is possible.

Could anyone please help me? I just want to get the window running and even possibly know how to add controls to it using standard VB methods (now that would be nice).

Thanks
--asmqb

16-Bit CreateWindowEx:
  1. Declare Function CreateWindowEx% Lib "User" (ByVal dwExStyle&, ByVal lpClassName$, ByVal lpWindowName$, ByVal dwStyle&, ByVal X%, ByVal Y%, ByVal nWidth%, ByVal nHeight%, ByVal hWndParent%, ByVal hMenu%, ByVal hInstance%, ByVal lpParam$)
Note the use of the "User" library - not "User32"!
Last edited by asmqb; Apr 5th, 2007 at 2:12 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 166
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: VB 1.0 Toolbar

 
0
  #2
May 28th, 2007
To add a button to a window, you have to modify the file that defines that window. You can't just paste something on top of the window.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 9
Reputation: asmqb is an unknown quantity at this point 
Solved Threads: 0
asmqb asmqb is offline Offline
Newbie Poster

Re: VB 1.0 Toolbar

 
0
  #3
May 30th, 2007
What file? This is Windows....

Also, I'm getting Linux soon, so modifying the core of eg fluxbox or changing a couple of config items in KDE or GNOME would probably do that for me... but having those buttons has kinda worn off now anyway

But again... what file?! 0.o

Thanks for your reply.

-asmqb/asmqb7/dav7/I-have-too-many-nicks-they-need-to-make-an-openid-for-nicks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum


Views: 2057 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Legacy and Other Languages
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC