3 GUI Questions

Mac OSX specific forum
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

3 GUI Questions

Post by Fluid Byte »

1.) How can I change the icon of the MessageRequester dialog to the error or notice symbol like on Windows with the #MB_ICON* constants?

2.) I noticed that while resizing a window it just shows a frame instead of resizing the content in realtime. How do you "fix" this?

3.) On Windows you have #WM_MINMAXINFO but how do you set the min/max size of a window in MacOS X?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Any takers? :?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: 3 GUI Questions

Post by michel51 »

I'll try to answer, but I think it's not much.
Fluid Byte wrote:1.) How can I change the icon of the MessageRequester dialog to the error or notice symbol like on Windows with the #MB_ICON* constants?
I think this is not possible on Mac, because this option with messagerequester is not supported
2.) I noticed that while resizing a window it just shows a frame instead of resizing the content in realtime. How do you "fix" this?
In my opinion this is a problem of "RS_ResizeGadgets_Include.pbi" or similar. But I have not found a solution yet.
3.) On Windows you have #WM_MINMAXINFO but how do you set the min/max size of a window in MacOS X?
"#WM_MINMAXINFO" is a structure in WINDOWS. This is used (and filled) by especially commands. If there is somewhat something similar on Mac, I don't know. May be you will find something in the deep of the developer documentation.
But you can built your own structure like #WM_MINMAXINFO and set the variables with values you need.

I think and know, it's not very helpfully, but...

At last a little question: do you really use the PB version V 4.30 on your Mac :?: :roll:
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: 3 GUI Questions

Post by Fluid Byte »

michel51 wrote:I think this is not possible on Mac, because this option with messagerequester is not supported
Not even with MacOS API?
In my opinion this is a problem of "RS_ResizeGadgets_Include.pbi" or similar. But I have not found a solution yet.
RS_ResizeGadgets_Include.pbi? Never heard of it, could you explain please?
If there is somewhat something similar on Mac, I don't know. May be you will find something in the deep of the developer documentation.
Where do I get this documentation? Is it part of the "Developer Tools" from the MacOS X install cd or is there a specific website?
At last a little question: do you really use the PB version V 4.30 on your Mac
I own a MacBook Pro with Intel chip so that makes sense, doesn't it? :wink:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: 3 GUI Questions

Post by michel51 »

Fluid Byte wrote: Not even with MacOS API?
Of course with Mac Os API :!:
If you find such API's, please tell me the location. May be I am too impatient or not yet the correct search strategy found
RS_ResizeGadgets_Include.pbi? Never heard of it, could you explain please?
It's part of the "Icludepackv1.1.3" by TS-Soft.
http://purebasic.fr/english/viewtopic.p ... ncludepack
I've ported it to Mac.
It's an includefile and you can use it for a good resizing of windows and gadgets.
BTW, sometimes it's named "RS_ResizeGadgets.pbi" :-)
Where do I get this documentation? Is it part of the "Developer Tools" from the MacOS X install cd or is there a specific website?
That's correct :!:
The "Developer Tools" is correctly.
I own a MacBook Pro with Intel chip so that makes sense, doesn't it? :wink:
OK :oops:

But what I told you here is only for PB on PPC-Mac, not Intel-Mac.

And last ignore my bad english.
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

PB v4.30A1
???
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

@michel51:

Thanks so far, I will browse the SDK then a little bit and check out the include.

And yes, you english "is not so good", nicht wahr? :P

@DoubleDutch:

Confused? Hehe, no need to!

http://www.purebasic.fr/english/viewtopic.php?t=32515
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Thanks for the hint! I'll send in a pm as I have an 8-core macpro :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply