Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / A few GUI questions

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. A few GUI questions
#4820
Posted by: 2004-07-15 04:22:51
Hello,

I have a few questions on the possibilities of the changes of font/colour/size wxWidgets provides:

1. Is it possible to change the Tabs size/font/colour in wxNotebook?
2. Is it possible to change the size/font for the wxGetPasswordFromUser dialog (also its button)?
3. Is it possible to have frames/dialogs without the title line (just 4 simple borders)?

Thanks,

Mona
Message2. Re: A few GUI questions
#4821
Posted by: 2004-07-15 04:34:41
Hello again,

I also forgot one question which I have half the answer on: Can we have buttons with icon and text?? I know that there is wxUniv which should provide this but I didn't find much information on it. I tried to compile the wxUniv project to copy the library but there's 208 errors ...

Thanks,

Mona
Message3. Re: A few GUI questions
#4828
Posted by: upCASE 2004-07-15 15:02:37
Hi!

1. Not really sure, never tried that.
2. If you change the source code :) In other words: Nope, you'll have to write your own one, except when you consider finding and then changing the windows on the dialog a solution...
3. Yes, just leave out wxCAPTION when specifying the style flags.
4. Not sure about wxUniv, but in the normal lib there's only wxBitmapButton, so no text, just a bitmap..
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message4. Re: A few GUI questions
#4832
Posted by: 2004-07-16 05:34:27
Hello,

Is it possible to have an array of buttons:

.h

wxButton *btn1;
wxButton *btn2;
wxButton *btn3;

wxButton Abtn[2];

.cpp

Abtn[0] = btn1;
Abtn[1] = btn2;
Abtn[2] = btn3;

for loop

btn[i]->SetFont(...);

It's not working because I can't do Abtn[0] = btn1... I have many buttons so I'm trying to access them through a loop ;)

Thx,

Mona
Message5. Re: A few GUI questions
#4835
Posted by: upCASE 2004-07-16 14:03:32
Hi!
Sure you can have an array of buttons, but what you are doing is trying to store pointers to buttons in an array of buttons.
Good thing Abtn[0] = btn1 doesn't work, because this would need to nice crashes.

Declare the array to store pointers or use a wxArray.
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message6. Re: A few GUI questions
#4859
Posted by: 2004-07-20 09:20:09
You could use a wxBitmapButton and the bitmap picture could contain text.

Hope that helps
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0