|
Post by regoroxford on Nov 19, 2022 14:49:36 GMT -5
Is it doable with the usual LB commands?
|
|
|
Post by atomose on Nov 20, 2022 4:29:14 GMT -5
I dont know but you can make a simple window with same options and all font will be customizable. ^^
|
|
|
Post by Rod on Nov 20, 2022 4:32:41 GMT -5
It does not take much code to roll your own. This is a link to a much more detailed tutorial. RollPrompt
nomainwin WindowWidth = 400 WindowHeight = 200 UpperLeftX = Int((DisplayWidth-WindowWidth)/2) UpperLeftY = Int((DisplayHeight-WindowHeight)/2)
'setup the controls for the window Statictext #promptme.static1, "Prompt message!", 15, 15, 250, 40 Button #promptme.ok, "OK",[ok],UL, 250, 120, 105, 40 Button #promptme.cancel, "Cancel",[cancel],UL, 40, 120, 105, 40 Textbox #promptme.textbox1, 15, 60, 350, 40
'open the window Open Title$ For Dialog_modal As #promptme #promptme.textbox1 "Please select an option."
'set a trap for close and set the global font Print #promptme, "trapclose [quitprompt]" Print #promptme, "font ms_sans_serif 20" wait
[ok] [cancel] [quitprompt] close #promptme end
|
|
|
Post by Rod on Nov 20, 2022 4:39:16 GMT -5
Why is it so? Well the way Windows is designed to work is that the user sets their system to the font size and colour scheme that suits their vision, the program is expected to use those defaults. So don't code a red notice box for someone that is color blind or a giant notice for someone that already has giant text displayed. If in general terms you are finding Windows dialogs and such too small to read use Windows help to increase the system font size.
|
|
|
Post by regoroxford on Nov 20, 2022 8:28:24 GMT -5
Thanks again. From 1985 to 2001 I was winging it with QB45 running a chemistry lab and reporting results and doing the bookkeeping. I am playing now to get used to the "conveniences" like check boxes and prompts etc.
|
|
|
Post by Rod on Nov 20, 2022 15:41:29 GMT -5
Good to learn new GUI stuff. In fact PROMPT is probably one of the least used commands. In a GUI you don't need to suddenly stop and shout at the user. There are lots of other ways to guide user input. So aim to use as few PROMPTs as possible.
|
|