April 19, 2024, 02:50:46 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Getting a static control's styles

Started by Andy, May 21, 2021, 04:49:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

Hi,

Well I'm wondering if I have a static control with say the italics style how I would get that italic style from the control?

I'm guessing it's something like...

dwStyles = My static control

If dwStyles & ss_italics?
  PRINT "Has itailics"
Endif

Help please.
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

CONST GWL_STYLE = (-16)
DEF hwnd as UINT

hwnd = GetDlgItem(win.hwnd,id)
dwStyles = GetWindowLongA(hwnd,GWL_STYLE)

If dwStyles & ss_italics?
  PRINT "Has itailics"
Endif
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.