Adding a button left of the minimize

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by crono.

Hello,
how can I add a Button left of the minimize button in the title bar?


kind regards,
Alexander Schoenfeld

Email: [url]mailto:alexander.schoenfeld@chronologic.de[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

I think you can't.

you have to remove the caption, draw your own and put some buttons on it.

maybe the DrawCaption api can help.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> you have to remove the caption, draw your own and put some buttons on it.

That's right. Here's some Visual Basic source showing how to do it,
but it might be a hard job converting it to PureBasic:

http://www.planet-source-code.com/vb/sc ... 0&lngWId=1
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Jose.

Try doing a search on this forum for the following, I knew i'd seen this code before...another way to do it....

redraw all gadgets on a window

see the code in there.
Hope that helps

Registered PureBasic User
Post Reply