Page 1 of 1
3 GUI Questions
Posted: Mon Jun 02, 2008 9:31 pm
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?
Posted: Tue Jun 03, 2008 6:35 pm
by Fluid Byte
Any takers?

Re: 3 GUI Questions
Posted: Tue Jun 03, 2008 11:24 pm
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:
Re: 3 GUI Questions
Posted: Wed Jun 04, 2008 11:57 am
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?

Re: 3 GUI Questions
Posted: Wed Jun 04, 2008 5:51 pm
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?

OK
But what I told you here is only for PB on PPC-Mac, not Intel-Mac.
And last ignore my bad english.
Posted: Wed Jun 04, 2008 6:55 pm
by DoubleDutch
Posted: Wed Jun 04, 2008 7:05 pm
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?
@DoubleDutch:
Confused? Hehe, no need to!
http://www.purebasic.fr/english/viewtopic.php?t=32515
Posted: Wed Jun 04, 2008 7:11 pm
by DoubleDutch
Thanks for the hint! I'll send in a pm as I have an 8-core macpro
