Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Couple of Windows GUI questions
#1
1) The red X button doesn't do anything in my program. Is there a way to tell when it is pressed, because I don't want it to simply quit the program, I need to clean up a few things since I use large buffers and such that need to be deallocated.

2) Whenever I bring up the open/save dialogue boxes, they end up opening behind the main window. Is there a way to fix this? I'm not using a Windows header to create the window, simply screenres, so I don't have the window id.

3) Does anybody know of a way to skin a window using FreeBasic? I don't like the blue header bar and buttons, especially since the rest of the window has a sleek brushed look. Of course I need this done without the use of WindowBlinds or anything else like that.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply
#2
1) X Button:

Code:
inkey = chr( 255 ) + "k"


2) open/save dialogs:

Quote:first get current hwnd with GetForegroundWindow, then use it in your dialog calls.

3) window appearance

Quote:Nothing "user-level". FB is open source, after all =) (you could d/l it and change it however you want ;p)
Reply
#3
Thanks for the first 2, they worked great. Eh, I didn't think I could skin my program. O well.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)