Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2005, 12:31 AM
delphian delphian is offline
Senior Member
 
Join Date: Jan 2005
Posts: 177
Default Change the BiDi mode of a window by sending message to it

Which message should I send to a window which I have its handle to change the BiDi mode of it to right to left?

Please help me!
Thanks in advance!

delphian7e@yahoo.com
Reply With Quote
  #2  
Old 03-24-2005, 12:50 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: Change the BiDi mode of a window by sending message to it

Solution depends from window type (no one solution for all window kinds) but try the next code:

var
ExStyle: dWord;
begin
ExStyle := dWord(GetWindowLong(yourWindow.Handle, GWL_EXSTYLE));
ExStyle := ExStyle or WS_EX_RIGHT or WS_EX_RTLREADING or
WS_EX_LEFTSCROLLBAR;

SetWindowLong(yourWindow.Handle, GWL_EXSTYLE, ExStyle);
end;


With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #3  
Old 03-24-2005, 01:00 AM
delphian delphian is offline
Senior Member
 
Join Date: Jan 2005
Posts: 177
Default RE: Change the BiDi mode of a window by sending message to it

No I'm looking a cammand like this for changing the BiDi mode of the window:

SendMessage(hWndTip, TTM_SETTIPBKCOLOR, BackCL, 0);

delphian7e@yahoo.com
Reply With Quote
  #4  
Old 03-24-2005, 01:38 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: Change the BiDi mode of a window by sending message to it

You can't send a message for BiDiMode.

BiDiMode is a style of window and I shown how to change.

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #5  
Old 03-24-2005, 03:55 AM
delphian delphian is offline
Senior Member
 
Join Date: Jan 2005
Posts: 177
Default RE: Change the BiDi mode of a window by sending message to it

But the way you have said, doesn't work. :-(

delphian7e@yahoo.com
Reply With Quote
  #6  
Old 03-24-2005, 04:03 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: Change the BiDi mode of a window by sending message to it

I said that this will not work using messages (SendMessage function)

But I posted the code how this will work using SetWindowLong function

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #7  
Old 03-24-2005, 04:06 AM
delphian delphian is offline
Senior Member
 
Join Date: Jan 2005
Posts: 177
Default RE: Change the BiDi mode of a window by sending message to it

Yes of course you have written the function but it didn't work. My window is a tooltip class window. (Balloon tooltip)

delphian7e@yahoo.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 09:22 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.