* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Underlines, SetDlgItemText, and random emulation
PostPosted: Tue Mar 02, 2004 11:57 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
watch out. code snippets

Code:
//from a random header:
#define BUTTON_OK "&OK"

//inside the WM_INITDIALOG block:
SetDlgItemText(hDlg,IDC_OK,BUTTON_OK);


Doing it that way sets the text OK, but the underline under the "O" doesn't appear.

So, how do I make the underline So?


Top
   
 
 Post subject:
PostPosted: Wed Mar 03, 2004 1:47 am 
Offline
DBB Benefactor
DBB Benefactor
User avatar

Joined: Sun Jun 03, 2001 2:01 am
Posts: 935
Location: Illinois
Does the button work with Alt-O?

If it doesn't, then the only thing I could find dredging through the MSDN docs is SS_NOPREFIX. Make sure that isn't set for that control.

Other than that, try...

SetDlgItemText(hDlg, IDC_OK, "&Ok");

See maybe if that works, then possibly you might be changing the value of BUTTON_OK somewhere?


Top
   
 
 Post subject:
PostPosted: Wed Mar 03, 2004 2:56 am 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
Im a farking idiot.

I set windows not to show the underline till I hit alt.

doh.


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group