SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SI Dialogs and Control Widths

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
ozmosys



Joined: 02 Mar 2003
Posts: 9
Location: Melbourne, Australia

PostPosted: Sat Apr 26, 2003 12:08 pm    Post subject: SI Dialogs and Control Widths Reply with quote

Hi Guys,

I am using the SI Dialogs in my application, and have the following question ..

What can I do if the translation is wider than will fit on the dialog control? fex the Find Dialog button "Find Next" in Dutch is "Zoek Volgende", and will not fit on the button given its existing width. Can I do anything about this? (I know I can shorten the translation, but this is not the preferred solution)

Best regards

Steve
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Sat Apr 26, 2003 5:07 pm    Post subject: Reply with quote

Unfortunately, there is no easy way to do this. But may be you can hack this by writing something like this in OnShow event of for example siFindDialog:

procedure TForm1.siFindDialog1Show(Sender: TObject);
var
hnd: THandle;
R: TRect;
begin
if (siFindDialog1.siLang = nil) or (siFindDialog1.siLang.Language <> 'Dutch') then Exit;
GetWindowRect(siFindDialog1.Handle, R);
SetWindowPos(siFindDialog1.Handle, 0, 0, 0, R.Right - R.Left + 26, R.Bottom - R.Top, SWP_NOMOVE or SWP_NOZORDER);
hnd := GetDlgItem(siFindDialog1.Handle, 1);
SetWindowPos(hnd, 0, 0, 0, 100, 23, SWP_NOMOVE or SWP_NOZORDER);
hnd := GetDlgItem(siFindDialog1.Handle, IDCANCEL);
SetWindowPos(hnd, 0, 0, 0, 100, 23, SWP_NOMOVE or SWP_NOZORDER);
end;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group