GTK_Messagerequester didn't show title ...

Linux specific forum
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

GTK_Messagerequester didn't show title ...

Post by walker »

If you use a gtk_messagerequester, the appropriate title (Information, Error etc.) usually generated by the requester type (#gtk_message_info,. #gtk_message_error etc) isn't shown any more... (i guess, this behavior is since beta 2)

Try:

Code: Select all

gtk_init_(0,0)
d=gtk_message_dialog_new_(0,#GTK_DIALOG_MODAL,#GTK_MESSAGE_INFO,#GTK_BUTTONS_CANCEL,"missing title","","")
gtk_dialog_run_(d)
You'll get

Image
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Where should there be a PB bug ?
quidquid Latine dictum sit altum videtur
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

...hmmm... but later on no one could say that it wasn't reported.... :wink:

thought it is maybe a bug in PB as it was working in prior versions (with the same gtk libs installed)
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

I now, I get offtopic now and sorry for that, but:

Walker: where the hack do you have the gtk-knowledge from? Any experience in C like PB-Team (Fred, fr34k)?

I do have the link to the gtk-manuals, but studying does not bring any success. It's way to cryptic for a person like me.

I really hope, anyone will make a gtk-Tutor for PB in the future. I can't RTFM, when I don't understand the language it's written in (C).



do I need the gtk_init(), when I only do a gtk-message-box? This does differ from WinApi, doesn't it?

Cheers,
cheers,

bembulak
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

first... my knowledge is from the gtk-manuals and C-examples ONLY...(on gtk.org and found around the net) and I never ever wrote a line in C or similar (some modula2 back in the old Amiga times... 8) and some asm on the C64... otherwise only VB and VBA)

C isn't that hard and not hard to learn... but in my opinion PB is more powerfull than C C++ or whatever... (though there are some things to do)... but the best of all.. PB is NOT oop.... anyway

You'll need the gtk_init_() only if there is no PB OpenWindow before (else the OpenWindow() does the gtk_init_() for you)
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

my knowledge is from the gtk-manuals and C-examples ONLY
C isn't that hard and not hard to learn.
seems like a RTM.. :D

the best of all.. PB is NOT ...
Don't feed any trolls.. ;)

You'll need the gtk_init_() only if there is no PB OpenWindow before (else the OpenWindow() does the gtk_init_() for you)
OK, thanks.
If PB does the gtk_init(), I can easily use gtk_ commands in my app. Or are there any restrictions?
cheers,

bembulak
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

. Or are there any restrictions?
generally not... but some of them are a little tricky... :roll: but you even can mix them with pb commands.... 8) ... and your knowledge of course :wink:
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

Thanks.

I'll nag you with more questions, when they appear!

Thanks a lot!
cheers,

bembulak
Post Reply