Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 25th August 2018, 12:31   #1
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 272
Question Create Full Blank Custom Page and Access to all form for add controller

.


01-this is a custom page installer:






02-we have access to this part of installer form to add controller to the form:






3-i tryed but just can hide green controllers, i cant hide Red controllers:






04-i want hide all controller in form sample this (Picture Edited By Photoshop and remove controllers):






05-and access to all of the installer form and finally add the controller in installer (use all form)





now i dont know how can do this!
i just can hide green controllers with:
HTML Code:
GetDlgItem $R0 $HWNDPARENT 1
ShowWindow $R0 ${SW_HIDE}

GetDlgItem $R0 $HWNDPARENT 2
ShowWindow $R0 ${SW_HIDE}

GetDlgItem $R0 $HWNDPARENT 3
ShowWindow $R0 ${SW_HIDE}
other controllers can't be hide...
also i want access to all form (gui) and add textbox on top of form (gui),but we have limet access width and height...



.
Attached Thumbnails
Click image for larger version

Name:	01-Normal.jpg
Views:	141
Size:	49.1 KB
ID:	53941   Click image for larger version

Name:	02-Limite Access to form.jpg
Views:	140
Size:	51.2 KB
ID:	53942   Click image for larger version

Name:	03-Remove and hide controlers.jpg
Views:	138
Size:	65.2 KB
ID:	53943   Click image for larger version

Name:	04-free blank installer.jpg
Views:	139
Size:	36.2 KB
ID:	53944   Click image for larger version

Name:	05-bigger aceess installer and create controler in around.jpg
Views:	142
Size:	49.5 KB
ID:	53945  

r2du-soft is offline   Reply With Quote
Old 25th August 2018, 12:39   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
If you don't want the MUI design with the white area on top, simply use/create another UI .exe file with Resource Hacker instead.

You could technically pull this off on a MUI page but it is extra work, you need to resize the inner dialog if you are using nsDialogs/IbstallOptions.

You can use WinSpy++ to find the id of the other child controls.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 25th August 2018, 13:53   #3
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 272
.

thanks for help
now i found controllers id and hide all that's:

HTML Code:
!include MUI2.nsh

Page Custom MyPageCreate
!insertmacro MUI_LANGUAGE "English"

Function MyPageCreate
nsDialogs::Create 1044
Pop $0
;----------
${If} $0 == error
Abort
${EndIf}
;----------

;----------
${NSD_CreateText} 5u 5u 70% 7% "" #LEFT_Right	#Up_Down	#height		#width
Pop $0 #Controller HWND
;----------

;----------
${NSD_CreateText} 20u 40u 70% 7% "" #LEFT_Right	#Up_Down	#height		#width
Pop $0 #Controller HWND
;----------

;-----------------
#Button
GetDlgItem $R0 $HWNDPARENT 1
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 2
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 3
ShowWindow $R0 ${SW_HIDE}
;-----------------

;-----------------
#Header
GetDlgItem $R0 $HWNDPARENT 1034
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1036
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1037
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1038
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1039
ShowWindow $R0 ${SW_HIDE}
;-----------------

;-----------------
#Footer
GetDlgItem $R0 $HWNDPARENT 1028
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1256
ShowWindow $R0 ${SW_HIDE}
GetDlgItem $R0 $HWNDPARENT 1035
ShowWindow $R0 ${SW_HIDE}
;-----------------

nsDialogs::Show
FunctionEnd


Section
SectionEnd
also now i change:

HTML Code:
nsDialogs::Create 1018
To

HTML Code:
nsDialogs::Create 1044
this is give bigger access!

i can add controller to Black frame:




but green frame still useless and can't add controller in that part..




i think that's because there place buttons (next,back,Cancel)
Other than changing the program with Resourcers,What other method for use from this part (green part) There is?


.
Attached Thumbnails
Click image for larger version

Name:	001-Gui access.jpg
Views:	138
Size:	43.7 KB
ID:	53946   Click image for larger version

Name:	002-gui cant be acceess to green part.jpg
Views:	134
Size:	43.8 KB
ID:	53947  
r2du-soft is offline   Reply With Quote
Old 25th August 2018, 14:00   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
Resize the inner dialog before you call nsDialogs, something like
PHP Code:
System::Call 'USER32::MoveWindow(p$hwndInner,i0,i0,i9999,i9999,i1)' 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 25th August 2018, 14:09   #5
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 272
Quote:
Originally Posted by Anders View Post
Resize the inner dialog before you call nsDialogs, something like
PHP Code:
System::Call 'USER32::MoveWindow(p$hwndInner,i0,i0,i9999,i9999,i1)' 
yes but there is the problem!
black frame haven't any id!
i how can give that frame $HWNDPARENT without id?

Attached Thumbnails
Click image for larger version

Name:	ID.jpg
Views:	134
Size:	65.2 KB
ID:	53948  
r2du-soft is offline   Reply With Quote
Old 25th August 2018, 19:56   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
The mouse finder is not the best way. Anyway, you know the id because you are passing it to nsDialogs::Create

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off

Forum Jump