Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

we can turn https://github.com/pharo-project/pharo/issues/11295 as FAQ #2

Open
Ducasse opened this issue Aug 4, 2022 · 2 comments
Open

Comments

@Ducasse
Copy link
Contributor

Ducasse commented Aug 4, 2022

presenter := SpPresenter new.
presenter layout: (SpBoxLayout newTopToBottom
	vAlignStart;
	spacing: 5;
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: 'Label 1' expand: false;
		add: presenter newTextInput;
		yourself);
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: 'Label 2' expand: false;
		add: presenter newTextInput;
		yourself);
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: 'Label 3' expand: false;
		add: presenter newTextInput;
		yourself);
	yourself).
	
presenter open.
app := SpApplication new.
app addStyleSheetFromString: '.application [ 
	.otherFont [
		Font { #name: EnvironmentFont(#code), #size: 14 } ] ]'.
presenter := SpPresenter newApplication: app.

presenter layout: (SpBoxLayout newTopToBottom
	vAlignStart;
	spacing: 5;
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: (presenter newLabel label: 'Label 1'; addStyle: 'otherFont')  
			expand: false;
		add: presenter newTextInput;
		yourself);
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: 'Label 2' expand: false;
		add: presenter newTextInput;
		yourself);
	add: (SpBoxLayout newLeftToRight 
		spacing: 5;
		add: 'Label 3' expand: false;
		add: presenter newTextInput;
		yourself);
	yourself).
	
presenter open.
@Ducasse
Copy link
Contributor Author

Ducasse commented Aug 4, 2022

image

@Ducasse
Copy link
Contributor Author

Ducasse commented Aug 4, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant