|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Location: Shanghai,China
Posts: 12
|
how to change the browse button text of the dirrequest control
in custom page,I create a dirrequest control,
the browse button has no text,only three dot,I want to change these three dot to text,such as "click here to browser" thanks |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You'll have to work some magic to do that, since InstallOptions doesn't support it. You'll have to call SetWindowPos using the System plug-in to set the button's size and then use SendMessage with WM_SETTEXT to set the new text.
These should help: http://nsis.sourceforge.net/Moving_i..._of_the_screen http://nsis.sourceforge.net/Change_c...ler_at_runtime NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
Hi Kichik or anybody,
Sorry I am very new to write NSIS scripts. I’ve the same problem, too. Can anybody help? I don’t quite understand what is “call SetWindowPos using the System plug-in to set the button's size†and “use SendMessage with WM_SETTEXT to set the new text†I only know how to use SetWindowPos for setting the Window position? How can it set the button position? According to the example provided in http://nsis.sourceforge.net/Change_...ller_at_runtime Like: SendMessage $HWNDPARENT ${WM_SETTEXT} 0 "STR:We are waiting... [Section 1]" The SendMessage and WM_SETTEXT only set the heading of the window. I try to set it to DirRequest, it is not working. Would you mind explaining more about how to do so? Thanks for your help.
|
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Alternatively you may use the function BrowseForFolder somehow like in the following example.
The function BrowseForFolder spreads around the forum with some examples as well. code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
Thank you. It's working.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|